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

amazon-aurora / babelfish_extensions / 12383406022
74%
main: 77%

Build:
Build:
LAST BUILD BRANCH: community-merge-15x
DEFAULT BRANCH: main
Ran 18 Dec 2024 12:29AM 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

17 Dec 2024 11:41PM UTC coverage: 73.781%. First build
12383406022

push

github

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

43106 of 58424 relevant lines covered (73.78%)

147427.08 hits per line

Jobs
ID Job ID Ran Files Coverage
1 12383406022.1 18 Dec 2024 12:29AM UTC 0
73.78
GitHub Action Run
Source Files on build 12383406022
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #12383406022
  • 7919c12c on github
  • Next Build on babel_5242_dev15 (#12400114511)
  • 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