GitHub user gatorsmile opened a pull request:
https://github.com/apache/spark/pull/14498
[SPARK-16904] [SQL] Removal of Hive Built-in Hash Functions and
TestHiveFunctionRegistry [WIP]
### 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?
TODO: migrated the disabled test cases to the other test suite.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/gatorsmile/spark removeHash
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/14498.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #14498
----
commit a26122a2110f625eadec2385367779d7b6e4c3b1
Author: gatorsmile <[email protected]>
Date: 2016-08-04T04:06:28Z
remove hash
commit 3b3f3c8543a33d87bf53aa4f2945a34f6b7d0786
Author: gatorsmile <[email protected]>
Date: 2016-08-04T20:21:52Z
Merge remote-tracking branch 'upstream/master' into removeHash
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]