Uh oh!
There was an error while loading. Please reload this page.
feat: Adds source_column_match and associated tests - #2227
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
chalmerlowe
left a comment
There was a problem hiding this comment.
Altered docstring formatting to try and eliminate a docs error.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| # return None | ||
| @source_column_match.setter | ||
| def source_column_match(self, value: Optional[SourceColumnMatch]): |
There was a problem hiding this comment.
I would like us to allow str in the setter as well. Can you update this, please?
| return None | ||
| @source_column_match.setter | ||
| def source_column_match(self, value: Optional[SourceColumnMatch]): |
There was a problem hiding this comment.
Same here. Can we allow str, please?
| return self.configuration.clustering_fields | ||
| @property | ||
| def source_column_match(self): |
There was a problem hiding this comment.
Missing return type annotation?
| config._properties["load"]["sourceColumnMatch"] = option_enum.value | ||
| self.assertEqual(config.source_column_match, option_enum) | ||
| def test_source_column_match_setter(self): |
There was a problem hiding this comment.
Could we add another test where we use the setter with a str, too?
There was a problem hiding this comment.
Done, both here and in test_external_config.py
Co-authored-by: Tim Sweña (Swast) <swast@google.com>
Uh oh!
There was an error while loading. Please reload this page.
This commit introduces new configuration options for BigQuery load jobs and external table definitions, aligning with recent updates to the underlying protos.
New options added:
source_column_name_match_option: Controls how source columns are matched to the schema. (Applies to LoadJobConfig, ExternalConfig, LoadJob)Changes include:
LoadJobConfig,LoadJob,ExternalConfig, andCSVOptions.