Commit 62db435
fix: Map Postgres real to FLOAT instead of DOUBLE
Postgres real is a single-precision float4 column, but
pg_type_to_feast_value_type mapped real to ValueType.DOUBLE (and real[] to
DOUBLE_LIST), silently widening the inferred schema to float64. The mssql,
oracle, and trino type maps in the same module all map real to FLOAT; only
Postgres diverged. Map real to FLOAT and real[] to FLOAT_LIST to match.
Signed-off-by: Nikolaus Schuetz <nikolauspschuetz@gmail.com>1 parent d269946 commit 62db435
2 files changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2047 | 2047 | | |
2048 | 2048 | | |
2049 | 2049 | | |
2050 | | - | |
| 2050 | + | |
2051 | 2051 | | |
2052 | 2052 | | |
2053 | 2053 | | |
| |||
2058 | 2058 | | |
2059 | 2059 | | |
2060 | 2060 | | |
2061 | | - | |
| 2061 | + | |
2062 | 2062 | | |
2063 | 2063 | | |
2064 | 2064 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
541 | 541 | | |
542 | 542 | | |
543 | 543 | | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
544 | 549 | | |
545 | 550 | | |
546 | 551 | | |
| |||
0 commit comments