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-23208][SQL] Fix code generation for complex create array (related) expressions #20391

Closed
wants to merge 1 commit into from

Conversation

hvanhovell
Copy link
Contributor

What changes were proposed in this pull request?

The GenArrayData.genCodeToCreateArrayData produces illegal java code when code splitting is enabled. This is used in CreateArray and CreateMap expressions for complex object arrays.

This issue is caused by a typo.

How was this patch tested?

Added a regression test in complexTypesSuite.

@hvanhovell
Copy link
Contributor Author

cc @cloud-fan @kiszk @gatorsmile

@gatorsmile
Copy link
Member

LGTM

Copy link
Member

@viirya viirya left a comment

Choose a reason for hiding this comment

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

Good catch! LGTM

@cloud-fan
Copy link
Contributor

LGTM

@kiszk
Copy link
Member

kiszk commented Jan 25, 2018

LGTM, thank you for your good catch.

@SparkQA
Copy link

SparkQA commented Jan 25, 2018

Test build #86614 has finished for PR 20391 at commit 1e8449a.

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

@cloud-fan
Copy link
Contributor

retest this please

@SparkQA
Copy link

SparkQA commented Jan 25, 2018

Test build #86623 has finished for PR 20391 at commit 1e8449a.

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

@cloud-fan
Copy link
Contributor

thanks, merging to master/2.3!

asfgit pushed a commit that referenced this pull request Jan 25, 2018
…ted) expressions

## What changes were proposed in this pull request?
The `GenArrayData.genCodeToCreateArrayData` produces illegal java code when code splitting is enabled. This is used in `CreateArray` and `CreateMap` expressions for complex object arrays.

This issue is caused by a typo.

## How was this patch tested?
Added a regression test in `complexTypesSuite`.

Author: Herman van Hovell <hvanhovell@databricks.com>

Closes #20391 from hvanhovell/SPARK-23208.

(cherry picked from commit e29b08a)
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
@asfgit asfgit closed this in e29b08a Jan 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants