Uh oh!
There was an error while loading. Please reload this page.
[SPARK-16904] [SQL] Removal of Hive Built-in Hash Functions and TestHiveFunctionRegistry - #14498
[SPARK-16904] [SQL] Removal of Hive Built-in Hash Functions and TestHiveFunctionRegistry#14498gatorsmile wants to merge 5 commits into
Conversation
SparkQA
commented
Aug 4, 2016
Test build #63240 has finished for PR 14498 at commit
|
gatorsmile
commented
Aug 4, 2016
retest this please |
SparkQA
commented
Aug 5, 2016
Test build #63247 has finished for PR 14498 at commit
|
hvanhovell
commented
Aug 5, 2016
This seems fair. Shouldn't we do something about all the disabled test cases though? |
Yeah, we should check all the disabled test cases and see if we can move it. I am waiting for #14472. : ) |
gatorsmile
commented
Aug 11, 2016
#14472 has been merged. Will work on it soon. |
tejasapatil
commented
Aug 18, 2016
Is Spark's hashing function semantically equivalent to Hive's ? AFAIK, its not. I think it would be better to have a mode to be able to use Hive's hash method. eg. case when this would be needed: Users running a query in Hive want to switch to Spark. As this happens, you want to verify if the data produced is same or not. Also, for a brief time the pipeline would run in both the engines. Upstream consumers of the data generated should not see differences due to running in the different engines |
gatorsmile
commented
Aug 19, 2016
@tejasapatil Thanks for the inputs! I can understand your usage cases. It looks very reasonable. Actually, in Spark 2.0, we already removed it. You are unable to load/invoke the Hive's hash function. This PR is just to clean the usage of |
rxin
commented
Nov 3, 2016
@gatorsmile can we take this to the finish line? This actually does not impact hash at all since it's only here for testing. |
gatorsmile
commented
Nov 3, 2016
@rxin Sure, will do it this weekend. Thanks! |
| } | ||
| private[hive] class TestHiveFunctionRegistry extends SimpleFunctionRegistry { |
There was a problem hiding this comment.
We can still remove this class if we add back the removed spark builtin hash function manually right?
rxin
commented
Nov 7, 2016
If this is no longer WIP, please update the title. Thanks. |
Based on the previous discussions in the other PRs, it sounds like these Hive-specific test cases are not very useful. Do we still need to rewrite them and add them to the other test suites? BTW, I went over these disabled test cases. I think the values are low. |
rxin
commented
Nov 7, 2016
I'm ok with not having them. |
SparkQA
commented
Nov 7, 2016
Test build #68268 has finished for PR 14498 at commit
|
rxin
commented
Nov 7, 2016
Merging in master/branch-2.1. |
…veFunctionRegistry ### What changes were proposed in this pull request? Currently, the Hive built-in `hash` function is not being used in Spark since Spark 2.0. The public interface does not allow users to unregister the Spark built-in functions. Thus, users will never use Hive's built-in `hash` function. The only exception here is `TestHiveFunctionRegistry`, which allows users to unregister the built-in functions. Thus, we can load Hive's hash function in the test cases. If we disable it, 10+ test cases will fail because the results are different from the Hive golden answer files. This PR is to remove `hash` from the list of `hiveFunctions` in `HiveSessionCatalog`. It will also remove `TestHiveFunctionRegistry`. This removal makes us easier to remove `TestHiveSessionState` in the future. ### How was this patch tested? N/A Author: gatorsmile <gatorsmile@gmail.com> Closes#14498 from gatorsmile/removeHash. (cherry picked from commit 57626a5) Signed-off-by: Reynold Xin <rxin@databricks.com>
…veFunctionRegistry ### What changes were proposed in this pull request? Currently, the Hive built-in `hash` function is not being used in Spark since Spark 2.0. The public interface does not allow users to unregister the Spark built-in functions. Thus, users will never use Hive's built-in `hash` function. The only exception here is `TestHiveFunctionRegistry`, which allows users to unregister the built-in functions. Thus, we can load Hive's hash function in the test cases. If we disable it, 10+ test cases will fail because the results are different from the Hive golden answer files. This PR is to remove `hash` from the list of `hiveFunctions` in `HiveSessionCatalog`. It will also remove `TestHiveFunctionRegistry`. This removal makes us easier to remove `TestHiveSessionState` in the future. ### How was this patch tested? N/A Author: gatorsmile <gatorsmile@gmail.com> Closesapache#14498 from gatorsmile/removeHash.
What changes were proposed in this pull request?
Currently, the Hive built-in
hashfunction is not being used in Spark since Spark 2.0. The public interface does not allow users to unregister the Spark built-in functions. Thus, users will never use Hive's built-inhashfunction.The only exception here is
TestHiveFunctionRegistry, which allows users to unregister the built-in functions. Thus, we can load Hive's hash function in the test cases. If we disable it, 10+ test cases will fail because the results are different from the Hive golden answer files.This PR is to remove
hashfrom the list ofhiveFunctionsinHiveSessionCatalog. It will also removeTestHiveFunctionRegistry. This removal makes us easier to removeTestHiveSessionStatein the future.How was this patch tested?
N/A