Skip to content

SqlToS3Operator - Add feature to partition SQL table#30460

Merged
potiuk merged 7 commits into
apache:mainfrom
utkarsharma2:SqlToS3Operator
Apr 18, 2023
Merged

SqlToS3Operator - Add feature to partition SQL table#30460
potiuk merged 7 commits into
apache:mainfrom
utkarsharma2:SqlToS3Operator

Conversation

@utkarsharma2

Copy link
Copy Markdown
Contributor

Added feature to partition SQL table. Internally used pandas groupby() method to partition the generated dataframe. User can pass the parameters to groupby() by passing values in groupby_kwargs.

closes: #30382

@boring-cyborg boring-cyborg Bot added area:providers provider:amazon AWS/Amazon - related issues labels Apr 4, 2023
@utkarsharma2 utkarsharma2 changed the title SqlToS3Operator - Added feature to partition SQL table SqlToS3Operator - Add feature to partition SQL table Apr 4, 2023

@phanikumv phanikumv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

WDYT about including this additional feature in the docs ?

@utkarsharma2

Copy link
Copy Markdown
Contributor Author

@phanikumv Yup, missed it. Added them now.

Comment thread airflow/providers/amazon/aws/transfers/sql_to_s3.py Outdated
@utkarsharma2

Copy link
Copy Markdown
Contributor Author

@eladkal @o-nikolas Please review

Comment thread airflow/providers/amazon/aws/transfers/sql_to_s3.py Outdated
Comment thread tests/system/providers/amazon/aws/example_sql_to_s3.py Outdated
@utkarsharma2

Copy link
Copy Markdown
Contributor Author

@o-nikolas Can you please review?

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

Labels

area:providers provider:amazon AWS/Amazon - related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SqlToS3Operator not able to write data with partition_cols provided.

4 participants