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

babelfish-for-postgresql / babelfish_extensions / 15180060239 / 1
77%
BABEL_5_X_DEV: 77%

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

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>

48609 of 64485 relevant lines covered (75.38%)

306388.7 hits per line

Source Files on job 15180060239.1
  • Tree
  • List 119
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 15180060239
  • 84ad3c25 on github
  • Prev Job for on BABEL_5_X_DEV (#15172420083.1)
  • Next Job for on BABEL_5_X_DEV (#15192357426.1)
  • 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