Github user marmbrus commented on a diff in the pull request:

    https://github.com/apache/spark/pull/360#discussion_r11932798
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/parquet/ParquetTableOperations.scala
 ---
    @@ -153,9 +153,15 @@ case class InsertIntoParquetTable(
     
         val job = new Job(sc.hadoopConfiguration)
     
    -    ParquetOutputFormat.setWriteSupportClass(
    -      job,
    -      classOf[org.apache.spark.sql.parquet.RowWriteSupport])
    +    val writeSupport =
    +      if (child.output.map(_.dataType).forall(_.isPrimitive())) {
    +        logger.info("Initializing MutableRowWriteSupport")
    --- End diff --
    
    Probably should not be info.  Also, why do all the data types have to be 
primitive for us to use mutable rows?


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

Reply via email to