简体   繁体   English

BigQuery 外部表 - 我无法再创建 - 确保所有字段都正确才能继续

[英]BigQuery External Table - i can't create anymore - Make sure all fields are correct to continue

I have already created external tables several times on BigQuery but for a few days it no longer wants to work and the error is too generic to understand.我已经在 BigQuery 上创建了几次外部表,但几天后它不再想工作,而且错误太笼统而无法理解。

在此处输入图像描述

It seems BigLake Option is blocking.似乎 BigLake Option 正在阻塞。

Works fine with this alternative route https://www.googlecloudcommunity.com/gc/Cloud-Hub/Unable-to-created-big-query-external-tables-using-GCS-datasets/mp/445577 :与这条替代路线https://www.googlecloudcommunity.com/gc/Cloud-Hub/Unable-to-created-big-query-external-tables-using-GCS-datasets/mp/445577一起工作正常:

We can be able to create the table via the command line using bq mk, CREATE EXTERNAL TABLE in SQL or via api: https://cloud.google.com/bigquery/docs/external-data-cloud-storage#sql We can be able to create the table via the command line using bq mk, CREATE EXTERNAL TABLE in SQL or via api: https://cloud.google.com/bigquery/docs/external-data-cloud-storage#sql

In my case, the SQL Command line is:就我而言, SQL 命令行是:

CREATE OR REPLACE EXTERNAL TABLE {project_id}.{dataset_name}.{table_name}(
CODE STRING,
LOAD_AT TIMESTAMP ,
LOAD_TYPE STRING 
) OPTIONS (
    format = 'CSV',
    uris = ['gs://{my_bucket}/{folder}/{filename_suffix}__*.csv'],
    skip_leading_rows = 0,
    field_delimiter = "|");

The same issue was pointed out on google support page . 谷歌支持页面上指出了同样的问题。 See my comment you can use DLL as a workaround.请参阅我的评论,您可以使用 DLL 作为解决方法。

CREATE EXTERNAL TABLE project_id.dataset_name.table_name (
  x STRING, 
  y INTEGER,
  z STRING,...
)
OPTIONS (
  format = GOOGLE_SHEETS,
  uris = ['https://url'],
  sheet_range='country',
  skip_leading_rows= 1
); 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我无法使用正确的详细信息验证 Firebase。 获取错误:确保使用服务帐户凭据初始化 SDK - I can't authenticate Firebase with correct details. Get error: Make sure to initialize the SDK with a service account credential 如何在 BigQuery 中创建外部数据源并连接到 composer cloud sql? - How can I create external data source in BigQuery and connect to composer cloud sql? 无法在 BigQuery 中创建计划查询,但不确定原因 - Unable to create a scheduled query in BigQuery, but not sure why Spark 读取 BigQuery 外部表 - Spark Read BigQuery External Table BigQuery 创建临时表 - BigQuery create Temp table Bigquery 定价比较:将数据加载到 Bigquery 与使用创建外部表 - Bigquery Pricing Comparison : Loading data into Bigquery vs Using Create External Table 我可以在 BigQuery 中使用 CALL 创建表或从存储过程结果插入数据吗? - Can i create table or insert data from stored procedure results use CALL in BigQuery? BigQuery 中的“创建表为” - 'Create Table As' in BigQuery 如何在 BIgQuery 中创建表? - How to CREATE TABLE in BIgQuery? 如何使用 google cloud bigquery 进行集成测试 - How can I make integration tests with google cloud bigquery
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM