Skip to content

Commit

Permalink
Use GetTimestamp in ParseToDate
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxGekk committed Jul 5, 2020
1 parent 492d5d1 commit 87a3752
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1450,8 +1450,7 @@ case class ParseToDate(left: Expression, format: Option[Expression], child: Expr
extends RuntimeReplaceable {

def this(left: Expression, format: Expression) {
this(left, Option(format),
Cast(SecondsToTimestamp(UnixTimestamp(left, format)), DateType))
this(left, Option(format), Cast(GetTimestamp(left, format), DateType))
}

def this(left: Expression) = {
Expand Down

0 comments on commit 87a3752

Please sign in to comment.