hardStudy question · answer published in Python interview questions, so no pointsairflowairflow-templatingpython
Template lost inside an f-string
A templated sql field is built as below. The query fails because the date filter is wrong. What did the operator actually receive?
table = "sales"
sql = f"SELECT * FROM {table} WHERE dt = '{{ ds }}'"Discussion 0
Join free to post in the discussion.
Related questions
- Retrying flaky Airflow tasksData Engineer
- What an Airflow sensor doesData Engineer
- Reading a cron scheduleData Engineer
- A CSV bigger than memoryData Engineer
- Operator, task and task instanceData Engineer
- What the scheduler doesData Engineer
- Metadata database for productionData Engineer
- What @weekly meansData Engineer