You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/11/06 01:37:25 UTC

[GitHub] [spark] wangyum commented on pull request #30222: [SPARK-33315][SQL] Simplify CaseWhen with EqualTo

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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org