GitHub user sun-rui opened a pull request: https://github.com/apache/spark/pull/12575
[SPARK-14803][SQL][Optimizer] A bug in EliminateSerialization rule in Catalyst Optimizer. ## What changes were proposed in this pull request? This PR fixes a bug in EliminateSerialization rule in Catalyst Optimizer. When there is a SerializeFromObject and DeserializeToObject pair with equal inputObjectType and outputObjectType, the pair will be eliminated and replaced by a Project operator. However, when the involved object type is Row, there will be a codegen compilation error, because UnsafeProjection does not support Row. ## How was this patch tested? Unit tests. You can merge this pull request into a Git repository by running: $ git pull https://github.com/sun-rui/spark SPARK-14803 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/12575.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #12575 ---- commit cf11a759d524cb7c0313f397e6188de621a22c1e Author: Sun Rui <rui....@intel.com> Date: 2016-04-21T13:10:36Z [SPARK-14803][SQL][Optimizer] A bug in EliminateSerialization rule in Catalyst Optimizer. ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org