Skip to content

Conversation

@bomeng
Copy link
Contributor

@bomeng bomeng commented May 2, 2016

What changes were proposed in this pull request?

Make serializer correctly inferred if the input type is List[_], since List[_] is type of Seq[_], before it was matched to different case (case t if definedByConstructorParams(t)).

How was this patch tested?

New test case was added.

}
}

test("SPARK-15062") {
Copy link
Contributor

Choose a reason for hiding this comment

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

should document the test case more than just the issue number

Copy link
Contributor

Choose a reason for hiding this comment

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

is it possible to turn this into a unit test on scalareflection rather than an end-to-end test?

@koertkuipers
Copy link
Contributor

koertkuipers commented May 2, 2016

is this original issue that i used List instead of Seq? if so, is this even an issue at all? Should i simply have used Seq?

@bomeng
Copy link
Contributor Author

bomeng commented May 2, 2016

Making the changes based on the comments. Will post it shortly. List[_] should be supported as Seq[_], for now, you can use Seq[_] as workaround.

@SparkQA
Copy link

SparkQA commented May 2, 2016

Test build #57559 has finished for PR 12849 at commit 5869b95.

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

@SparkQA
Copy link

SparkQA commented May 3, 2016

Test build #57568 has finished for PR 12849 at commit 70a1bc1.

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

@rxin
Copy link
Contributor

rxin commented May 3, 2016

cc @marmbrus

@marmbrus
Copy link
Contributor

marmbrus commented May 3, 2016

Thanks, merging to master and 2.0

asfgit pushed a commit that referenced this pull request May 3, 2016
## What changes were proposed in this pull request?

Make serializer correctly inferred if the input type is `List[_]`, since `List[_]` is type of `Seq[_]`, before it was matched to different case (`case t if definedByConstructorParams(t)`).

## How was this patch tested?

New test case was added.

Author: bomeng <[email protected]>

Closes #12849 from bomeng/SPARK-15062.

(cherry picked from commit 0fd95be)
Signed-off-by: Michael Armbrust <[email protected]>
@asfgit asfgit closed this in 0fd95be May 3, 2016
@bomeng bomeng deleted the SPARK-15062 branch May 3, 2016 18:25
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.

5 participants