Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add export_options to export_to_file operator #2196

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jordanyakerirt
Copy link

@jordanyakerirt jordanyakerirt commented Nov 22, 2024

Description

What is the current behavior?

The current implementation of the export_to_file operator doesn't provide any mechanism for overriding or customizing the behavior of the file output. Instead the operator simply calls one of a number of Pandas.DataFrame.to_* functions with default functions that SDK users are locked in to.

closes: #2195

What is the new behavior?

This modification allows for the provision of a configuration dictionary that enables the customizing or overriding of the file write behavior by passing the parameters to the FileType.create_from_dataframe implementation.

Does this introduce a breaking change?

This is a non-breaking change since the export_options dictionary is completely optional.

Checklist

  • Created tests which fail without the change (if possible)
  • Extended the README / documentation, if necessary

@jordanyakerirt jordanyakerirt force-pushed the add-export-options-to-export_to_file branch 3 times, most recently from fdb1843 to 64cb781 Compare November 22, 2024 17:08
The current implementation of the export_to_file operator doesn't provide any mechanism for overriding or customizing the behavior of the file output. Instead the operator simply calls one of a number of Pandas.DataFrame.to_* functions with default functions that SDK users are locked in to.

This modification allows for the provision of a configuration dictionary that enables the customizing or overriding of the file write behavior by passing the parameters to the FileType.create_from_dataframe implementation.
@jordanyakerirt jordanyakerirt force-pushed the add-export-options-to-export_to_file branch from b3341c8 to fece91a Compare November 22, 2024 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow Customizing File Write Behavior of export_to_file Operator
1 participant