Skip to content

Conversation

@davies
Copy link
Contributor

@davies davies commented Mar 26, 2016

What changes were proposed in this pull request?

  1. merge consumeChild into consume()
  2. always generate code for input variables and UnsafeRow, a plan can use eight of them.

How was this patch tested?

Existing tests.

@davies
Copy link
Contributor Author

davies commented Mar 26, 2016

cc @rxin

@SparkQA
Copy link

SparkQA commented Mar 26, 2016

Test build #54252 has finished for PR 11975 at commit 70fcb4e.

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

assert(input.length == output.length)
final def consume(ctx: CodegenContext, outputVars: Seq[ExprCode], row: String = null): String = {
val inputVars =
if (row != null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

i was hoping we could remove these branches too. I think it'd require putting the outputVars and the row into a single class with different constructors. Anyway we can do that later.

@rxin
Copy link
Contributor

rxin commented Mar 26, 2016

Thanks - merging in master.

@asfgit asfgit closed this in bd94ea4 Mar 26, 2016
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