Uh oh!
There was an error while loading. Please reload this page.
[SPARK-8206][SQL][WIP]Add function round - #6836
Conversation
zhichao-li
commented
Jun 16, 2015
SparkQA
commented
Jun 16, 2015
Test build #34972 has finished for PR 6836 at commit
|
There was a problem hiding this comment.
This probably not necessary, as both of the parameters are literals(constant value).
markhamstra
commented
Jun 16, 2015
I don't believe this is quite right, since |
chenghao-intel
commented
Jun 16, 2015
Still some other issues need to be addressed:
|
markhamstra
commented
Jun 16, 2015
Actually, it's worth considering whether in the common case of rounding to zero decimal places we should be producing integral values. |
zhichao-li
commented
Jun 17, 2015
@markhamstra@chenghao-intel For hive it would produce double for such case I guess we should keep the same ? |
chenghao-intel
commented
Jun 17, 2015
We'd better to keep the same behavior as Hive does, otherwise it will causes inconsistencies for existed code. |
SparkQA
commented
Jun 19, 2015
Test build #35254 has finished for PR 6836 at commit
|
SparkQA
commented
Jun 23, 2015
Test build #35500 has finished for PR 6836 at commit
|
yjshen
commented
Jun 23, 2015
Ah.... I didn't notice there are two JIRA for |
yjshen
commented
Jun 23, 2015
How about just act as Hive's |
chenghao-intel
commented
Jun 23, 2015
can you rebase this please? |
SparkQA
commented
Jun 23, 2015
Test build #35547 has finished for PR 6836 at commit
|
There was a problem hiding this comment.
GenericUDFRound would return null if Float.isNaN(f) or Float.isInfinite(f)
There was a problem hiding this comment.
Good catch, would add that same as hive.
SparkQA
commented
Jun 24, 2015
Test build #35613 has finished for PR 6836 at commit
|
SparkQA
commented
Jun 24, 2015
Test build #35626 has finished for PR 6836 at commit
|
No description provided.