Repository navigation
Commit a220e8a
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 5eefef9 commit a220e8a
2 files changed
Lines changed: 27 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2076 | 2076 | | |
2077 | 2077 | | |
2078 | 2078 | | |
| 2079 | + | |
| 2080 | + | |
| 2081 | + | |
| 2082 | + | |
2079 | 2083 | | |
2080 | | - | |
| 2084 | + | |
| 2085 | + | |
2081 | 2086 | | |
2082 | | - | |
| 2087 | + | |
| 2088 | + | |
2083 | 2089 | | |
2084 | 2090 | | |
2085 | 2091 | | |
| |||
2094 | 2100 | | |
2095 | 2101 | | |
2096 | 2102 | | |
2097 | | - | |
| 2103 | + | |
| 2104 | + | |
2098 | 2105 | | |
2099 | 2106 | | |
2100 | 2107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
676 | 676 | | |
677 | 677 | | |
678 | 678 | | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
679 | 696 | | |
680 | 697 | | |
681 | 698 | | |
| |||
0 commit comments