Skip to content

Commit

Permalink
supports date type casting
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangli20 committed Jul 1, 2024
1 parent 79a0f13 commit 173607e
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -532,9 +532,7 @@ object NativeConverters extends Logging {

// cast
// not performing native cast for timestamp/dates (will use UDFWrapper instead)
case cast: Cast
if !Seq(cast.dataType, cast.child.dataType).contains(TimestampType) &&
!Seq(cast.dataType, cast.child.dataType).contains(DateType) =>
case cast: Cast if !Seq(cast.dataType, cast.child.dataType).contains(TimestampType) =>
buildExprNode {
_.setTryCast(
pb.PhysicalTryCastNode
Expand Down

0 comments on commit 173607e

Please sign in to comment.