Uh oh!
There was an error while loading. Please reload this page.
[SPARK-23905][SQL] Add UDF weekday - #21009
Conversation
jerryshao
commented
Apr 10, 2018
Jenkins, add to whitelist. |
jerryshao
commented
Apr 10, 2018
Jenkins, test this please. |
SparkQA
commented
Apr 10, 2018
Test build #89081 has finished for PR 21009 at commit
|
| override def dataType: DataType = IntegerType | ||
| @transient protected lazy val c: Calendar = { |
There was a problem hiding this comment.
nit: maybe calendar instead of just c.
| @transient private lazy val c = { | ||
| Calendar.getInstance(DateTimeUtils.getTimeZone("UTC")) | ||
| } | ||
| case class DayOfWeek(child: Expression) extends DayWeek { |
There was a problem hiding this comment.
Looks like DayOfWeek is duplicate to WeekDay, do we have plan to deprecate DayOfWeek in maybe 3.0?
There was a problem hiding this comment.
They are different, see:
WeekDay: 0 = Monday, 1 = Tuesday, … 6 = Sunday
DayOfWeek: 1 = Sunday, 2 = Monday, ..., 7 = Saturday
yucai
commented
Apr 10, 2018
Jenkins, retest this please |
SparkQA
commented
Apr 10, 2018
Test build #89137 has finished for PR 21009 at commit
|
SparkQA
commented
Apr 10, 2018
Test build #89138 has finished for PR 21009 at commit
|
yucai
commented
Apr 11, 2018
I did the local testing, all pass. |
yucai
commented
Apr 11, 2018
Jenkins, retest this please |
SparkQA
commented
Apr 11, 2018
Test build #89161 has finished for PR 21009 at commit
|
SparkQA
commented
Apr 11, 2018
Test build #89181 has finished for PR 21009 at commit
|
SparkQA
commented
Apr 12, 2018
Test build #89229 has finished for PR 21009 at commit
|
gatorsmile
commented
Apr 12, 2018
retest this please |
SparkQA
commented
Apr 12, 2018
Test build #89235 has finished for PR 21009 at commit
|
SparkQA
commented
Apr 12, 2018
Test build #89242 has finished for PR 21009 at commit
|
gatorsmile
commented
Apr 13, 2018
Thanks! Merged to master. |
What changes were proposed in this pull request?
Add UDF weekday
How was this patch tested?
A new test