【发布时间】:2021-05-10 19:56:51
【问题描述】:
我想通过分区 ORC 中的mydate 列创建 BigQuery 分区表。
GCS 中的文件:
mydate=2021-04-01/*.orc
...
mydate=2021-04-30/*.orc
命令 bq:
bq load --source_format=ORC --time_partitioning_field mydate --time_partitioning_type DAY mydataset.mytable gs://mydata/*.orc
当我运行此命令时,出现此错误:The field specified for partitioning cannot be found in the schema 因为mydate 不在 ORC 文件中。
我该如何管理?
感谢您的帮助,祝您有美好的一天。
【问题讨论】:
标签: google-bigquery google-cloud-storage orc