Repository navigation
Commit ed60413
committed
fix: Use valid Postgres type names for Arrow types in entity dataframe uploads
arrow_to_pg_type, which builds the CREATE TABLE for a pandas entity dataframe,
returned type names Postgres does not have: int8 -> tinyint, binary -> binary,
null -> null. It also raised for date32 and decimal columns. Map them to
smallint, bytea, text, date and numeric.
Signed-off-by: sohailshk <122166523+sohailshk@users.noreply.github.com>1 parent e81e69d commit ed60413
2 files changed
Lines changed: 27 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2065 | 2065 | | |
2066 | 2066 | | |
2067 | 2067 | | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
2068 | 2072 | | |
2069 | | - | |
| 2073 | + | |
| 2074 | + | |
2070 | 2075 | | |
2071 | | - | |
| 2076 | + | |
| 2077 | + | |
2072 | 2078 | | |
2073 | 2079 | | |
2074 | 2080 | | |
| |||
2083 | 2089 | | |
2084 | 2090 | | |
2085 | 2091 | | |
2086 | | - | |
| 2092 | + | |
| 2093 | + | |
2087 | 2094 | | |
2088 | 2095 | | |
2089 | 2096 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
639 | 639 | | |
640 | 640 | | |
641 | 641 | | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
642 | 659 | | |
643 | 660 | | |
644 | 661 | | |
| |||
0 commit comments