Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
short name to MillisToTimestamp and MicrosToTimestamp
  • Loading branch information
TJX2014 committed May 22, 2020
commit 7da94b52a73e365d5478467d8f1e83a59d0ddabb
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,8 @@ object FunctionRegistry {
expression[DatePart]("date_part"),
expression[Extract]("extract"),
expression[SecondsToTimestamp]("timestamp_seconds"),
expression[MilliSecondsToTimestamp]("timestamp_milliseconds"),
expression[MicroSecondsToTimestamp]("timestamp_microseconds"),
expression[MillisToTimestamp]("timestamp_milliseconds"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

timestamp_millisecond -> timestamp_millis

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's also don't forget to update the PR title and description.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

expression[MicrosToTimestamp]("timestamp_microseconds"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto


// collection functions
expression[CreateArray]("array"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ case class SecondsToTimestamp(child: Expression)
group = "datetime_funcs",
since = "3.1.0")
// scalastyle:on line.size.limit
case class MilliSecondsToTimestamp(child: Expression)
case class MillisToTimestamp(child: Expression)
extends NumberToTimestampBase {

override def upScaleFactor: Long = MICROS_PER_MILLIS
Expand All @@ -470,7 +470,7 @@ case class MilliSecondsToTimestamp(child: Expression)
group = "datetime_funcs",
since = "3.1.0")
// scalastyle:on line.size.limit
case class MicroSecondsToTimestamp(child: Expression)
case class MicrosToTimestamp(child: Expression)
extends NumberToTimestampBase {

override def upScaleFactor: Long = 1L
Expand Down