Skip to content

Unable to cast datetime to decimal #1848

@imay

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.

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