Github user kxepal commented on the issue:

    https://github.com/apache/spark/pull/15361
  
    @HyukjinKwon 
    Thanks for the patch, but suddenly it doesn't solves the issue. Tested with 
2.0.0 Spark:
    ```
    Caused by: java.lang.ClassCastException: 
org.apache.spark.mllib.linalg.VectorUDT cannot be cast to 
org.apache.spark.sql.types.StructType
      at 
org.apache.spark.sql.hive.HiveInspectors$class.wrap(HiveInspectors.scala:558)
      at 
org.apache.spark.sql.hive.orc.OrcSerializer.wrap(OrcFileFormat.scala:164)
      at 
org.apache.spark.sql.hive.orc.OrcSerializer.wrapOrcStruct(OrcFileFormat.scala:202)
      at 
org.apache.spark.sql.hive.orc.OrcSerializer.serialize(OrcFileFormat.scala:168)
      at 
org.apache.spark.sql.hive.orc.OrcOutputWriter.writeInternal(OrcFileFormat.scala:253)
      at 
org.apache.spark.sql.execution.datasources.DefaultWriterContainer$$anonfun$writeRows$1.apply$mcV$sp(WriterContainer.scala:255)
      at 
org.apache.spark.sql.execution.datasources.DefaultWriterContainer$$anonfun$writeRows$1.apply(WriterContainer.scala:252)
      at 
org.apache.spark.sql.execution.datasources.DefaultWriterContainer$$anonfun$writeRows$1.apply(WriterContainer.scala:252)
      at 
org.apache.spark.util.Utils$.tryWithSafeFinallyAndFailureCallbacks(Utils.scala:1325)
      at 
org.apache.spark.sql.execution.datasources.DefaultWriterContainer.writeRows(WriterContainer.scala:258)
    ```
    
    Let me try to make simple scala test case that reproduces the issue from 
shell. May be this will be more helpful.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to