google / google/googlesql

[Analyzer] No way to analyze scripts

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

Description

It seems that ZetaSQL supports whole-script parsing (`Parser::ParseScript`), which, significant for my purpose, allows analysis of scripts with toplevel `DECLARE` statements, as is also possible within BigQuery.
But the Analyzer API (in C++ as well as Java) does not provide an interface to this functionality, so I'm stuck with having to wrap my scripts with a superfluous `BEGIN`/`END` block.
It'd be nice if this where a supported feature.

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.