Skip to content

Conversation

@cloud-fan
Copy link
Contributor

@cloud-fan cloud-fan commented Jun 2, 2016

What changes were proposed in this pull request?

There are 2 kinds of GetStructField:

  1. resolved from UnresolvedExtractValue, and it will have a name property.
  2. created when we build deserializer expression for nested tuple, no name property.

When we want to validate the ordinals of nested tuple, we should only catch GetStructField without the name property.

How was this patch tested?

new test in EncoderResolutionSuite

@cloud-fan
Copy link
Contributor Author

cc @liancheng @clockfly @yhuai

@SparkQA
Copy link

SparkQA commented Jun 2, 2016

Test build #59879 has finished for PR 13474 at commit 51b9df8.

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

@liancheng
Copy link
Contributor

LGTM, but shall we merge #13269 first?

@liancheng
Copy link
Contributor

Let's wait for #13269 first.

@liancheng
Copy link
Contributor

LGTM pending Jenkins.

@SparkQA
Copy link

SparkQA commented Jun 3, 2016

Test build #59943 has finished for PR 13474 at commit 2e289c8.

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

@liancheng
Copy link
Contributor

Merging to master and branch-2.0.

@asfgit asfgit closed this in 61b80d5 Jun 3, 2016
@rxin
Copy link
Contributor

rxin commented Jun 16, 2016

Was this merged into 2.0?

@rxin
Copy link
Contributor

rxin commented Jun 16, 2016

Looks like it's not. I'm going to merge it in 2.0.

asfgit pushed a commit that referenced this pull request Jun 16, 2016
…mber of fields from the real schema

There are 2 kinds of `GetStructField`:

1. resolved from `UnresolvedExtractValue`, and it will have a `name` property.
2. created when we build deserializer expression for nested tuple, no `name` property.

When we want to validate the ordinals of nested tuple, we should only catch `GetStructField` without the name property.

new test in `EncoderResolutionSuite`

Author: Wenchen Fan <[email protected]>

Closes #13474 from cloud-fan/ordinal-check.

(cherry picked from commit 61b80d5)
Signed-off-by: Reynold Xin <[email protected]>
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.

4 participants