FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: Map SQL Server bigint to INT64 and float to DOUBLE by LuisFigueroaG · Pull Request #6950 · feast-dev/feast · GitHub

Repository navigation

fix: Map SQL Server bigint to INT64 and float to DOUBLE - #6950

Merged
ntkathole merged 1 commit into
feast-dev:masterfrom
LuisFigueroaG:fix/mssql-bigint-type-mapping
Oct 7, 2026
Merged

ntkathole merged 1 commit into
feast-dev:masterfrom
LuisFigueroaG:fix/mssql-bigint-type-mapping

Conversation

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

mssql_to_feast_value_type (used by MsSqlServerSource schema inference) had two numeric types narrowed to a 32-bit float:

SQL Server type storage before after
bigint 8-byte integer FLOAT (Float32) INT64
float float(53) by default, 8-byte double FLOAT (Float32) DOUBLE
real float(24), 4-byte FLOAT unchanged

With the old mapping, bigint ID or count columns were inferred as Float32, which silently loses precision above 2^24, and float columns lost half their precision. This is the same kind of fix as #6629 for Postgres real.

Which issue(s) this PR fixes:

No existing issue.

Checks

  • I've made sure the tests are passing.
  • My commits are signed off (git commit -s)
  • My PR title follows conventional commits format

Testing Strategy

  • Unit tests
  • Integration tests
  • Manual tests
  • Testing is not required for this change

Added a unit test for the SQL Server numeric mappings in test_type_map.py; it fails on master and passes with this change. ruff format --check, ruff check and mypy pass on the changed files.

LuisFigueroaG requested a review from a team as a code owner October 6, 2026 00:25

codecov-commenter commented Oct 7, 2026 •
edited
Loading

Copy link
Copy Markdown

⚠️ Please install the to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.01%. Comparing base (6b212f5) to head (cb7c491).
⚠️ Report is 2 commits behind head on master.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files

@@            Coverage Diff             @@
##           master    #6950      +/-   ##
==========================================
- Coverage   49.08%   49.01%   -0.08%     
==========================================
  Files         433      435       +2     
  Lines       54320    54501     +181     
  Branches     7915     7947      +32     
==========================================
+ Hits        26663    26712      +49     
- Misses      25781    25914     +133     
+ Partials     1876     1875       -1     
Flag Coverage Δ
go-feature-server 30.58% <ø> (ø)
python-unit 50.39% <ø> (-0.09%) ⬇️
Files with missing lines Coverage Δ
sdk/python/feast/type_map.py 63.53% <ø> (+0.24%) ⬆️

... and 11 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6b212f5...cb7c491. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

mssql_to_feast_value_type mapped bigint to FLOAT, so 64-bit integer
columns were inferred as Float32 and lost precision above 2^24. It also
mapped float to FLOAT, but SQL Server float defaults to float(53), an
8-byte double. real (float(24)) stays FLOAT.

Signed-off-by: LuisFigueroaG <luis.h.figueroa.g@gmail.com>
ntkathole force-pushed the fix/mssql-bigint-type-mapping branch from 940e7bc to cb7c491 Compare October 7, 2026 06:48
ntkathole merged commit 6d15533 into feast-dev:master Oct 7, 2026
18 of 23 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL