Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google cloud platform BigQuery:使用struct创建表语句_Google Cloud Platform_Google Bigquery - Fatal编程技术网

Google cloud platform BigQuery:使用struct创建表语句

Google cloud platform BigQuery:使用struct创建表语句,google-cloud-platform,google-bigquery,Google Cloud Platform,Google Bigquery,使用struct字段创建table语句的语法是什么?下面似乎不起作用。我想创建一个记录字段,如id.level1.level2.level3 CREATE TABLE mayumi_load_test.struct_cre( STRUCT<STRUCT<STRUCT<STRUCT<id INT64> level1> level2>level3, t_ TIMESTAMP ) PARTITION BY Date(t_) 创建表mayumi\u loa

使用struct字段创建table语句的语法是什么?下面似乎不起作用。我想创建一个记录字段,如
id.level1.level2.level3

CREATE TABLE mayumi_load_test.struct_cre(
STRUCT<STRUCT<STRUCT<STRUCT<id INT64> level1> level2>level3,
  t_ TIMESTAMP
)
PARTITION BY Date(t_)
创建表mayumi\u load\u test.struct\u cre(

下面的STRUCT用于BigQuery标准SQL

创建表


显示您希望在表的rowI included嵌套字段中看到的行的示例,我正试图表示该行。
#standardSQL
CREATE TABLE mayumi_load_test.struct_cre (
  id STRUCT<level1 STRUCT<level2 STRUCT<level3 INT64>>>,
  t_ TIMESTAMP
)
PARTITION BY DATE(t_)   
#standardSQL
INSERT INTO mayumi_load_test.struct_cre(id, t_) 
  VALUES(
    STRUCT(STRUCT(STRUCT(777))),
    CURRENT_TIMESTAMP()
  )