Skip to content
RED SAG Skills
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 }}'"
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions