apache / apache/datafusion-sqlparser-rs

Support REPLACE in SELECT

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

Description

Another one from DuckDB's friendlier syntax: https://duckdb.org/2022/05/04/friendlier-sql.html:

```
SELECT
* REPLACE (movie_count+3 as movie_count, show_count*1000 as show_count)
FROM star_wars_owned_by_disney
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the SELECT parsing entry point in this Rust SQL parser and compare its syntax handling with the DuckDB example in the issue. Support the shown SELECT * REPLACE expression and add coverage demonstrating that the example parses successfully.

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.