kiszk edited a comment on pull request #31709:
URL: https://github.com/apache/spark/pull/31709#issuecomment-791991696


   After adding the attached code, `build/sbt "catalyst/testOnly  
*AnsiCastSuiteWithAnsiModeOn *ExpressionEncoderSuite -- -z nested"` can 
reproduce the same error.
   
   ```
   --- 
a/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/CastSuite.scala
   +++ 
b/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/CastSuite.scala
   @@ -960,6 +960,19 @@ abstract class AnsiCastSuiteBase extends CastSuiteBase {
          "invalid input syntax for type numeric")
      }
    
   +  test("DUMMY nested") {
   +    val activeConf = conf
   +    new ParVector(ALL_TIMEZONES.toVector).foreach { zid =>
   +      SQLConf.withExistingConf(activeConf) {
   +        withSQLConf(SQLConf.CODEGEN_FACTORY_MODE.key ->
   +          
org.apache.spark.sql.catalyst.expressions.CodegenObjectFactoryMode.CODEGEN_ONLY
   +            .toString) {
   +          val i = 1
   +        }
   +      }
   +    }
   +  }
   +
   ```


----------------------------------------------------------------
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]

Reply via email to