apache / apache/datafusion-sqlparser-rs

Add support for postgresql tablesample command

Open
#597 0 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

Postgresql supports an optional `[ TABLESAMPLE sampling_method ( argument [, ...] ) [ REPEATABLE ( seed ) ] ]` during a select statement to retrieve a subset of rows based on the arguments provided.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the SELECT-statement parser and inspect how PostgreSQL-specific clauses are handled. Add support for the TABLESAMPLE syntax described in the issue, including its sampling method, arguments, and optional REPEATABLE seed. Run the existing parser test suite and verify that valid PostgreSQL statements parse successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql, 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.