Skip to content

Quote column only if has special characters #5523

@Jefffrey

Description

@Jefffrey

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

#5343 (comment)

We can maybe go a step farther and only put " if the identifier would be normalized (e.g. it has something other than lowercase ascii letters) -- as a potential follow on PR

Describe the solution you'd like

Fix quoting behaviour to only do so if detect non-lowercase ascii letters in relation/name:

https://github.com/apache/arrow-datafusion/blob/35a3acf562e4e982564f1ebb1b1ce1edef07a1b1/datafusion/common/src/column.rs#L113-L123

Describe alternatives you've considered

Just leave it as always quoted by default.

Additional context

Also consider quoting other places where column/table names appear (e.g. in other error messages)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions