apache / apache/datafusion-sqlparser-rs

Add support for array slice

Open
#1,108 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

While working on https://github.com/apache/arrow-datafusion/pull/8946, I discovered that sqlparser-rs does not support tokens such as `[-1:-1]` or `[-2:3]`.

Contributor guide

No contributing guide indexed for this repository

Research direction

No files or tests are named in the issue. Start by reproducing the parser behavior for `[-1:-1]` and `[-2:3]`, then trace where array-slice syntax is parsed and add coverage for the reported forms. Done means the parser accepts these slice expressions without errors.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.