Github user ConeyLiu commented on a diff in the pull request:
https://github.com/apache/spark/pull/20844#discussion_r175966108
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/basicPhysicalOperators.scala
---
@@ -396,9 +396,11 @@ case class RangeExec(range:
org.apache.spark.sql.catalyst.plans.logical.Range)
// The default size of a batch, which must be positive integer
val batchSize = 1000
- val initRangeFuncName = ctx.addNewFunction("initRange",
+ val initRange = ctx.freshName("initRange")
+
+ val initRangeFuncName = ctx.addNewFunction(initRange,
s"""
- | private void initRange(int idx) {
+ | private void ${initRange}(int idx) {
--- End diff --
Thanks for your suggestion, let me take a try.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]