We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58a82a7 commit 442ffe0Copy full SHA for 442ffe0
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveMetastoreCatalog.scala
@@ -208,14 +208,15 @@ private[hive] class HiveMetastoreCatalog(hive: HiveContext) extends Catalog with
208
ParquetRelation2(
209
paths,
210
Map(ParquetRelation2.METASTORE_SCHEMA -> metastoreSchema.json),
211
- None,
+ Some(metastoreSchema),
212
Some(partitionSpec))(hive))
213
} else {
214
val paths = Seq(metastoreRelation.hiveQlTable.getDataLocation.toString)
215
LogicalRelation(
216
217
218
- Map(ParquetRelation2.METASTORE_SCHEMA -> metastoreSchema.json))(hive))
+ Map(ParquetRelation2.METASTORE_SCHEMA -> metastoreSchema.json),
219
+ Some(metastoreSchema))(hive))
220
}
221
222
0 commit comments