Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-6319][SQL] Throw AnalysisException when using BinaryType on Join and Aggregate #7787

Closed
wants to merge 1 commit into from

Conversation

viirya
Copy link
Member

@viirya viirya commented Jul 30, 2015

JIRA: https://issues.apache.org/jira/browse/SPARK-6319

Spark SQL uses plain byte arrays to represent binary values. However, the arrays are compared by reference rather than by values. Thus, we should not use BinaryType on Join and Aggregate in current implementation.

@SparkQA
Copy link

SparkQA commented Jul 30, 2015

Test build #39021 has finished for PR 7787 at commit 4f76cac.

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

@rxin
Copy link
Contributor

rxin commented Jul 31, 2015

Merging this. Thanks.

@rxin
Copy link
Contributor

rxin commented Jul 31, 2015

@viirya can you do the following in a follow up pr?

  1. Move the test code into AnalysisErrorSuite
  2. SPARK-9415: disable equality / group by / join on map type

@asfgit asfgit closed this in 351eda0 Jul 31, 2015
@viirya
Copy link
Member Author

viirya commented Jul 31, 2015

@rxin sure, will do it later today.

asfgit pushed a commit that referenced this pull request Aug 1, 2015
…and Aggregate

JIRA: https://issues.apache.org/jira/browse/SPARK-9415

Following up #7787. We shouldn't use MapType as grouping keys and join keys too.

Author: Liang-Chi Hsieh <viirya@appier.com>

Closes #7819 from viirya/map_join_groupby and squashes the following commits:

005ee0c [Liang-Chi Hsieh] For comments.
7463398 [Liang-Chi Hsieh] MapType can't be used as join keys, grouping keys.
@viirya viirya deleted the agg_no_binary_type branch December 27, 2023 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants