Skip to content

Commit ec568a3

Browse files
committed
fix
1 parent 72a59dd commit ec568a3

File tree

2 files changed

+3
-2
lines changed
  • extensions/spark/kyuubi-spark-connector-hive/src/test/scala/org/apache/kyuubi/spark/connector/hive/command
  • externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark

2 files changed

+3
-2
lines changed

Diff for: extensions/spark/kyuubi-spark-connector-hive/src/test/scala/org/apache/kyuubi/spark/connector/hive/command/DropNamespaceSuite.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ trait DropNamespaceSuiteBase extends DDLCommandTestUtils {
6363
sql(s"DROP NAMESPACE $catalogName.unknown")
6464
}.getMessage
6565
assert(message.contains(s"'unknown' not found") ||
66-
message.contains(s"The schema `unknown` cannot be found"))
66+
message.contains(s"The schema `unknown` cannot be found") ||
67+
message.contains("SCHEMA_NOT_FOUND"))
6768
}
6869

6970
test("drop non-empty namespace with a non-cascading mode") {

Diff for: externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark/SparkSQLEngine.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ object SparkSQLEngine extends Logging {
263263
// "Cannot mutate ReadOnlySQLConf" exception when task calling HiveResult.getBinaryFormatter.
264264
// Here we follow the HiveResult.getBinaryFormatter behavior to set it to UTF8 if configuration
265265
// is absent to reserve the legacy behavior for compatibility.
266-
_sparkConf.setIfMissing("spark.sql.binaryOutputStyle", "UTF8")
266+
_sparkConf.setIfMissing("spark.sql.binaryOutputStyle", "UTF-8")
267267
_sparkConf.setIfMissing("spark.master", "local")
268268
_sparkConf.set(
269269
"spark.redaction.regex",

0 commit comments

Comments
 (0)