wangyum commented on pull request #30222:
URL: https://github.com/apache/spark/pull/30222#issuecomment-722751973
It seems it is caused by **deterministic**. cc @viirya
```
== Analyzed Logical Plan ==
label: double, features: vector, fold: int
Filter (UDF(fold#14) AND NOT (fold#14 = 2))
+- Repartition 2, true
+- Project [label#3, features#4, fold#14]
+- Project [label#3, features#4, random#10, CASE WHEN (random#10 <
0.33) THEN 0 WHEN (random#10 < 0.66) THEN 1 ELSE 2 END AS fold#14]
+- Project [label#3, features#4, rand(100) AS random#10]
+- Repartition 1, true
+- SerializeFromObject [knownnotnull(assertnotnull(input[0,
org.apache.spark.ml.feature.LabeledPoint, true])).label AS label#3,
newInstance(class org.apache.spark.ml.linalg.VectorUDT).serialize AS features#4]
+- ExternalRDD [obj#2]
== Optimized Logical Plan ==
LocalRelation <empty>, [label#3, features#4, fold#14]
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]