-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
GoogleCloudStorageToBigQueryOperator reads string as a list in parameter source_objects #16008
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! |
|
@eladkal seems like the behaviour is the same in GCSToBigQueryOperator. |
PRs are welcome :) |
@eladkal Alright. Can this be assigned to me? |
You can just open a PR |
Fix GCS To BigQuery source_object to accept both str and list
* Fix: GCS To BigQuery source_object #16008 Fix GCS To BigQuery source_object to accept both str and list * convert source_objects to list if not list converting source_objects to list instead of modifying the logic part * add tests
Apache Airflow version:1.10.12
Environment: google cloud composer
What happened:
When using GoogleCloudStorageToBigQueryOperator and providing string as parameter source_objects, the process is iterating on a the string as a valid list.
For example -
cloud_storage_to_bigquery = GoogleCloudStorageToBigQueryOperator( bucket = 'bucket', source_objects = 'abc', )
Will result in looking into the sources: bucket/a, bucket/b, bucket/c.
What you expected to happen:
Throw an error on type (string instead of list).
The text was updated successfully, but these errors were encountered: