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

babelfish-for-postgresql / babelfish_extensions / 15180060239
77%

Build:
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 22 May 2025 07:24AM UTC
Jobs 1
Files 119
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

22 May 2025 06:50AM UTC coverage: 75.38% (+0.006%) from 75.374%
15180060239

push

github

web-flow
Use Index Scan for EXACT and PREFIX pattern matches for LIKE for Const node inside CollateExpr (#3770) (#3776)

With this commit: e119968, babelfish now use Index Scans for the following cases:

-- CASE 1
SELECT COL FROM TAB WHERE COL LIKE 'ab'

-- CASE 2
SELECT COL FROM TAB WHERE COL LIKE 'a%'

However if there is a Collate clause with the right operand :

-- CASE 1
SELECT COL FROM TAB WHERE COL LIKE 'ab' COLLATE DATABASE_DEFAULT

-- CASE 2
SELECT COL FROM TAB WHERE COL LIKE 'a%' COLLATE DATABASE_DEFAULT

then Babelfish does NOT use Index Scan.

This commit enables Index scan for such cases. We do this by removing CollateExpr on both operands as those are
redundant and the OpExpr (LIKE) operator is already aware of the collation it needs to use.

(cherry picked from commit 431bf0be0)

Task: BABEL-5077
Signed-off-by: Shameem Ahmed <shmeeh@amazon.com>

31 of 34 new or added lines in 1 file covered. (91.18%)

48609 of 64485 relevant lines covered (75.38%)

306388.7 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
73.72
0.55% contrib/babelfishpg_tsql/src/collation.c
Jobs
ID Job ID Ran Files Coverage
1 15180060239.1 22 May 2025 07:24AM UTC 119
75.38
GitHub Action Run
Source Files on build 15180060239
  • Tree
  • List 119
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #15180060239
  • 84ad3c25 on github
  • Prev Build on BABEL_5_X_DEV (#15172420083)
  • Next Build on BABEL_5_X_DEV (#15192357426)
  • 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