Skip to content

[SPARK-21634][SQL] Change OneRowRelation from a case object to case class#18839

Closed
rxin wants to merge 1 commit intoapache:masterfrom
rxin:SPARK-21634
Closed

[SPARK-21634][SQL] Change OneRowRelation from a case object to case class#18839
rxin wants to merge 1 commit intoapache:masterfrom
rxin:SPARK-21634

Conversation

@rxin
Copy link
Contributor

@rxin rxin commented Aug 4, 2017

What changes were proposed in this pull request?

OneRowRelation is the only plan that is a case object, which causes some issues with makeCopy using a 0-arg constructor. This patch changes it from a case object to a case class.

This blocks SPARK-21619.

How was this patch tested?

Should be covered by existing test cases.

@rxin
Copy link
Contributor Author

rxin commented Aug 4, 2017

Some test on string form of the plan might fail. Let's see ...

@SparkQA
Copy link

SparkQA commented Aug 4, 2017

Test build #80231 has finished for PR 18839 at commit 23efcc6.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • case class OneRowRelation() extends LeafNode

@rxin
Copy link
Contributor Author

rxin commented Aug 4, 2017

cc @gatorsmile

@gatorsmile
Copy link
Member

LGTM. Merging to master

@asfgit asfgit closed this in 5ad1796 Aug 4, 2017
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.

3 participants

Comments