-
Notifications
You must be signed in to change notification settings - Fork 1.4k
feat(bigquery): export HivePartitioningOptions in load job configurations #3877
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
Conversation
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.
nit: conventional commits for commit message
feat(bigquery): export ....
Weird that the conventional commit bot didn't seem to have issue with it. Updated. |
I think it just checks for the presence of any word before the colon, which the original go commit format satisfies |
bigquery/load.go
Outdated
@@ -111,6 +118,9 @@ func bqToLoadConfig(q *bq.JobConfiguration, c *Client) *LoadConfig { | |||
fc = &s.FileConfig | |||
lc.Src = s | |||
} | |||
if q.Load.HivePartitioningOptions != nil { |
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.
Same comment.
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.
done
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.
Looks like this still needs an update?
RequirePartitionFilter: true, | ||
}, | ||
}, | ||
want: func() *bq.Job { |
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.
🤯
This took me a second.
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.
You have no idea how much I wish we weren't in the business of mapping back and forth to discovery representations for complex resources like job configs.
Co-authored-by: Tyler Bui-Palsulich <26876514+tbpg@users.noreply.github.com>
bigquery/load.go
Outdated
@@ -111,6 +118,9 @@ func bqToLoadConfig(q *bq.JobConfiguration, c *Client) *LoadConfig { | |||
fc = &s.FileConfig | |||
lc.Src = s | |||
} | |||
if q.Load.HivePartitioningOptions != nil { |
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.
Looks like this still needs an update?
Fixes: #3876