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

Support CSV column renaming without having to use custom scripts #25

Open
2 tasks done
adlersantos opened this issue May 10, 2021 · 0 comments
Open
2 tasks done
Labels
feature request New feature or request

Comments

@adlersantos
Copy link
Member

Description

CSV column name remapping is a very common use case for data transforms.

To prevent contributors from having to keep writing a custom script to rename CSV columns, we can have a column name mapping feature built right into the YAML config file.

We can represent it as an operator such as:

dag:
  tasks:
    - operator: "RenameCSVHeadersOperator"
      source_csv: "gs://bucket/path/to/file.csv"
      mappings:
        - old_header: "DATE"
          new_header: "date"
        - old_header: "FACILITY_NAME"
          new_header: "facility_name"

Checklist

  • I created this issue in accordance with the Code of Conduct.
  • This issue is appropriately labeled.
@adlersantos adlersantos added the feature request New feature or request label May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant