Open jrbangit opened 1 year ago
Support in the evaluator is not likely, but it is supported in the various other api calls (Analyzer.java).
You may need to modify the LanguageOptions to enable the statements you need enabled: You can see an example here: https://github.com/google/zetasql/blob/206e78c86a85053f2c0d75db6fa7b1998181263b/javatests/com/google/zetasql/AnalyzerTest.java#L284
AnalyzerOptions analyzerOptions = new AnalyzerOptions();
analyzerOptions
.getLanguageOptions()
.setSupportedStatementKinds(ImmutableSet.of(ResolvedNodeKind.RESOLVED_CREATE_TABLE_STMT));
Analyzer.analyzeStatement(sql, analyzerOptions, new SimpleCatalog(""))
Hi, CLONE query works for me.
CREATE TABLE
Hi, All
just wondering if there is a support coming for these bigquery statements?
reference: https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#create_table_copy
currently, I'm encountering this limitation below.
edit: it seems COPY is supported, only CLONE is not supported.
Thank you!