Skip to content

Conversation

@cloud-fan
Copy link
Contributor

What changes were proposed in this pull request?

In #17398 we introduced UnresolvedMapObjects as a placeholder of MapObjects. Unfortunately UnresolvedMapObjects is not serializable as its function may reference Scala Type which is not serializable.

Ideally this is fine, as we will never serialize and send unresolved expressions to executors. However users may accidentally do this, e.g. mistakenly reference an encoder instance when implementing Aggregator, we should fix it so that it's just a performance issue(more network traffic) and should not fail the query.

How was this patch tested?

N/A

@cloud-fan
Copy link
Contributor Author

cc @koertkuipers

@SparkQA
Copy link

SparkQA commented Apr 14, 2017

Test build #75809 has finished for PR 17639 at commit bb0a14a.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • case class UnresolvedMapObjects(

@koertkuipers
Copy link
Contributor

@cloud-fan thanks for doing this

@cloud-fan
Copy link
Contributor Author

merging to master!

@asfgit asfgit closed this in 35e5ae4 Apr 16, 2017
peter-toth pushed a commit to peter-toth/spark that referenced this pull request Oct 6, 2018
…erializable

## What changes were proposed in this pull request?

In apache#17398 we introduced `UnresolvedMapObjects` as a placeholder of `MapObjects`. Unfortunately `UnresolvedMapObjects` is not serializable as its `function` may reference Scala `Type` which is not serializable.

Ideally this is fine, as we will never serialize and send unresolved expressions to executors. However users may accidentally do this, e.g. mistakenly reference an encoder instance when implementing `Aggregator`, we should fix it so that it's just a performance issue(more network traffic) and should not fail the query.

## How was this patch tested?

N/A

Author: Wenchen Fan <[email protected]>

Closes apache#17639 from cloud-fan/minor.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants