diff options
Diffstat (limited to 'sql/hive/src')
-rw-r--r-- | sql/hive/src/test/scala/org/apache/spark/sql/hive/MetastoreDataSourcesSuite.scala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sql/hive/src/test/scala/org/apache/spark/sql/hive/MetastoreDataSourcesSuite.scala b/sql/hive/src/test/scala/org/apache/spark/sql/hive/MetastoreDataSourcesSuite.scala index 111fb8b348..571cae001c 100644 --- a/sql/hive/src/test/scala/org/apache/spark/sql/hive/MetastoreDataSourcesSuite.scala +++ b/sql/hive/src/test/scala/org/apache/spark/sql/hive/MetastoreDataSourcesSuite.scala @@ -191,10 +191,10 @@ class MetastoreDataSourcesSuite extends QueryTest with SQLTestUtils with TestHiv sql("REFRESH TABLE jsonTable") - // Check that the refresh worked + // After refresh, schema is not changed. checkAnswer( sql("SELECT * FROM jsonTable"), - Row("a1", "b1", "c1")) + Row("a1", "b1")) } } } @@ -703,7 +703,7 @@ class MetastoreDataSourcesSuite extends QueryTest with SQLTestUtils with TestHiv createDataSourceTable( sparkSession = spark, tableIdent = TableIdentifier("wide_schema"), - userSpecifiedSchema = Some(schema), + schema = schema, partitionColumns = Array.empty[String], bucketSpec = None, provider = "json", @@ -988,7 +988,7 @@ class MetastoreDataSourcesSuite extends QueryTest with SQLTestUtils with TestHiv createDataSourceTable( sparkSession = spark, tableIdent = TableIdentifier("not_skip_hive_metadata"), - userSpecifiedSchema = Some(schema), + schema = schema, partitionColumns = Array.empty[String], bucketSpec = None, provider = "parquet", @@ -1003,7 +1003,7 @@ class MetastoreDataSourcesSuite extends QueryTest with SQLTestUtils with TestHiv createDataSourceTable( sparkSession = spark, tableIdent = TableIdentifier("skip_hive_metadata"), - userSpecifiedSchema = Some(schema), + schema = schema, partitionColumns = Array.empty[String], bucketSpec = None, provider = "parquet", |