apache / apache/datafusion-sqlparser-rs

Interest in partial parsing and sql formatting?

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

Description

Hello! I've been loving sqlparser-rs, I've been having a lot of fun using it with [a tool I've been working on recently](https://github.com/zmaril/bpfquery). As part of my work, I would like to do two things with sqlparser-rs that I don't think are supported right now. I'd like to be able to get a partial parse of a sql string back out, for use with code editors and text highlighting. Additionally, I would like to be able to format sql with my particular dialect as well eventually. Would you all be interested in me trying to contribute this back to the library somehow when I get around to it? Did I miss something somewhere hopefully? Thanks again for a great library.

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue proposes partial SQL parsing for editor highlighting and dialect-specific SQL formatting, but names no files, tests, or entry points. Start by clarifying the intended scope and reviewing the parser and formatting surfaces; done would require an agreed design and demonstrable support for the requested capabilities.

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
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.