Github user maropu commented on a diff in the pull request:
https://github.com/apache/spark/pull/21770#discussion_r202542918
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/basicPhysicalOperators.scala
---
@@ -318,7 +318,8 @@ case class SampleExec(
v => s"""
| $v = new $samplerClass<UnsafeRow>($lowerBound, $upperBound,
false);
| $v.setSeed(${seed}L + partitionIndex);
- """.stripMargin.trim)
+ """.stripMargin.trim,
+ forceInline = true)
--- End diff --
Generic arrays not allowed;
```
/* 019 */ private
org.apache.spark.util.random.BernoulliCellSampler<UnsafeRow>[]
sample_mutableStateArray_0 = new
org.apache.spark.util.random.BernoulliCellSampler<UnsafeRow>[1];
---
Cause: java.util.concurrent.ExecutionException:
org.codehaus.commons.compiler.CompileException: failed to compile:
(Line 40, Column 101) generic array creation
```
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]