-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Add autodetect parameter to BigQueryLoadTask (#2363) #2575
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 autodetect parameter to BigQueryLoadTask (#2363) #2575
Conversation
Hey! Anybody will have time to check this one out or let's agree to close it? Regards. I allow myself to notify you, @dlstadther |
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.
Sorry - this fell through the cracks!
The code changes make sense to me.
It looks like you based off a broken version of master. Could you merge in master?
Also, not sure if this is something you can add a unittest for, but if so that'd be great!
Thanks!
I have merged current master. I don't think this change would be testable in unit tests, maybe in some integration 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.
Thanks
That's fine. It's only an else conditional anyway that's straightforward. I guess so long as it works for you in production, i'm good with it
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.
LGTM. Maybe someone using GCP wants to comment?
I guess nobody using GCP is keen on commenting, maybe we can merge it? :) |
@honnix Do you/Spotify have BigQuery luigi experience to just say "LGTM"? |
👍 |
Description
When schema is not provided try to use
autodetect
parameter.Removed comment that implicates that it doesn't work for JSON
(docs linked below explicitly says it works for JSON)
Motivation and Context
It solves: #2363
Have you tested this? If so, how?
I ran my jobs with this code and it works for me.
It also matches description of
configuration.load.autodetect
in docs https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.load