将数据从一个表追加到另一个表时,BigQuery无效的时间戳记错误

时间:2019-04-18 01:54:30

标签: google-bigquery

我试图将数据从一个表复制到另一个具有不同分区和群集字段的表,但是我一直收到无效的时间戳错误。到源表中的数据始终使用standardSQL编写,因此从源表查询数据时不会出现问题。还有其他人遇到类似问题吗?

这是我的桌子的样子:

Project: sample
Dataset: test
Table Name: table_a
event_id integer,
event_name string,
event_category string,
service_name string
service_timestamp timestamp
event_timestamp timestamp
Partitioned by event_timestamp, Clustered By: event_category

Project: sample
Dataset: test
Table Name: table_b
event_id integer,
event_name string,
event_category string,
service_name string
service_timestamp timestamp
event_timestamp timestamp
Partitioned by event_timestamp, Clustered By: service_name

我正在尝试使用以下命令将数据从table_a复制到table_b:

bq query --allow_large_results --append_table --use_legacy_sql=false --destination_table 'sample.test.table_b'  "select * from \`sample.test.table_a\` where event_timestamp>='2018-01-01'";
Cannot return an invalid timestamp value of 632691030736614000 microseconds relative to the Unix epoch. The range of valid timestamp values is [0001-01-1 00:00:00, 9999-12-31 23:59:59.999999]; error in writing field service_timestamp```

0 个答案:

没有答案