File tree Expand file tree Collapse file tree 2 files changed +2
-28
lines changed
sql/core/src/test/scala/org/apache/spark/sql Expand file tree Collapse file tree 2 files changed +2
-28
lines changed Original file line number Diff line number Diff line change @@ -1689,22 +1689,6 @@ class SQLQuerySuite extends QueryTest with SharedSQLContext {
16891689 }
16901690 assert(e.message.contains(" Hive built-in ORC data source must be used with Hive support" ))
16911691
1692- e = intercept[AnalysisException ] {
1693- sql(s " select id from `com.databricks.spark.avro`.`file_path` " )
1694- }
1695- assert(e.message.contains(" Failed to find data source: com.databricks.spark.avro." ))
1696-
1697- // data source type is case insensitive
1698- e = intercept[AnalysisException ] {
1699- sql(s " select id from Avro.`file_path` " )
1700- }
1701- assert(e.message.contains(" Failed to find data source: avro." ))
1702-
1703- e = intercept[AnalysisException ] {
1704- sql(s " select id from avro.`file_path` " )
1705- }
1706- assert(e.message.contains(" Failed to find data source: avro." ))
1707-
17081692 e = intercept[AnalysisException ] {
17091693 sql(s " select id from `org.apache.spark.sql.sources.HadoopFsRelationProvider`.`file_path` " )
17101694 }
Original file line number Diff line number Diff line change @@ -77,19 +77,9 @@ class ResolvedDataSourceSuite extends SparkFunSuite with SharedSQLContext {
7777 }
7878
7979 test(" error message for unknown data sources" ) {
80- val error1 = intercept[AnalysisException ] {
81- getProvidingClass(" avro" )
82- }
83- assert(error1.getMessage.contains(" Failed to find data source: avro." ))
84-
85- val error2 = intercept[AnalysisException ] {
86- getProvidingClass(" com.databricks.spark.avro" )
87- }
88- assert(error2.getMessage.contains(" Failed to find data source: com.databricks.spark.avro." ))
89-
90- val error3 = intercept[ClassNotFoundException ] {
80+ val error = intercept[ClassNotFoundException ] {
9181 getProvidingClass(" asfdwefasdfasdf" )
9282 }
93- assert(error3 .getMessage.contains(" Failed to find data source: asfdwefasdfasdf." ))
83+ assert(error .getMessage.contains(" Failed to find data source: asfdwefasdfasdf." ))
9484 }
9585}
You can’t perform that action at this time.
0 commit comments