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
Describe the bug
@guohui-gao reported this issue.
Given a DAG which
transform
run_raw_sql
dataframe
Table
{{ ds }}
The user will get errors related to that table having an invalid identifier.
Example:
tickets_daily_table = Table(name="TICKETS_{{ts_nodash}}", metadata=transform_meta) create_daily_table = create_daily_table(tickets_daily_table)
Version
To Reproduce Steps to reproduce the behavior:
fix-templated-table-name
git checkout fix-templated-table-name
$ PYTHONPATH=`pwd`/src pytest -k test_transform_with_templated_table_name
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) near "-": syntax error [SQL: DROP TABLE IF EXISTS test-is-{{ test_mode }}]
Expected behavior
Users should be able to use Airflow templates in table names in astro-sdk-python SQL decorators.
astro-sdk-python
The text was updated successfully, but these errors were encountered:
sunank200
Successfully merging a pull request may close this issue.
Describe the bug
@guohui-gao reported this issue.
Given a DAG which
transform
,run_raw_sql
ordataframe
)Table
that has a name using an Airflow template (e.g.{{ ds }}
)The user will get errors related to that table having an invalid identifier.
Example:
Version
To Reproduce
Steps to reproduce the behavior:
fix-templated-table-name
(f02a069) with a test that shows this issueExpected behavior
Users should be able to use Airflow templates in table names in
astro-sdk-python
SQL decorators.The text was updated successfully, but these errors were encountered: