BigQuery 错误 ARRAY<STRUCT<gameType STRING, amount ARRAY<STRUCT<amount FLOAT64, type STRING>>>>
BigQuery error ARRAY<STRUCT<gameType STRING, amount ARRAY<STRUCT<amount FLOAT64, type STRING>>>>
我在 BigQuery 上有一些表,架构如下所示。
当我执行以下查询时,出现了一些异常
select * from `test.test.test_partitioned` WHERE DATE(_PARTITIONTIME) = "2020-03-01" and account.final_balance_sum >1
Cannot access field final_balance_sum on a value with type ARRAY<STRUCT<account_name STRING, final_balance_sum FLOAT64>> at [16:141]
我已经尝试过这里的解决方案,似乎对我根本不起作用。
select * EXCEPT(acc)
from `test.test.test_partitioned`,
UNNEST(account) acc
WHERE DATE(_PARTITIONTIME) = "2020-03-01"
and acc.final_balance_sum >1
我在 BigQuery 上有一些表,架构如下所示。
select * from `test.test.test_partitioned` WHERE DATE(_PARTITIONTIME) = "2020-03-01" and account.final_balance_sum >1
Cannot access field final_balance_sum on a value with type ARRAY<STRUCT<account_name STRING, final_balance_sum FLOAT64>> at [16:141]
我已经尝试过这里的解决方案,似乎对我根本不起作用。
select * EXCEPT(acc)
from `test.test.test_partitioned`,
UNNEST(account) acc
WHERE DATE(_PARTITIONTIME) = "2020-03-01"
and acc.final_balance_sum >1