Skip to content

Allow for using a path to a sql file on DbToCSVOperator argument select_sql#239

Merged
augusto-herrmann merged 8 commits into
mainfrom
issue-238
Feb 27, 2026
Merged

Allow for using a path to a sql file on DbToCSVOperator argument select_sql#239
augusto-herrmann merged 8 commits into
mainfrom
issue-238

Conversation

@augusto-herrmann

Copy link
Copy Markdown
Member

Fix #238

Adds a feature that allows on DbToCSVOperator argument select_sql – besides the existing functionality of passing a query string – using a path to a sql file containing the query. This is aligns to users' expectations as Airflow's native operators have always functioned like this.

@augusto-herrmann augusto-herrmann self-assigned this Feb 27, 2026
@augusto-herrmann augusto-herrmann added the enhancement New feature or request label Feb 27, 2026
@augusto-herrmann

Copy link
Copy Markdown
Member Author

Aproveitei a oportunidade e dei uma arrumada no código dessa classe: type hints, complementos à docstring, formatação black, etc.

@augusto-herrmann augusto-herrmann marked this pull request as ready for review February 27, 2026 20:08

@edulauer edulauer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good!!

@augusto-herrmann augusto-herrmann merged commit cb01807 into main Feb 27, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

DbToCSVOperator select_sql argument does not allow for an external sql file

2 participants