Skip to content

Commit d7d268d

Browse files
committed
Address comments
1 parent ba1e3ae commit d7d268d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/DataSource.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -601,9 +601,9 @@ object DataSource extends Logging {
601601
if (provider1.toLowerCase(Locale.ROOT) == "orc" ||
602602
provider1.startsWith("org.apache.spark.sql.hive.orc")) {
603603
throw new AnalysisException(
604-
"Hive-based ORC data source must be used with Hive support enabled. " +
605-
"Please use native ORC data source instead by setting 'spark.sql.orc.impl' " +
606-
"configuration to 'native'")
604+
"Hive built-in ORC data source must be used with Hive support enabled. " +
605+
"Please use the native ORC data source by setting 'spark.sql.orc.impl' to " +
606+
"'native'")
607607
} else if (provider1.toLowerCase(Locale.ROOT) == "avro" ||
608608
provider1 == "com.databricks.spark.avro") {
609609
throw new AnalysisException(

sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1666,7 +1666,7 @@ class SQLQuerySuite extends QueryTest with SharedSQLContext {
16661666
e = intercept[AnalysisException] {
16671667
sql(s"select id from `org.apache.spark.sql.hive.orc`.`file_path`")
16681668
}
1669-
assert(e.message.contains("Hive-based ORC data source must be used with Hive support"))
1669+
assert(e.message.contains("Hive built-in ORC data source must be used with Hive support"))
16701670

16711671
e = intercept[AnalysisException] {
16721672
sql(s"select id from `com.databricks.spark.avro`.`file_path`")
@@ -2790,7 +2790,7 @@ class SQLQuerySuite extends QueryTest with SharedSQLContext {
27902790
val e = intercept[AnalysisException] {
27912791
sql("CREATE TABLE spark_20728(a INT) USING ORC")
27922792
}
2793-
assert(e.message.contains("Hive-based ORC data source must be used with Hive support"))
2793+
assert(e.message.contains("Hive built-in ORC data source must be used with Hive support"))
27942794
}
27952795

27962796
withSQLConf(SQLConf.ORC_IMPLEMENTATION.key -> "native") {

0 commit comments

Comments
 (0)