apache / apache/datafusion-sqlparser-rs

Add support for postgresql tablesample command

未关闭
#597 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Rust
星标
3.5k
派生
772
平均合并
4 天 9 小时
30 天内合并 PR
17

描述

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.

贡献指南

这个仓库没有索引到贡献指南

调研方向

从 SELECT 语句解析器入手,检查 PostgreSQL 特有子句的处理方式。添加对 issue 中所述 TABLESAMPLE 语法的支持,包括其采样方法、参数和可选的 REPEATABLE seed。运行现有的解析器测试套件,并验证有效的 PostgreSQL 语句能够成功解析。

由索引模型根据 Issue 内容生成。

评估

技术栈
postgresql, rust, sql
领域
databases
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。