google / google/googlesql

Get AST for query with error

Open
#75 2 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

I sucessfully use ZetaSQL to obtain AST for different queries. But if query contain any issue, I receive only error. For example for the query
```
select from my_table;
```
I will get only the following error and no any AST:
```
ERROR:
Code: InvalidArgument
Message: Syntax error: SELECT list must not be empty
```

Is it possible to get some kind of AST for such SQL queries with issues or for incomplete queries?

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.