Skip to content

Commit ba4bc0c

Browse files
SPARK-3807: SparkSql does not work for tables created using custom serde
1 parent 5c73b72 commit ba4bc0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveMetastoreCatalog.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ private[hive] case class MetastoreRelation
313313
val partitionKeys = hiveQlTable.getPartitionKeys.map(_.toAttribute)
314314

315315
/** Non-partitionKey attributes */
316-
val attributes = table.getSd.getCols.map(_.toAttribute)
316+
val attributes = hiveQlTable.getCols.map(_.toAttribute)
317317

318318
val output = attributes ++ partitionKeys
319319
}

0 commit comments

Comments
 (0)