Skip to content

Unable to cast datetime to decimal #1848

Description

@imay

Describe the bug

select cast(k11 as decimal(19, 0)) from baseall;

k11 is datetime type column. This query will return NULL for this column.

But in PrimitiveType.java, Datetime type to decimal type is supported in implicitCastMap.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/fixCategorizes issue or PR as related to a bug.

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions