我们计划的查询已经运行了几个月,没有任何问题,但是从 2019 年 4 月 23 日世界标准时间晚上 8 点开始,它们失败并出现以下错误,36 小时后它们仍然经常失败。
11:00:01 PM Error code 3 : Incompatible table partitioning specification. Destination table exists with partitioning specification interval(type:DAY,field:), but transfer target partitioning specification is interval(type:DAY,field:). Please retry after updating either the destination table or the transfer partitioning specification.
11:00:00 PM Starting to process the query job with parameter @run_date=2019-04-23.
11:00:00 PM Dispatched run to data source with id 538824528883320
以下屏幕截图显示某些运行正常(但今天我们的查询均未成功运行):
我们尝试重新部署查询,但它们在第一次运行时仍然失败。点击 Retry
也会产生同样的错误。
更新 1
因此,在我们等待 Google 人员修复错误的同时,我们找到了一个解决方法,详见 https://issuetracker.google.com/issues/131266091 .
解决方案是在不使用 --require_partition_filter
和 --time_partitioning_expiration
的情况下重新创建我们计划查询的所有目标表。
我的意思是重新创建表格。使用 bq update --norequire_partition_filter --time_partitioning_expiration 0
更新表配置无法解决问题。
最佳答案
这是一个 known issue应该会尽快修复。
关于google-bigquery - 自 2019 年 4 月 23 日晚上 8 点 UTC 以来,我们所有计划的查询都以 `Error code 3 : Incompatible table partitioning specification.` 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55845038/