apache / apache/datafusion-sqlparser-rs
Is there a way to parse `table_factor` only?
- Dominant language
- Rust
- Stars
- 3.5k
- Forks
- 772
- Avg merge
- 4d 9h
- Merged PRs (30d)
- 17
Description
I want to parse some table_factor with args like
```rs
"Table(3)"
```
but without parsing full sentense (`SELECT * FROM Table(3)`)
I found there is `fn parse_table_factor` but it seem like it can not be used stand-alone
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading the existing parse_table_factor function and the full-statement parsing path to understand why it cannot be called standalone. Try the Table(3) input through the parser entry points and determine the smallest public path that accepts a table_factor alone. Done means the standalone input parses successfully and has coverage in the relevant parser tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, sql
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100