-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-8206][SQL][WIP]Add function round #6836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Test build #34972 has finished for PR 6836 at commit
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This probably not necessary, as both of the parameters are literals(constant value).
|
I don't believe this is quite right, since |
|
Still some other issues need to be addressed:
|
|
Actually, it's worth considering whether in the common case of rounding to zero decimal places we should be producing integral values. |
|
@markhamstra @chenghao-intel For hive it would produce double for such case I guess we should keep the same ? |
|
We'd better to keep the same behavior as Hive does, otherwise it will causes inconsistencies for existed code. |
|
Test build #35254 has finished for PR 6836 at commit
|
|
Test build #35500 has finished for PR 6836 at commit
|
|
Ah.... I didn't notice there are two JIRA for |
|
How about just act as Hive's |
|
can you rebase this please? |
|
Test build #35547 has finished for PR 6836 at commit
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GenericUDFRound would return null if Float.isNaN(f) or Float.isInfinite(f)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, would add that same as hive.
|
Test build #35613 has finished for PR 6836 at commit
|
|
Test build #35626 has finished for PR 6836 at commit
|
|
Test build #35649 has finished for PR 6836 at commit
|
…n-instrumentation * apache/master: (113 commits) [SPARK-8196][SQL] Fix null handling & documentation for next_day. [SPARK-9373][SQL] follow up for StructType support in Tungsten projection. [SPARK-9402][SQL] Remove CodegenFallback from Abs / FormatNumber. [SPARK-8919] [DOCUMENTATION, MLLIB] Added @SInCE tags to mllib.recommendation [EC2] Cosmetic fix for usage of spark-ec2 --ebs-vol-num option [SPARK-9394][SQL] Handle parentheses in CodeFormatter. Closes apache#6836 since Round has already been implemented. [SPARK-9335] [STREAMING] [TESTS] Make sure the test stream is deleted in KinesisBackedBlockRDDSuite [MINOR] [SQL] Support mutable expression unit test with codegen projection [SPARK-9373][SQL] Support StructType in Tungsten projection [SPARK-8828] [SQL] Revert SPARK-5680 Fixed a test failure. [SPARK-9395][SQL] Create a SpecializedGetters interface to track all the specialized getters. [SPARK-8195] [SPARK-8196] [SQL] udf next_day last_day [SPARK-8882] [STREAMING] Add a new Receiver scheduling mechanism [SPARK-9386] [SQL] Feature flag for metastore partition pruning [SPARK-9230] [ML] Support StringType features in RFormula [SPARK-9385] [PYSPARK] Enable PEP8 but disable installing pylint. [SPARK-4352] [YARN] [WIP] Incorporate locality preferences in dynamic allocation requests [SPARK-9385] [HOT-FIX] [PYSPARK] Comment out Python style check ...
No description provided.