-
- Downloads
[SPARK-4176] [SQL] [MINOR] Should use unscaled Long to write decimals for...
[SPARK-4176] [SQL] [MINOR] Should use unscaled Long to write decimals for precision <= 18 rather than 8 This PR fixes a minor bug introduced in #7455: when writing decimals, we should use the unscaled Long for better performance when the precision <= 18 rather than 8 (should be a typo). This bug doesn't affect correctness, but hurts Parquet decimal writing performance. This PR also replaced similar magic numbers with newly defined constants. Author: Cheng Lian <lian@databricks.com> Closes #8031 from liancheng/spark-4176/minor-fix-for-writing-decimals and squashes the following commits: 10d4ea3 [Cheng Lian] Should use unscaled Long to write decimals for precision <= 18 rather than 8
Showing
- sql/core/src/main/scala/org/apache/spark/sql/parquet/CatalystRowConverter.scala 1 addition, 1 deletion...a/org/apache/spark/sql/parquet/CatalystRowConverter.scala
- sql/core/src/main/scala/org/apache/spark/sql/parquet/CatalystSchemaConverter.scala 17 additions, 12 deletions...rg/apache/spark/sql/parquet/CatalystSchemaConverter.scala
Please register or sign in to comment