You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Query error when trying to insert in partitioned table #4073
I expected similar result as the CLI with bq query --use_legacy_sql=false --replace --destination_table 'dataset.table$20170927' "..." which works flawlessly
But it returned ERROR - 400 Partitioning specification must be provided in order to create partitioned table
I found out switching to the CLI implementation that the issue was that the table didn't existed (I was passing another dataset, not the one where I created the partitioned table).
I guess the server error is pretty misleading as partitioned tables can't be created out of the format of the table name (ie table$YYYYMMdd or table$YYYYMMddHH for upcoming hour level support) and therefore requires a prior bq mk --time_partitioning_type=DAY dataset.table command to be run.
After fixing my code, it looks like everything is working as intended.
Sorry for the noise.
Activity
[-]Query error when inserted in partitioned table[/-][+]Query error when trying to insert in partitioned table[/+]Kayrnt commentedon Sep 27, 2017
I found out switching to the CLI implementation that the issue was that the table didn't existed (I was passing another dataset, not the one where I created the partitioned table).
I guess the server error is pretty misleading as partitioned tables can't be created out of the format of the table name (ie table$YYYYMMdd or table$YYYYMMddHH for upcoming hour level support) and therefore requires a prior
bq mk --time_partitioning_type=DAY dataset.tablecommand to be run.After fixing my code, it looks like everything is working as intended.
Sorry for the noise.
chore(deps): update dependency google-auth to v1.17.1 [(#4073)](Googl…
chore: move samples from python-docs-sample (#66)
move monitoring samples from python-docs-samples (#51)
chore(deps): update dependency google-auth to v1.17.1 [(#4073)](Googl…
chore(deps): update dependency google-auth to v1.17.1 [(#4073)](Googl…