google-bigquery - 如何使用legacySQL查询带分区列的表

标签 google-bigquery

目前我正在得到一个 旧版 SQL 不支持查询按字段分区的表 如何使用 Legacy Sql 查询分区表?

最佳答案

What can I do to use Legacy Sql to query a partitioned table?

正如错误消息所示,您不能使用旧版 SQL 来查询分区表。

I'm using legacy SQL, because this is what our version of composer airflow is on now. airflow 1.9-composer

在大多数不为查询方言提供显式选项的工具中,您可以使用#standardSQL shebang,例如

#standardSQL
SELECT COUNT(*)
FROM dataset.partitioned_table

关于google-bigquery - 如何使用legacySQL查询带分区列的表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53732383/

相关文章:

c# - 将日期时间转换为日期字段以传递到 Google BigQuery

google-bigquery - 为什么在执行 BigQuery Extract 时会得到 "Internal Error"

google-bigquery - 谷歌云数据流 : How to read data from a Database and write to BigQuery

python - 从字典列表中创建嵌套的 json 对象

google-cloud-platform - 在现有大查询表上添加集群

python - 保存到 parquet 文件时如何使用新的 Int64 pandas 对象

google-cloud-platform - 火存储 : sync more than one collecttion/subcollection to BigQuery using extension firestore-bigquery-export

mysql - 如何构建一个稳定的系统,每天处理 9000 万行并传输到实时服务器?

google-bigquery - bigquery ORDER BY 子句使用哪种排序算法?

google-bigquery - 在 Google BigQuery 中连接 2 个大小相等的表