I want to create a BigQuery partitioned table by mydate
column from partitioned ORC.
Files in GCS :
mydate=2021-04-01/*.orc
...
mydate=2021-04-30/*.orc
Command bq:
bq load --source_format=ORC --time_partitioning_field mydate --time_partitioning_type DAY mydataset.mytable gs://mydata/*.orc
When I run this command I have this error : The field specified for partitioning cannot be found in the schema
because mydate
is not in ORC file.
How can I manage that?
Thanks for your help and have a nice day.