Github user uzadude commented on the issue:

    https://github.com/apache/spark/pull/19683
  
    looks like when the Optimizer is running, at some temporary point it makes 
a copy of the Generate operator and fails on this cast. if we will move the 
resolve check inside:
    override lazy val resolved: Boolean = {
        generator.resolved &&
          childrenResolved &&
          generator.elementSchema.length == generatorOutput.length &&
          generatorOutput.forall(_.resolved) &&
          unrequiredChildOutput.forall(_.resolved)
      }
    it works fine


---

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

Reply via email to