apache / apache/datafusion-sqlparser-rs

Allow parsing any permutation of create sequence options

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

Description

Hi, many thanks for the project!

I would like to be able to parse the create sequence options in any particular order instead of just what postgreslq/duckdb support. Afaik oracle for example allows any permutation of the options.

If this is something that you'd be willing accept, I would be happy to implement the necessary changes to allow any permutation and hide it behind something like a dialect flag.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the create-sequence option parser and its existing PostgreSQL/DuckDB ordering handling. Compare the requested Oracle-style permutations and determine how a dialect flag should control them; done means supported permutations parse correctly without changing existing dialect behavior, with tests covering the ordering cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, sql
Domain
compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.