Description
In code generation, it is incorrect for expressions to reuse variable names across different instances of itself. As an example, SPARK-16488 reports a bug in which pmod expression reuses variable name "r".
This patch updates ExpressionEvalHelper test harness to always project two instances of the same expression, which will help us catch variable reuse problems in expression unit tests.
Attachments
Issue Links
- is related to
-
SPARK-16488 Codegen variable namespace collision for pmod and partitionBy
- Resolved
- links to