Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.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 bigquery 布尔值的bigquery concat数组_Google Bigquery - Fatal编程技术网

Google bigquery 布尔值的bigquery concat数组

Google bigquery 布尔值的bigquery concat数组,google-bigquery,Google Bigquery,正在尝试运行此查询,但“已授予”字段存在问题: 授予的是布尔值而不是字符串,我收到以下错误: No matching signature for function ARRAY_TO_STRING for argument types: ARRAY, STRING. Supported signatures: ARRAY_TO_STRING(ARRAY, STRING, [STRING]); ARRAY_TO_STRING(ARRAY, BYTES, [BYTES]) at [6:1] 您应该将

正在尝试运行此查询,但“已授予”字段存在问题:

授予的是布尔值而不是字符串,我收到以下错误:

No matching signature for function ARRAY_TO_STRING for argument types: ARRAY, STRING. Supported signatures: ARRAY_TO_STRING(ARRAY, STRING, [STRING]); ARRAY_TO_STRING(ARRAY, BYTES, [BYTES]) at [6:1]

您应该将布尔值转换为字符串,如下例所示

ARRAY_TO_STRING(ARRAY(SELECT CAST(granted AS STRING) FROM t.protopayload_auditlog.authorizationInfo), ',') granted,

您应该将布尔值转换为字符串,如下例所示

ARRAY_TO_STRING(ARRAY(SELECT CAST(granted AS STRING) FROM t.protopayload_auditlog.authorizationInfo), ',') granted,