Skip to content

Conversation

@cloud-fan
Copy link
Contributor

What changes were proposed in this pull request?

Whole Stage Codegen depends on SparkPlan.reference to do some optimization. For physical object operators, they should be consistent with their logical version and set the reference correctly.

How was this patch tested?

new test in DatasetSuite

* The output of this operator is a single-field safe row containing the deserialized object.
*/
case class DeserializeToObject(
case class DeserializeToObjectExec(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not related, but to make the name consistent with other physical plans.

@cloud-fan
Copy link
Contributor Author

cc @davies @rxin @yhuai

@SparkQA
Copy link

SparkQA commented May 18, 2016

Test build #58770 has finished for PR 13167 at commit 052ad6b.

  • This patch fails MiMa tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • trait ObjectProducerExec extends SparkPlan
    • trait ObjectConsumerExec extends UnaryExecNode
    • case class DeserializeToObjectExec(

@cloud-fan
Copy link
Contributor Author

retest this please

@SparkQA
Copy link

SparkQA commented May 18, 2016

Test build #58773 has finished for PR 13167 at commit 052ad6b.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • trait ObjectProducerExec extends SparkPlan
    • trait ObjectConsumerExec extends UnaryExecNode
    • case class DeserializeToObjectExec(

case class SerializeFromObjectExec(
serializer: Seq[NamedExpression],
child: SparkPlan) extends UnaryExecNode with CodegenSupport {
child: SparkPlan) extends UnaryExecNode with ObjectConsumerExec with CodegenSupport {
Copy link
Contributor

Choose a reason for hiding this comment

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

minor: ObjectConsumerExec already extend UnaryExecNode

@davies
Copy link
Contributor

davies commented May 19, 2016

LGTM

@SparkQA
Copy link

SparkQA commented May 19, 2016

Test build #58836 has finished for PR 13167 at commit a97e358.

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

@davies
Copy link
Contributor

davies commented May 19, 2016

Merging this into master and 2.0, thanks!

@asfgit asfgit closed this in 661c210 May 19, 2016
asfgit pushed a commit that referenced this pull request May 19, 2016
…correctly

## What changes were proposed in this pull request?

Whole Stage Codegen depends on `SparkPlan.reference` to do some optimization. For physical object operators, they should be consistent with their logical version and set the `reference` correctly.

## How was this patch tested?

new test in DatasetSuite

Author: Wenchen Fan <[email protected]>

Closes #13167 from cloud-fan/bug.

(cherry picked from commit 661c210)
Signed-off-by: Davies Liu <[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.

3 participants