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

babelfish-for-postgresql / babelfish_extensions / 12367805105
77%

Build:
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 17 Dec 2024 07:20AM 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

17 Dec 2024 06:45AM UTC coverage: 74.824% (+0.002%) from 74.822%
12367805105

push

github

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

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%)

46440 of 62066 relevant lines covered (74.82%)

163126.54 hits per line

Jobs
ID Job ID Ran Files Coverage
1 12367805105.1 17 Dec 2024 07:20AM UTC 115
74.82
GitHub Action Run
Source Files on build 12367805105
  • Tree
  • List 115
  • Changed 72
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #12367805105
  • e0893379 on github
  • Prev Build on BABEL_5_X_DEV (#12367055022)
  • Next Build on BABEL_5_X_DEV (#12375565970)
  • 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