Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Implement a series of datetime functions #375

Closed
20 of 50 tasks
zhztheplayer opened this issue Jun 23, 2021 · 0 comments
Closed
20 of 50 tasks

Implement a series of datetime functions #375

zhztheplayer opened this issue Jun 23, 2021 · 0 comments
Labels

Comments

@zhztheplayer
Copy link
Collaborator

zhztheplayer commented Jun 23, 2021

Spark code reference https://github.com/apache/spark/blob/2bdd9fe5e34150599e3d1703cca26bf984b84945/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/FunctionRegistry.scala#L517-L567

  • AddMonths
  • CurrentDate
  • CurrentTimestamp
  • CurrentTimeZone
  • DateDiff
  • DateAdd
  • DateFormatClass
  • DateSub
  • DayOfMonth
  • DayOfYear Spark converts input from timestamp to date
  • DayOfMonth
  • FromUnixTime
  • FromUTCTimestamp
  • Hour
  • LastDay
  • Minute
  • Month
  • MonthsBetween
  • NextDay
  • Now
  • Quarter
  • Second
  • ParseToTimestamp
  • ParseToDate
  • ToUnixTimestamp
  • ToUTCTimestamp
  • ParseToTimestampWithoutTZ
  • TruncDate
  • TruncTimestamp
  • UnixTimestamp
  • DayOfWeek
  • WeekDay
  • WeekOfYear
  • Year
  • TimeWindow
  • MakeDate Gandiva func needed
  • MakeTimestamp Gandiva func needed
  • MakeInterval
  • MakeDTInterval
  • MakeYMInterval
  • DatePart
  • Extract
  • DateFromUnixDate
  • UnixDate
  • SecondsToTimestamp
  • MillisToTimestamp
  • MicrosToTimestamp
  • UnixSeconds
  • UnixMillis
  • UnixMicros
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants