spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From liancheng <...@git.apache.org>
Subject [GitHub] spark pull request: [SPARK-4176][WIP] Support decimal types with p...
Date Mon, 29 Jun 2015 17:13:19 GMT
Github user liancheng commented on a diff in the pull request:

    https://github.com/apache/spark/pull/6796#discussion_r33487350
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/parquet/CatalystSchemaConverter.scala
---
    @@ -383,20 +386,14 @@ private[parquet] class CatalystSchemaConverter(
               .length(minBytesForPrecision(precision))
               .named(field.name)
     
    -      case dec @ DecimalType() if !followParquetFormatSpec =>
    -        throw new AnalysisException(
    -          s"Data type $dec is not supported. " +
    -            s"When ${SQLConf.PARQUET_FOLLOW_PARQUET_FORMAT_SPEC.key} is set to false,"
+
    -            "decimal precision and scale must be specified, " +
    -            "and precision must be less than or equal to 18.")
    -
    --- End diff --
    
    (Please see my comments [here] [1].)
    
    [1]: https://github.com/apache/spark/pull/6796/files#diff-83ef4d5f1029c8bebb49a0c139fa3154R301


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Mime
View raw message