Uh oh!
There was an error while loading. Please reload this page.
[SPARK-22487][SQL][followup] still keep spark.sql.hive.version - #19719
[SPARK-22487][SQL][followup] still keep spark.sql.hive.version#19719cloud-fan wants to merge 3 commits into
Conversation
cloud-fan
commented
Nov 10, 2017
gatorsmile
commented
Nov 10, 2017
Add back the test cases? |
cloud-fan
commented
Nov 10, 2017
reverted |
SparkQA
commented
Nov 10, 2017
Test build #83706 has finished for PR 19719 at commit
|
SparkQA
commented
Nov 10, 2017
Test build #83708 has finished for PR 19719 at commit
|
SparkQA
commented
Nov 10, 2017
Test build #83705 has finished for PR 19719 at commit
|
There was a problem hiding this comment.
If we do not set it explicitly, this will not be returned.
There was a problem hiding this comment.
a default value will be returned, isn't it?
There was a problem hiding this comment.
In Hive, "SET" returns all changed properties while "SET -v" returns all properties. In Spark, SET queries all key-value pairs that are set in the SQLConf of the sparkSession.
There was a problem hiding this comment.
This config is a kind of a fake one, I think comments are enough for it.
There was a problem hiding this comment.
i guess the jdbc driver do not depend on it. it used to only return 1.2.1, i can't imagine it a meaningful value, and i think that jdbc server may work fine with other hive versions too
There was a problem hiding this comment.
it's ODBC. Actually it's something out of Spark's control, we must be careful and avoid behavior changes, like conf.get("spark.sql.hive.version") should still return 1.2.1 instead of null.
There was a problem hiding this comment.
if Thrift Server only works for 1.2.1,I guess we don’t need an isolated classload for its hive client like SparkSQLCLIDriver
yaooqinn
commented
Nov 11, 2017
make it an AlternativeConfig maybe better |
SparkQA
commented
Nov 11, 2017
Test build #83712 has finished for PR 19719 at commit
|
There was a problem hiding this comment.
HiveUtils.builtinHiveVersion => HiveUtils.HIVE_EXECUTION_VERSION?
SparkQA
commented
Nov 11, 2017
Test build #83713 has finished for PR 19719 at commit
|
SparkQA
commented
Nov 11, 2017
Test build #83723 has finished for PR 19719 at commit
|
SparkQA
commented
Nov 11, 2017
Test build #83732 has finished for PR 19719 at commit
|
SparkQA
commented
Nov 12, 2017
Test build #83733 has finished for PR 19719 at commit
|
| .stringConf | ||
| .createWithDefault(builtinHiveVersion) | ||
| // A fake config which is only here for backward compatibility reasons. This config has no affect |
| // A fake config which is only here for backward compatibility reasons. This config has no affect | ||
| // to Spark, just for reporting the builtin Hive version of Spark to existing applications that | ||
| // already reply on this config. |
gatorsmile
commented
Nov 12, 2017
Do something like the other deprecated conf |
gatorsmile
commented
Nov 12, 2017
LGTM except a few comments |
yaooqinn
commented
Nov 12, 2017
LGTM |
cloud-fan
commented
Nov 12, 2017
Looking at |
SparkQA
commented
Nov 12, 2017
Test build #83748 has finished for PR 19719 at commit
|
gatorsmile
commented
Nov 13, 2017
Thanks! Merged to master. |
What changes were proposed in this pull request?
a followup of #19712 , adds back the
spark.sql.hive.version, so that if users try to read this config, they can still get a default value instead of null.How was this patch tested?
N/A