gpt4 book ai didi

google-bigquery - BigQUEry 架构中的 REPEATED + REQUIRED 字段

转载 作者:行者123 更新时间:2023-12-04 19:57:36 25 4
gpt4 key购买 nike

根据BigQuery schema documentation BigQuery 支持以下列模式:Nullable、Required 和 Repeated。
有没有办法同时使字段(类型为记录)需要和重复?

目前我有:

enter image description here

insert into test (id) values('333')

enter image description here

最佳答案

对于数组,不支持 REQUIRED。
DDL reference :

(...) supports an optional NOT NULL constraint for types other than ARRAY.


column_schema :=
{simple_type [NOT NULL] |
STRUCT<field_list> [NOT NULL] |
ARRAY<array_element_schema>}
[OPTIONS(column_option_list)]

所以,它只支持简单类型和 STRUCT/RECORD

不过,您可以发起功能请求: https://issuetracker.google.com/issues?q=componentid:187149

关于google-bigquery - BigQUEry 架构中的 REPEATED + REQUIRED 字段,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51927211/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com