Skip to content

Conversation

yaooqinn
Copy link
Member

@yaooqinn yaooqinn commented Nov 10, 2017

What changes were proposed in this pull request?

At the beginning #2843 added spark.sql.hive.version to reveal underlying hive version for jdbc connections. For some time afterwards, it was used as a version identifier for the execution hive client.

Actually there is no hive client for executions in spark now and there are no usages of HIVE_EXECUTION_VERSION found in whole spark project. HIVE_EXECUTION_VERSION is set by spark.sql.hive.version, which is still set internally in some places or by users, this may confuse developers and users with HIVE_METASTORE_VERSION(spark.sql.hive.metastore.version).

It might better to be removed.

How was this patch tested?

modify some existing ut

cc @cloud-fan @gatorsmile

@gatorsmile
Copy link
Member

ok to test

@SparkQA
Copy link

SparkQA commented Nov 10, 2017

Test build #83663 has finished for PR 19712 at commit 6071926.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@yaooqinn
Copy link
Member Author

cc again @gatorsmile and would you mind adding me to the jenkins' white list? thanks, hoping not bother you.

conf += resultSet.getString(1) -> resultSet.getString(2)
}

assert(conf.get("spark.sql.hive.version") === Some("1.2.1"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change it to spark.sql.hive.metastore.version?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this might need to set spark.sql.hive.metastore.version explicitly

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just make a try?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the first commit fails this ut checking spark.sql.hive.metastore.version. set cmd only shows the changed variables, if more unit tests are needed, i can add some.

@gatorsmile
Copy link
Member

add to whitelist

@gatorsmile
Copy link
Member

cc @liancheng @cloud-fan

@SparkQA
Copy link

SparkQA commented Nov 10, 2017

Test build #83668 has finished for PR 19712 at commit e760f52.

  • This patch fails due to an unknown error code, -9.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Nov 10, 2017

Test build #83667 has finished for PR 19712 at commit e760f52.

  • This patch fails due to an unknown error code, -9.
  • This patch merges cleanly.
  • This patch adds no public classes.

@cloud-fan
Copy link
Contributor

@yaooqinn it would be good if you can include why this config was introduced at the beginning, in the PR description, thanks

@cloud-fan
Copy link
Contributor

retest this please

@yaooqinn
Copy link
Member Author

@cloud-fan referenced

@SparkQA
Copy link

SparkQA commented Nov 10, 2017

Test build #83675 has finished for PR 19712 at commit e760f52.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@cloud-fan
Copy link
Contributor

LGTM, merging to master!

@asfgit asfgit closed this in 28ab5bf Nov 10, 2017
@yaooqinn yaooqinn deleted the SPARK-22487 branch November 10, 2017 15:08
@gatorsmile
Copy link
Member

After talking with @liancheng offline, this is still being used for ODBC connection. @cloud-fan Could you revert it back?

asfgit pushed a commit that referenced this pull request Nov 13, 2017
## 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

Author: Wenchen Fan <wenchen@databricks.com>

Closes #19719 from cloud-fan/minor.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants