Skip to content

Commit d6cdde7

Browse files
committed
[SPARK-20728][SQL][FOLLOWUP] Use a actionable exception message
1 parent 59aa3d5 commit d6cdde7

File tree

1 file changed

+1
-1
lines changed
  • sql/core/src/main/scala/org/apache/spark/sql/execution/datasources

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ object DataSource extends Logging {
602602
provider1.startsWith("org.apache.spark.sql.hive.orc")) {
603603
throw new AnalysisException(
604604
"Hive-based ORC data source must be used with Hive support enabled. " +
605-
"Please use native ORC data source instead")
605+
"Please use native ORC data source instead by `SET spark.sql.orc.impl=native`")
606606
} else if (provider1.toLowerCase(Locale.ROOT) == "avro" ||
607607
provider1 == "com.databricks.spark.avro") {
608608
throw new AnalysisException(

0 commit comments

Comments
 (0)