-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix gcs inputs #82
fix gcs inputs #82
Conversation
fix gcs inputs in generic file source update sample dag inputs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we able to add unit tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DAGs config looks fine, though I'm not sure what using an empty bucket prefix would mean (would it be a filesystem or a Cloud Ctorage lookup?), also I'd use os.path routines instead of concatenating path strings manually -- looks fine otherwise
I agree. |
@rabdulatipoff @soyarym an empty bucket prefix would mean that the file (blob since really we're only dealing with gcs for these buckets) we are searching for is not located inside any "folders". So if our file name was "users.csv" and our bucketname was "gcs-airflow" The path to that blob should be: gs://gcs-airflow/users.csv If instead the blob was located under "folders" (gcs doesn't actually have folders, but we can think of blob names like that) and the full path to the blob was: gs://gcs-airflow/some-folder/users.csv then we would need the gcs-prefix to be "some-folder" I like the idea of using os.path.join so I've added that as you guys recommended. |
@sharvenm |
Create class for unit tests Modify to use os.path.join to list files
760d4d0
to
f69a0d3
Compare
Updating configs and code to utilize default inputs from the file_source_config data class
Updating password values to be uncommon phrases as airflow will mask sensitive data in the logs Updating readme
f609276
to
71c59a6
Compare
fix gcs inputs in generic file source
update sample dag inputs