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

    https://github.com/apache/spark/pull/6796#discussion_r33420649
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/parquet/CatalystSchemaConverter.scala
 ---
    @@ -404,9 +401,10 @@ private[parquet] class CatalystSchemaConverter(
               .scale(scale)
               .named(field.name)
     
    -      // Uses INT64 for 1 <= precision <= 18
    +      // Uses INT64 for 8 byte encodings / precision <= 18
           case DecimalType.Fixed(precision, scale)
    -        if precision <= maxPrecisionForBytes(8) && followParquetFormatSpec 
=>
    +        if followParquetFormatSpec && maxPrecisionForBytes(7) < precision 
&&
    +          precision <= maxPrecisionForBytes(8) =>
    --- End diff --
    
    Same question as above...


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