Skip to content

count(Literal) gives wrong column name #3891

@HaoYang670

Description

@HaoYang670

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Tested on the latest datafusion-cli

select count(2.2);
+-----------------+
| COUNT(UInt8(1)) |
+-----------------+
| 1               |
+-----------------+

Expected behavior
I'd like the column name to be

COUNT(Float64(2.2))

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions