diff --git a/extensions/spark/kyuubi-spark-connector-hive/src/test/scala/org/apache/kyuubi/spark/connector/hive/command/DropNamespaceSuite.scala b/extensions/spark/kyuubi-spark-connector-hive/src/test/scala/org/apache/kyuubi/spark/connector/hive/command/DropNamespaceSuite.scala index eebfbe48812..9f4a64efc2c 100644 --- a/extensions/spark/kyuubi-spark-connector-hive/src/test/scala/org/apache/kyuubi/spark/connector/hive/command/DropNamespaceSuite.scala +++ b/extensions/spark/kyuubi-spark-connector-hive/src/test/scala/org/apache/kyuubi/spark/connector/hive/command/DropNamespaceSuite.scala @@ -63,7 +63,8 @@ trait DropNamespaceSuiteBase extends DDLCommandTestUtils { sql(s"DROP NAMESPACE $catalogName.unknown") }.getMessage assert(message.contains(s"'unknown' not found") || - message.contains(s"The schema `unknown` cannot be found")) + message.contains(s"The schema `unknown` cannot be found") || + message.contains("SCHEMA_NOT_FOUND")) } test("drop non-empty namespace with a non-cascading mode") { diff --git a/externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark/SparkSQLEngine.scala b/externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark/SparkSQLEngine.scala index 1b54aa8b75e..1ba2e45566a 100644 --- a/externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark/SparkSQLEngine.scala +++ b/externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark/SparkSQLEngine.scala @@ -263,7 +263,7 @@ object SparkSQLEngine extends Logging { // "Cannot mutate ReadOnlySQLConf" exception when task calling HiveResult.getBinaryFormatter. // Here we follow the HiveResult.getBinaryFormatter behavior to set it to UTF8 if configuration // is absent to reserve the legacy behavior for compatibility. - _sparkConf.setIfMissing("spark.sql.binaryOutputStyle", "UTF8") + _sparkConf.setIfMissing("spark.sql.binaryOutputStyle", "UTF-8") _sparkConf.setIfMissing("spark.master", "local") _sparkConf.set( "spark.redaction.regex",