File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
main/scala/org/apache/spark/sql/execution/datasources
test/scala/org/apache/spark/sql Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -601,9 +601,9 @@ object DataSource extends Logging {
601
601
if (provider1.toLowerCase(Locale .ROOT ) == " orc" ||
602
602
provider1.startsWith(" org.apache.spark.sql.hive.orc" )) {
603
603
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'" )
607
607
} else if (provider1.toLowerCase(Locale .ROOT ) == " avro" ||
608
608
provider1 == " com.databricks.spark.avro" ) {
609
609
throw new AnalysisException (
Original file line number Diff line number Diff line change @@ -1666,7 +1666,7 @@ class SQLQuerySuite extends QueryTest with SharedSQLContext {
1666
1666
e = intercept[AnalysisException ] {
1667
1667
sql(s " select id from `org.apache.spark.sql.hive.orc`.`file_path` " )
1668
1668
}
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" ))
1670
1670
1671
1671
e = intercept[AnalysisException ] {
1672
1672
sql(s " select id from `com.databricks.spark.avro`.`file_path` " )
@@ -2790,7 +2790,7 @@ class SQLQuerySuite extends QueryTest with SharedSQLContext {
2790
2790
val e = intercept[AnalysisException ] {
2791
2791
sql(" CREATE TABLE spark_20728(a INT) USING ORC" )
2792
2792
}
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" ))
2794
2794
}
2795
2795
2796
2796
withSQLConf(SQLConf .ORC_IMPLEMENTATION .key -> " native" ) {
You can’t perform that action at this time.
0 commit comments