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

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

Build:
Build:
LAST BUILD BRANCH: babel_5688_min
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 02 May 2024 11:22AM 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

02 May 2024 10:43AM UTC coverage: 73.045% (+0.08%) from 72.966%
8922567081

push

github

web-flow
Introduce operator class and operators between int and numeric (#2542)

Today in Babelfish, Index scan would not be chosen by optimiser if there is any filter that involves operator between int and numeric even though index is created on int column. For example,

```
create table test_int_numeric(a int);

-- insert 1M rows of data
INSERT INTO test_int_numeric (a) SELECT generate_series(1, 1000000);

CREATE INDEX test_int_numeric_idx on test_int_numeric(a);
```

Here, Index scan would not be chosen for following query as operator class and operators between int and numeric does not exist in native Postgres.

```
select count(*) from test_int_numeric where a = 5.0;
```

This commit fixes this issue by appropriately defining operator class and operators between int and numeric.

This changes also requires engine changes (babelfish-for-postgresql/postgresql_modified_for_babelfish#355) in order to dump these Babelfish defined operator class correctly during pg_upgrade.

Task: BABEL-3385
Signed-off-by: Dipesh Dhameliya <dddhamel@amazon.com>

198 of 210 new or added lines in 1 file covered. (94.29%)

41453 of 56750 relevant lines covered (73.04%)

102905.8 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
12
84.99
7.42% contrib/babelfishpg_common/src/numeric.c
Jobs
ID Job ID Ran Files Coverage
1 8922567081.1 02 May 2024 11:22AM UTC 114
73.04
GitHub Action Run
Source Files on build 8922567081
  • Tree
  • List 114
  • Changed 68
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #8922567081
  • 1af4044d on github
  • Prev Build on BABEL_3_X_DEV (#8874679757)
  • Next Build on BABEL_3_X_DEV (#8925979479)
  • 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