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

babelfish-for-postgresql / babelfish_extensions / 14261030212
74%
BABEL_5_X_DEV: 77%

Build:
Build:
LAST BUILD BRANCH: BABEL-5844-4x
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 04 Apr 2025 08:45AM UTC
Jobs 1
Files 114
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

04 Apr 2025 08:15AM UTC coverage: 74.016% (+0.04%) from 73.981%
14261030212

push

github

web-flow
Fix issue with truncation of result of arithmetic computations to correct scale when result is of numeric datatype (#3648)

* Fix issue with truncation of result of arithmetic computations to correct scale when result is of numeric datatype (#3455)

Currently, whenever an arithmetic operation is performed which results in numeric/decimal, we are storing the result till maximum possible scale instead of the correct scale. This is causing incorrect results in some arithmetic operations such as numeric division, numeric multiplication etc. This PR will fix this issue by adding a hooks in engine which truncates/rounds the result value to the correct scale and also sets the correct typmod of multiple nodes whose base type is NUMERIC.

This PR also fixes precision overflow adjustment logic in case NUMERIC ADDITION, SUBTRACTION and MULTIPLICATION.

Engine PR: babelfish-for-postgresql/postgresql_modified_for_babelfish#529

Issues Resolved
BABEL-5467, BABEL-5685

Signed-off-by: Rohit Bhagat <rohitbgt@amazon.com>

148 of 163 new or added lines in 3 files covered. (90.8%)

3 existing lines in 2 files now uncovered.

43733 of 59086 relevant lines covered (74.02%)

177781.67 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
83.57
0.22% contrib/babelfishpg_tsql/src/hooks.c
11
81.53
0.51% contrib/babelfishpg_tds/src/backend/tds/tdsresponse.c

Uncovered Existing Lines

Lines Coverage ∆ File
1
81.53
0.51% contrib/babelfishpg_tds/src/backend/tds/tdsresponse.c
2
76.03
-0.63% contrib/babelfishpg_tds/src/backend/tds/tdscomm.c
Jobs
ID Job ID Ran Files Coverage
1 14261030212.1 04 Apr 2025 08:45AM UTC 114
74.02
GitHub Action Run
Source Files on build 14261030212
  • Tree
  • List 114
  • Changed 4
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #14261030212
  • eb5938d0 on github
  • Prev Build on BABEL_3_X_DEV (#14233172189)
  • Next Build on BABEL_3_X_DEV (#14405600972)
  • 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

© 2025 Coveralls, Inc