Skip to content

Conversation

@guan404ming
Copy link
Member

@guan404ming guan404ming commented May 4, 2025

Related Issue

Why

get_df, get_df_by_chunks would return union df type for pandas and polars which would make type annotation in each providers mess.

How

Overload type definition to return pandas dataframe when "pandas" is passed and also the polars one.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@guan404ming guan404ming marked this pull request as ready for review May 4, 2025 07:04
@guan404ming guan404ming requested a review from eladkal as a code owner May 4, 2025 07:04
@eladkal eladkal merged commit f93f5eb into apache:main May 4, 2025
52 of 78 checks passed
@guan404ming
Copy link
Member Author

Thanks for the review.

@guan404ming guan404ming deleted the type-common-sql branch May 4, 2025 08:03
@guan404ming
Copy link
Member Author

Hi @eladkal , I think we could try get back to this one #49340 with this PR’s type refine. I think I could help open a PR with it. What do you think?

@eladkal
Copy link
Contributor

eladkal commented May 5, 2025

@guan404ming feel free to raise PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants