简体   繁体   中英

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.

在此处输入图像描述

It seems BigLake Option is blocking.

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 :

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:

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.

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
); 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM