We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
In Step “SQL Query” I configured the query to use an environment variable:
SELECT * FROM input_df1 WHERE Fecha = '{os.environ["ENV_DATE"]}'
I press the button “Export to Python code” and I see:
sqlQuery1 = duckdb.query("""SELECT * FROM inlineInput1 WHERE Fecha = f'{os.environ["ENV_DATE"]}'""").to_df().convert_dtypes()
Which causes an error and the variable is not replaced:
Catalog Error: Type with name f does not exist! Did you mean "float"?
You should get something like:
sqlQuery1 = duckdb.query(f"""SELECT * FROM inlineInput1 WHERE Fecha = '{os.environ["ENV_DATE"]}'""").to_df().convert_dtypes()
SQLQuery_Using_environment_variables.zip
Attached pipeline.
Regards
The text was updated successfully, but these errors were encountered:
Thanks @bernabeudario, I was able to reproduce
Sorry, something went wrong.
No branches or pull requests
Hi,
In Step “SQL Query” I configured the query to use an environment variable:
I press the button “Export to Python code” and I see:
Which causes an error and the variable is not replaced:
You should get something like:
SQLQuery_Using_environment_variables.zip
Attached pipeline.
Regards
The text was updated successfully, but these errors were encountered: