Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use VTL model from SDMX IM for VTL Scripts as input of semantic_analysis and execution #60

Open
javihern98 opened this issue Jan 21, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@javihern98
Copy link
Contributor

javihern98 commented Jan 21, 2025

Overview

We would like to use a TransformationScheme object from pysdmx as the script to be used.

The TransformationScheme object will be serialized as a VTL Script by using the method 'generate_vtl_script' after it is implemented on bis-med-it/pysdmx#210.

Internal functions to implement

Add a new function at InternalAPI called check_script to check if the script is a string, which we will return, or a TransformationScheme object, which we will serialized using its method generate_vtl_script and return the output. We will not use any flag related with syntax validation as we will perform it afterwards when generating the AST.

Important

Ensure we are not generating a circular method with this method as it will generate unexpected error. Place the check_script function at a separated module if necessary and use local imports if needed.

@javihern98 javihern98 changed the title Use SDMX model from pysdmx Use VTL model froom SDMX IM for VTL Scripts Jan 21, 2025
@javihern98 javihern98 changed the title Use VTL model froom SDMX IM for VTL Scripts Use VTL model from SDMX IM for VTL Scripts Jan 21, 2025
@javihern98 javihern98 changed the title Use VTL model from SDMX IM for VTL Scripts Use VTL model from SDMX IM for VTL Scripts as input of semantic_analysis and execution Feb 10, 2025
@javihern98 javihern98 added the enhancement New feature or request label Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants