我想同时查询以下查询的Info2和Info3。如何在BigQuery中对同一张表执行此操作。Info3也具有类似于info2的条件。
谢谢!
ID | startDate | endDate | info1 | info2 | info 3
----------------------------------------------------
1 | 11-12-2000 | 11-12-2010 | Blue | Circle | A
| Triangle | B
| Square |
----------------------------------------------------
2 | 11-12-2001 | 11-12-2011 | Yellow | <*> | C
----------------------------------------------------
3 | 11-12-2007 | 11-12-2008 | Brown | Circle | D
| Triangle | B
----------------------------------------------------
Run Code Online (Sandbox Code Playgroud)
info2!=“ <*>” AND inf3 = B
ID | startDate | endDate | info1 | info2 | info 3 …Run Code Online (Sandbox Code Playgroud) 根据 Google BigQuery 文档,BigQuery 具有以下限制 ( https://cloud.google.com/bigquery/quotas ):
\n\n\n\n\n1) 每个分区表的最大分区数 \xe2\x80\x94 4,000。
\n\n2) 表、查询结果或视图定义中的最大列数 \xe2\x80\x94 10,000
\n
基于 Amazon Athena 文档:( https://docs.aws.amazon.com/athena/latest/ug/service-limits.html ):
\n\n\n\n\n每个分区表的最大分区数 \xe2\x80\x94 20,000
\n
AWS Athena 或 Presto 的列数是否有硬性限制?
\n\n谢谢!
\n我正在尝试编写一个函数来检查 BigQuery 中是否存在表。以下代码始终返回 true。问题出在哪儿?
谢谢!
private static boolean checkTableExist() {
try {
BigQueryOptions.Builder optionsBuilder = BigQueryOptions.newBuilder();
BigQuery bigquery = optionsBuilder.build().getService();
bigquery.getTable(options.getBigQueryDatasetId(), options.getBigQueryTableId());
} catch (Exception e) {
return false;
}
return true;
}
Run Code Online (Sandbox Code Playgroud)