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

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

Build:
Build:
LAST BUILD BRANCH: BABEL-5844-4x
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 19 Dec 2024 06:30AM 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

19 Dec 2024 06:05AM UTC coverage: 74.875% (+0.001%) from 74.874%
12407215696

push

github

web-flow
Retain result type after UNION as base type in T-SQL (#3175) (#3268)

Description
-----------
When a base type such as `money` is UNIONed with another integer type,
the result type will be `fixeddecimal` instead of `money`, which is
inconsistent with SQL Server's behaviour. And could also cause some
characters not displaying well.

Analysis
--------
The root cause of the issue is Postgres will consider the base type of
domain type as the result type. In Babelfish, `money` is implemented
as a domain type of `fixeddecimal`. Actually, `money` is a base type
in T-SQL, thus Babelfish should retain `money` type after UNION.

Fix
---
After a final type has determined by the optimizer, check if it's a
base type in T-SQL. If it is, try to use the domain type as result
type if the domain type has higher precision than other types.

Task: BABEL-5242

Signed-off-by: Bo Li <zboli@amazon.com>

3 of 3 new or added lines in 1 file covered. (100.0%)

46699 of 62369 relevant lines covered (74.88%)

166694.14 hits per line

Jobs
ID Job ID Ran Files Coverage
1 12407215696.1 19 Dec 2024 06:30AM UTC 115
74.88
GitHub Action Run
Source Files on build 12407215696
  • Tree
  • List 115
  • Changed 76
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #12407215696
  • d2a27890 on github
  • Prev Build on BABEL_4_X_DEV (#12398765433)
  • Next Build on BABEL_4_X_DEV (#12433910487)
  • 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