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

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

Build:
Build:
LAST BUILD BRANCH: datetime2fromparts_bugfix
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 24 Mar 2025 08:43AM UTC
Jobs 1
Files 115
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

24 Mar 2025 08:10AM UTC coverage: 75.082% (+0.03%) from 75.05%
14030250995

push

github

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

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

Tasks: BABEL-5467, BABEL-5685

Signed-off-by: Rohit Bhagat <rohitbgt@amazon.com>
Co-authored-by: Rohit bhagat <65351720+rohit01010@users.noreply.github.com>

143 of 158 new or added lines in 3 files covered. (90.51%)

1 existing line in 1 file now uncovered.

47740 of 63584 relevant lines covered (75.08%)

237023.84 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
84.95
0.16% contrib/babelfishpg_tsql/src/hooks.c
11
81.59
0.45% contrib/babelfishpg_tds/src/backend/tds/tdsresponse.c

Uncovered Existing Lines

Lines Coverage ∆ File
1
81.59
0.45% contrib/babelfishpg_tds/src/backend/tds/tdsresponse.c
Jobs
ID Job ID Ran Files Coverage
1 14030250995.1 24 Mar 2025 08:43AM UTC 115
75.08
GitHub Action Run
Source Files on build 14030250995
  • Tree
  • List 115
  • Changed 3
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #14030250995
  • 06d1ac9b on github
  • Prev Build on BABEL_4_X_DEV (#14027564039)
  • Next Build on BABEL_4_X_DEV (#14045566495)
  • 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