| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
⚠️ Please install the Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## master #6629 +/- ##
==========================================
+ Coverage 46.35% 46.37% +0.01%
==========================================
Files 414 414
Lines 50052 50069 +17
Branches 7151 7153 +2
==========================================
+ Hits 23201 23217 +16
- Misses 25229 25230 +1
Partials 1622 1622
Continue to review full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
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>
| Back | FazBrowse Home | New Git URL |
What this does
Postgres real is a single-precision (float4) column. pg_type_to_feast_value_type mapped it to ValueType.DOUBLE (and real[] to DOUBLE_LIST), silently widening the inferred feature schema to float64:
Every other DB type map in the same module maps real to FLOAT — mssql_to_feast_value_type, oracle_to_feast_value_type, and trino_to_feast_value_type. Only the Postgres map diverged. This maps real → FLOAT and real[] → FLOAT_LIST to match.
Test
Added test_pg_type_to_feast_value_type_real to the offline unit tests (sdk/python/tests/unit/test_type_map.py); it fails before this change and passes after.