Skip to content

Commit 7865f5e

Browse files
committed
Put the catalyst expression in the comment of the generated code for it.
1 parent b04d6c8 commit 7865f5e

File tree

1 file changed

+2
-3
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions

1 file changed

+2
-3
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Expression.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,8 @@ abstract class Expression extends TreeNode[Expression] {
9696
val primitive = ctx.freshName("primitive")
9797
val ve = GeneratedExpressionCode("", isNull, primitive)
9898
ve.code = genCode(ctx, ve)
99-
// We may want to print out $this in the comment of generated code for debugging.
100-
// ve.copy(s"/* $this */\n" + ve.code)
101-
ve
99+
// Add `this` in the comment.
100+
ve.copy(s"/* $this */\n" + ve.code)
102101
}
103102

104103
/**

0 commit comments

Comments
 (0)