• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

babelfish-for-postgresql / babelfish_extensions / 17672990813
76%
BABEL_5_X_DEV: 77%

Build:
Build:
LAST BUILD BRANCH: 5577-5x
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 12 Sep 2025 11:44AM UTC
Jobs 1
Files 120
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Sep 2025 11:20AM UTC coverage: 75.982%. Remained the same
17672990813

push

github

web-flow
Fix mathematical functions for Money and smallmoney (#4071)

* Fix mathematical functions for Money and smallmoney (#4046)

This PR fixes datatype and precision mismatches in the following mathematical functions when used with MONEY/SMALLMONEY in Babelfish:

DEGREES() – Converts radians to degrees
RADIANS() – Converts degrees to radians

Behavior Differences Fixed :

    Return datatype mismatch. Babelfish returned float while TSQL returns money/smallmoney

    Precision difference. Babelfish used high-precision float values (e.g., 90.00021045914971) while TSQL rounded results based on datatype precision (e.g., 90.0002)

SELECT DEGREES(CAST(PI()/2 AS SMALLMONEY)) AS result;

With this change, Babelfish now returns results as money/smallmoney instead of float and applies rounding consistent with TSQL (4 decimal places for money, up to 4 for smallmoney).

Task: BABEL-5748

Signed-off-by: Harsh Dubey harshdu@amazon.com

49834 of 65587 relevant lines covered (75.98%)

382552.29 hits per line

Jobs
ID Job ID Ran Files Coverage
1 17672990813.1 12 Sep 2025 11:44AM UTC 120
75.98
GitHub Action Run
Source Files on build 17672990813
  • Tree
  • List 120
  • Changed 1
  • Source Changed 1
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #17672990813
  • 27fe9ace on github
  • Prev Build on BABEL_4_X_DEV (#17639046326)
  • Next Build on BABEL_4_X_DEV (#17729275503)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc