Github user rtreffer commented on the pull request:

    https://github.com/apache/spark/pull/6796#issuecomment-113814084
  
    The problematic line is
    
https://github.com/apache/spark/blob/v1.4.0/sql/core/src/main/scala/org/apache/spark/sql/parquet/ParquetTableSupport.scala#L105
    (calling ParquetTypesConverter.convertFromAttributes)
    This causes the schema to be normalized, but that does not work for decimal.
    
    ```
    message hive_schema {
      optional int32 id;
      optional fixed_len_byte_array(13) value (DECIMAL(30,0));
    }
    ```
    is replaced by
    ```
    message root {
      optional int32 id;
      optional binary value (DECIMAL(30,0));
    }
    ```
    
    I removed that line and the loading of the data works.


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