astronomer / astro-sdk

Astro SDK allows rapid and clean development of {Extract, Load, Transform} workflows using Python and SQL, powered by Apache Airflow.
https://astro-sdk-python.rtfd.io/
Apache License 2.0
338 stars 42 forks source link

Restrict columns while loading from file to table #889

Open phanikumv opened 1 year ago

phanikumv commented 1 year ago

Please describe the feature you'd like to see Check if there is a way to restrict the columns while loading from file to table using Astro SDK load_file operator? Example Scenario - I got a file in S3 having 6 columns, now the requirement is that I load only the required 5 columns from the file on S3 to the GBQ table. Relevant thread https://astronomer.slack.com/archives/C02B8SPT93K/p1663775775875379

Describe the solution you'd like A clear and concise description of what you want to happen, if possible with code examples.

Are there any alternatives to this feature? Is there another way we could solve this problem or enable this use-case?

Additional context Add any other context about the feature request here.

Acceptance Criteria

sunank200 commented 1 year ago

@phanikumv is this from a user?