Skip to content

Conversation

@sameeragarwal
Copy link
Member

What changes were proposed in this pull request?

This patch fixes a variable namespace collision bug in pmod and partitionBy

How was this patch tested?

Regression test for one possible occurrence. A more general fix in ExpressionEvalHelper.checkEvaluation will be in a subsequent PR.

@sameeragarwal
Copy link
Member Author

cc @rxin


override def doGenCode(ctx: CodegenContext, ev: ExprCode): ExprCode = {
nullSafeCodeGen(ctx, ev, (eval1, eval2) => {
val r = ctx.freshName("r")
Copy link
Contributor

Choose a reason for hiding this comment

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

while you are at this, can you pick a better name? "r" is not very informative.

@rxin
Copy link
Contributor

rxin commented Jul 12, 2016

LGTM pending Jenkins.

@SparkQA
Copy link

SparkQA commented Jul 12, 2016

Test build #62129 has finished for PR 14144 at commit 8e7b05f.

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

@rxin
Copy link
Contributor

rxin commented Jul 12, 2016

Merging in master/2.0.

@asfgit asfgit closed this in 9cc74f9 Jul 12, 2016
asfgit pushed a commit that referenced this pull request Jul 12, 2016
…rtitionBy

This patch fixes a variable namespace collision bug in pmod and partitionBy

Regression test for one possible occurrence. A more general fix in `ExpressionEvalHelper.checkEvaluation` will be in a subsequent PR.

Author: Sameer Agarwal <[email protected]>

Closes #14144 from sameeragarwal/codegen-bug.

(cherry picked from commit 9cc74f9)
Signed-off-by: Reynold Xin <[email protected]>
@SparkQA
Copy link

SparkQA commented Jul 12, 2016

Test build #62135 has finished for PR 14144 at commit 8b2639f.

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

asfgit pushed a commit that referenced this pull request Jul 13, 2016
…rtitionBy

This patch fixes a variable namespace collision bug in pmod and partitionBy

Regression test for one possible occurrence. A more general fix in `ExpressionEvalHelper.checkEvaluation` will be in a subsequent PR.

Author: Sameer Agarwal <[email protected]>

Closes #14144 from sameeragarwal/codegen-bug.

(cherry picked from commit 9cc74f9)
Signed-off-by: Reynold Xin <[email protected]>
(cherry picked from commit 6892614)
Signed-off-by: Reynold Xin <[email protected]>
zzcclp pushed a commit to zzcclp/spark that referenced this pull request Jul 13, 2016
…rtitionBy

This patch fixes a variable namespace collision bug in pmod and partitionBy

Regression test for one possible occurrence. A more general fix in `ExpressionEvalHelper.checkEvaluation` will be in a subsequent PR.

Author: Sameer Agarwal <[email protected]>

Closes apache#14144 from sameeragarwal/codegen-bug.

(cherry picked from commit 9cc74f9)
Signed-off-by: Reynold Xin <[email protected]>
(cherry picked from commit 6892614)
Signed-off-by: Reynold Xin <[email protected]>
(cherry picked from commit d1c992f)
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