apache / apache/datafusion-sqlparser-rs

`ORDER BY` parser

Open
#795 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
3.5k
Forks
772
Avg merge
4d 9h
Merged PRs (30d)
17

Description

Would a specific `ORDER BY` parser fit into this crate? It would generate an iterator which yields `Result`. I have developed a rudimentary version of this, which I am using in production. I could further polish it and open a PR if this would be of interest. I am just repeatedly calling `parse_order_by_expr` and looking for `EOF`.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the parser entry point for parse_order_by_expr and the existing ORDER BY grammar, then compare how ParserError and EOF are handled by related parser APIs. The scope still needs agreement on the iterator interface; done would include an accepted API and tests for multiple expressions, EOF, and parse errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, sql
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.