[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 intoapache:masterfrom
Conversation
|
Add back the test cases? |
|
reverted |
|
Test build #83706 has finished for PR 19719 at commit
|
|
Test build #83708 has finished for PR 19719 at commit
|
|
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
|
make it an AlternativeConfig maybe better |
|
Test build #83712 has finished for PR 19719 at commit
|
There was a problem hiding this comment.
HiveUtils.builtinHiveVersion => HiveUtils.HIVE_EXECUTION_VERSION?
There was a problem hiding this comment.
i might be a session level conf
|
Test build #83713 has finished for PR 19719 at commit
|
|
Test build #83723 has finished for PR 19719 at commit
|
|
Test build #83732 has finished for PR 19719 at commit
|
|
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. |
|
Do something like the other deprecated conf |
|
LGTM except a few comments |
|
LGTM |
|
Looking at |
|
Test build #83748 has finished for PR 19719 at commit
|
|
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