-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-22487][SQL][followup] still keep spark.sql.hive.version #19719
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -155,9 +155,9 @@ class HiveThriftBinaryServerSuite extends HiveThriftJdbcTest { | |
|
|
||
| test("Checks Hive version") { | ||
| withJdbcStatement() { statement => | ||
| val resultSet = statement.executeQuery("SET spark.sql.hive.metastore.version") | ||
| val resultSet = statement.executeQuery("SET spark.sql.hive.version") | ||
| resultSet.next() | ||
| assert(resultSet.getString(1) === "spark.sql.hive.metastore.version") | ||
| assert(resultSet.getString(1) === "spark.sql.hive.version") | ||
| assert(resultSet.getString(2) === HiveUtils.builtinHiveVersion) | ||
| } | ||
| } | ||
|
|
@@ -521,7 +521,20 @@ class HiveThriftBinaryServerSuite extends HiveThriftJdbcTest { | |
| conf += resultSet.getString(1) -> resultSet.getString(2) | ||
| } | ||
|
|
||
| assert(conf.get("spark.sql.hive.metastore.version") === Some("1.2.1")) | ||
| assert(conf.get("spark.sql.hive.version") === Some("1.2.1")) | ||
| } | ||
| } | ||
|
|
||
| test("Checks Hive version via SET") { | ||
| withJdbcStatement() { statement => | ||
| val resultSet = statement.executeQuery("SET") | ||
|
|
||
| val conf = mutable.Map.empty[String, String] | ||
| while (resultSet.next()) { | ||
| conf += resultSet.getString(1) -> resultSet.getString(2) | ||
| } | ||
|
|
||
| assert(conf.get("spark.sql.hive.version") === Some("1.2.1")) | ||
|
||
| } | ||
| } | ||
|
|
||
|
|
@@ -708,9 +721,9 @@ class HiveThriftHttpServerSuite extends HiveThriftJdbcTest { | |
|
|
||
| test("Checks Hive version") { | ||
| withJdbcStatement() { statement => | ||
| val resultSet = statement.executeQuery("SET spark.sql.hive.metastore.version") | ||
| val resultSet = statement.executeQuery("SET spark.sql.hive.version") | ||
| resultSet.next() | ||
| assert(resultSet.getString(1) === "spark.sql.hive.metastore.version") | ||
| assert(resultSet.getString(1) === "spark.sql.hive.version") | ||
| assert(resultSet.getString(2) === HiveUtils.builtinHiveVersion) | ||
| } | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i might be a session level conf