output_mode=json yields ExecuteQueryWriter does not implement parsed
- Dominant language
- C++
- Stars
- 2.6k
- Forks
- 260
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I'm trying to get back a json object when parsing a query via the cli tool, but I'm getting back a
`ExecuteQueryWriter does not implement parsed`
instead.
The same query (which is a dummy query) does work when I pass in `--output_mode=box`
Wondering if this is a known issue or if I'm holding it wrong.
System: macos
Build: 2024.11.1
> In the following example I've named the binary `zetasqlcli`
```shell
[I] ~> zetasqlcli --mode=parse --output_mode=box 'select * from tbl;'
QueryStatement [0-17]
Query [0-17]
Select [0-17]
SelectList [7-8]
SelectColumn [7-8]
Star(*) [7-8]
FromClause [9-17]
TablePathExpression [14-17]
PathExpression [14-17]
Identifier(tbl) [14-17]
[I] ~> zetasqlcli --mode=parse --output_mode=json 'select * from tbl;'
ExecuteQueryWriter does not implement parsed
```
Contributor guide
Research direction
Reproduce the issue with zetasqlcli using --mode=parse and compare --output_mode=box with --output_mode=json for the sample query. Trace the parse-mode CLI output path and determine why JSON receives an ExecuteQueryWriter; done means the JSON command returns the parsed query instead of the error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, sql
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100