Commit 2f5ffb9
authored
BigQuery: Moves all Table property conversion logic into properties (googleapis#5125)
* moves Table python/API type conversions into properties
* handles empty schema
* updates per comments and adds Table.to_api_repr()
* updates docstrings to google style
* removes properties with the same name as API field from _PROPERTY_TO_API_FIELD
* _build_resource() is only for update
* fixes variable name and comment
* fixes type handling for non-string properties
* adds partition_expiration to _PROPERTY_TO_API_FIELD1 parent bd50917 commit 2f5ffb9
File tree
4 files changed
+388
-481
lines changed- bigquery
- google/cloud/bigquery
- tests/unit
4 files changed
+388
-481
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | 275 | | |
280 | | - | |
| 276 | + | |
281 | 277 | | |
282 | 278 | | |
283 | 279 | | |
| |||
1111 | 1107 | | |
1112 | 1108 | | |
1113 | 1109 | | |
1114 | | - | |
| 1110 | + | |
1115 | 1111 | | |
1116 | 1112 | | |
1117 | 1113 | | |
| |||
1305 | 1301 | | |
1306 | 1302 | | |
1307 | 1303 | | |
1308 | | - | |
| 1304 | + | |
1309 | 1305 | | |
1310 | 1306 | | |
1311 | 1307 | | |
| |||
0 commit comments