google / google/googlesql

How to get DDL/DML SQL type without catalog?

Open
#129 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
2.6k
Forks
260
PR merge metrics
No merged PRs in 30d

Description

Hi team, I've known about how to extract table names from SQL. And I wonder could I get the SQL type (a create table statement/ a drop table statement/...) without catalog. For when I extract table names without setSupportsAllStatementKinds, it throws exception that `com.google.zetasql.SqlException: Statement not supported: CreateTableStatement`, so I think maybe the SQL statement type could be got without catalog.
Thanks in advance.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.