google-bigquery - 无法将数据加载到摄取时间分区表中

标签 google-bigquery

我创建了一个空白的摄取时间分区表,该表由四列聚类。我无法将数据加载到表中。它显示以下消息:“摄取时间分区表不支持省略 INSERT 目标列列表”。如何解决?

最佳答案

我认为您试图在不指定列名的情况下将数据插入表中:

insert into `project-id.dataset_id.target`
select col1,col2,col3 from `project-id.dataset_id.source`;

如果目标是摄取时间分区表,这将不起作用 您必须指定列:

insert into `project-id.dataset_id.target`(col1,col2,col3)
select col1,col2,col3 from `project-id.dataset_id.source`;

关于google-bigquery - 无法将数据加载到摄取时间分区表中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62616853/

相关文章:

google-bigquery - 如何更改 BigQuery 中的项目

go - 从bigquery开放式数据库中查询IP地理位置数据:geolite2

google-bigquery - 如何使用 Google BigQuery 从 GDELT 获取超过 6 个月的数据

sql - 如何通过循环变量在 dbt 中多次运行 SQL 模型?

google-bigquery - 在 BigQuery 接收器中进行一次处理的上下文中,重新洗牌是什么意思?

javascript - 将数据从 gsheet 插入到 bigquery

python - 错误: "Required Parameter is Missing" - While Getting Anonymous Table in BigQuery

python-3.x - BigQuery - 从按日期分区的表中删除行

google-analytics - 大查询 : Returning Visits Count Mismatch with google Analytics data

google-analytics - google 如何在 Bigquery/Google-Analytics 中设置 fullVisitorId/Client ID?