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/07/22 01:37:32 UTC

[GitHub] [spark] maropu edited a comment on pull request #29085: [SPARK-32106][SQL]Implement SparkScriptTransformationExec in sql/core

maropu edited a comment on pull request #29085:
URL: https://github.com/apache/spark/pull/29085#issuecomment-662191688


   I meant the behaivour of v3.0.0. Either way, this PR is getting larger, so I think its okay to support it in follow-ups.
   ```
   // v3.0.0
   scala> sql("""
        |   SELECT TRANSFORM(a)
        |   USING 'cat' as output
        |   FROM VALUES (array(1, 2)) t(a)
        | """).show()
   
   ERROR ScriptTransformationWriterThread: Thread-ScriptTransformation-Feed exit cause by: 
   java.lang.ClassCastException: org.apache.spark.sql.catalyst.expressions.UnsafeArrayData cannot be cast to [Ljava.lang.Object;
   	at org.apache.hadoop.hive.serde2.objectinspector.StandardListObjectInspector.getList(StandardListObjectInspector.java:111)
   	at org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe.serialize(LazySimpleSerDe.java:299)
   	at org.apache.hadoop.hive.se
   ```


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