Should the `generic` dialect support numeric literals with underscore separators?
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
调研方向
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 内容生成。
描述
Right now, the generic dialect (DataFusion's default) does not support numeric literals with separators:
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.
- 主要语言
- Rust
- 星标
- 3.5k
- 派生
- 780
- 平均合并
- 4 天 6 小时
- 30 天内合并 PR
- 56
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/datafusion-sqlparser-rs 的其他 Issue
-
ClickHouse
难度 2/5 1-3 小时 新手友好度 78/100
apache/datafusion-sqlparser-rs#2599 ·
维护者通常 2 天内回复
-
ClickHouse: Support `GLOBAL IN` / `GLOBAL NOT IN`可能已有人在做 @s5dsn-eqee 于 6 天前认领。 未关闭ClickHouse
难度 2/5 1-3 小时 新手友好度 76/100
apache/datafusion-sqlparser-rs#2597 ·
维护者通常 2 天内回复
-
HIVE: Round trip fails for field access on a numeric-prefix identifier可能已有人在做 @efegokdemir 于 9 天前认领。 未关闭Hive
难度 2/5 1-3 小时 新手友好度 70/100
apache/datafusion-sqlparser-rs#2589 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
apache/datafusion-sqlparser-rs#2461 · 2 条评论 ·
维护者通常 2 天内回复
-
PostgreSQL 18 generated virtual columns require STORED可能已有人在做 @ting-hong-shieh 于 50 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 73/100
apache/datafusion-sqlparser-rs#2407 ·
维护者通常 2 天内回复
查看 apache/datafusion-sqlparser-rs 的全部 Issue
相似的 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 78/100
zcashlabs/thus-spoke-zakura#153 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 79/100
topgrade-rs/topgrade#2395 ·
维护者通常 1 天内回复
-
app bug windows-os
难度 2/5 1-3 小时 新手友好度 67/100
维护者通常 1 天内回复
-
editor good first issue
难度 2/5 1-3 小时 新手友好度 65/100
funnyboy-roks/inq#54 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复