https://github.com/apache/spark
Revision dde4d1d8c409a9ee5dbaae8c12b6f9de540b4198 authored by Oleksii Shkarupin on 12 January 2019, 19:06:39 UTC, committed by Dongjoon Hyun on 12 January 2019, 19:06:55 UTC
## What changes were proposed in this pull request?

When determining CatalystType for postgres columns with type `numeric[]` set the type of array element to `DecimalType(38, 18)` instead of `DecimalType(0,0)`.

## How was this patch tested?

Tested with modified `org.apache.spark.sql.jdbc.JDBCSuite`.
Ran the `PostgresIntegrationSuite` manually.

Closes #23456 from a-shkarupin/postgres_numeric_array.

Lead-authored-by: Oleksii Shkarupin <a.shkarupin@gmail.com>
Co-authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 5b37092311bfc1255f1d4d81127ae4242ba1d1aa)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
1 parent bb97459
History
Tip revision: dde4d1d8c409a9ee5dbaae8c12b6f9de540b4198 authored by Oleksii Shkarupin on 12 January 2019, 19:06:39 UTC
[SPARK-26538][SQL] Set default precision and scale for elements of postgres numeric array
Tip revision: dde4d1d

README.md

back to top