apache / apache/datafusion-sqlparser-rs
Snowflake LIST @foo and REMOVE @foo stage syntax fail to parse with a semicolon
- Dominant language
- Rust
- Stars
- 3.5k
- Forks
- 772
- Avg merge
- 4d 9h
- Merged PRs (30d)
- 17
Description
```sql
-- breaks
LIST @bar;
-- ok
LIST @bar
-- breaks
REMOVE @bar;
-- ok
REMOVE @bar
```
This is starting to become a theme. See #1244, #1519.
1. can all the tests be made to test both with and without a semicolon
2. can the parser be generalized so whether a statement ends with EOF or `;` isn't up to every individual statement
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the parser entry points and existing tests for LIST and REMOVE, then compare the semicolon and no-semicolon cases described here. Done means both forms parse consistently, the relevant tests cover both endings, and statement termination is no longer handled separately by each statement.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, sql
- Domain
- compilers, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100