Skip to content

Conversation

@viirya
Copy link
Member

@viirya viirya commented Nov 22, 2020

What changes were proposed in this pull request?

This follow-up fixes an issue when inserting key/value pairs into IdentityHashMap in SubExprEvaluationRuntime.

Why are the changes needed?

The last commits to #30341 follows review comment to use IdentityHashMap. Because we leverage IdentityHashMap to compare keys in reference, we should not convert expression pairs to Scala map before inserting. Scala map compares keys by equality so we will loss keys with different references.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Run benchmark to verify.

@github-actions github-actions bot added the SQL label Nov 22, 2020
@viirya
Copy link
Member Author

viirya commented Nov 22, 2020

cc @dongjoon-hyun @maropu

proxyExpressionCurrentId += 1

proxyMap.putAll(e.map(_ -> proxy).toMap.asJava)
e.map(proxyMap.put(_, proxy))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SparkQA
Copy link

SparkQA commented Nov 22, 2020

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/36111/

@SparkQA
Copy link

SparkQA commented Nov 22, 2020

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/36111/

@SparkQA
Copy link

SparkQA commented Nov 22, 2020

Test build #131507 has finished for PR 30459 at commit b3c7607.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Nov 23, 2020

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/36120/

@SparkQA
Copy link

SparkQA commented Nov 23, 2020

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/36120/

@viirya
Copy link
Member Author

viirya commented Nov 23, 2020

Thanks @HyukjinKwon

@HyukjinKwon
Copy link
Member

Let me merge this in. The last is comment-only.

@HyukjinKwon
Copy link
Member

Merged to master.

@SparkQA
Copy link

SparkQA commented Nov 23, 2020

Test build #131525 has finished for PR 30459 at commit dbc986f.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Nov 23, 2020

Test build #131516 has finished for PR 30459 at commit cef4b55.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@maropu
Copy link
Member

maropu commented Nov 24, 2020

late LGTM

@viirya
Copy link
Member Author

viirya commented Nov 24, 2020

Thanks @maropu

@viirya viirya deleted the SPARK-33427-map branch December 27, 2023 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants