MaxGekk opened a new pull request #31197:
URL: https://github.com/apache/spark/pull/31197


   ### What changes were proposed in this pull request?
   Replace `toMap` by `map(identity)` while getting canonicalized 
representation of `CatalogTable`. `CatalogTable` became not serializable after 
https://github.com/apache/spark/pull/31112 due to usage of `filterKeys`. The 
workaround was taken from https://github.com/scala/bug/issues/7005.
   
   ### Why are the changes needed?
   This prevents the errors like:
   ```
   [info]   org.apache.spark.SparkException: Job aborted due to stage failure: 
Task not serializable: java.io.NotSerializableException: 
scala.collection.immutable.MapLike$$anon$1
   [info]   Cause: java.io.NotSerializableException: 
scala.collection.immutable.MapLike$$anon$1
   ```
   
   ### Does this PR introduce _any_ user-facing change?
   Should not.
   
   ### How was this patch tested?
   By running the test suite affected by 
https://github.com/apache/spark/pull/31112:
   ```
   $ build/sbt -Phive-2.3 -Phive-thriftserver "test:testOnly 
*AlterTableDropPartitionSuite"
   ```


----------------------------------------------------------------
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]

Reply via email to