Reputation: 1053
I just saw that I can create a custom partitioned
table in BigQuery. Meaning partitioned by any timestamp
column.
However, the newly created table can only be accessed and queried from StandardSQL
!
Is there a way to query the new tables from Legacy?
Upvotes: 1
Views: 4045
Reputation: 334
You just have to state LegacySql to false
, for example:
var projectId = 'xxxxxxx';
var request = {
query: 'select * from project.database.table',
useLegacySql: false
};
var queryResults = BigQuery.Jobs.query(request, projectId);
Upvotes: 0
Reputation: 207982
Just at the begining of the documentation says in limitations you don't have Legacy SQL support.
Partitioned tables are subject to the following limitations:
Upvotes: 4