MaxGekk commented on a change in pull request #31112:
URL: https://github.com/apache/spark/pull/31112#discussion_r554547310
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/interface.scala
##########
@@ -781,10 +805,7 @@ case class HiveTableRelation(
def isPartitioned: Boolean = partitionCols.nonEmpty
override def doCanonicalize(): HiveTableRelation = copy(
- tableMeta = tableMeta.copy(
- storage = CatalogStorageFormat.empty,
- createTime = -1
- ),
+ tableMeta = CatalogTable.normalize(tableMeta),
Review comment:
This is the bug fix. Cleaning of `storage` and `createTime` is not
enough. `tableMeta` can have other "temporary" fields.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]