Skip to content

Should the generic dialect support numeric literals with underscore separators? #2432

Description

@nuno-faria

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions