apache / apache/datafusion-sqlparser-rs
Should the `generic` dialect support numeric literals with underscore separators?
- 主要语言
- Rust
- 星标
- 3.5k
- 派生
- 772
- 平均合并
- 4 天 9 小时
- 30 天内合并 PR
- 17
描述
Right now, the `generic` dialect (DataFusion's default) does not support numeric literals with separators:
```sql
DataFusion CLI v54.0.0
> select 1_000;
+------+
| _000 |
+------+
| 1 |
+------+
```
I'm wondering if the `generic` dialect should support this, just like Postgres/DuckDB/SQLite/Clickhouse, so DataFusion can use them directly without needing to switch to another dialect.
贡献指南
这个仓库没有索引到贡献指南
调研方向
Start by reproducing `select 1_000;` in the DataFusion CLI and trace how the `generic` dialect tokenizes and parses numeric literals. Compare its behavior with the Postgres, DuckDB, SQLite, or ClickHouse dialects mentioned in the issue; done means the generic dialect accepts numeric separators without treating `_000` as a column name.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- rust, sql
- 领域
- databases
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 65/100