Github user viirya commented on a diff in the pull request:
https://github.com/apache/spark/pull/21080#discussion_r181950606
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen/CodeGenerator.scala
---
@@ -575,7 +575,7 @@ class CodegenContext {
if (freshNameIds.contains(fullName)) {
val id = freshNameIds(fullName)
freshNameIds(fullName) = id + 1
- s"$fullName$id"
+ s"${fullName}_$id"
} else {
freshNameIds += fullName -> 1
fullName
--- End diff --
Isn't changed to `s"${fullName}_$id"`? So you will get `a_0_1`.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]