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

babelfish-for-postgresql / babelfish_extensions / 17574026078
77%

Build:
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 09 Sep 2025 07:14AM 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

09 Sep 2025 06:37AM UTC coverage: 76.308%. Remained the same
17574026078

push

github

web-flow
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

50421 of 66076 relevant lines covered (76.31%)

379983.69 hits per line

Jobs
ID Job ID Ran Files Coverage
1 17574026078.1 09 Sep 2025 07:14AM UTC 120
76.31
GitHub Action Run
Source Files on build 17574026078
  • Tree
  • List 120
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #17574026078
  • d728d734 on github
  • Prev Build on BABEL_5_X_DEV (#17557392167)
  • Next Build on BABEL_5_X_DEV (#17581892637)
  • 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