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

babelfish-for-postgresql / babelfish_extensions / 8849316228 / 1
74%
BABEL_5_X_DEV: 77%

Build:
Build:
LAST BUILD BRANCH: babel-5844-5x
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 26 Apr 2024 02:34PM UTC
Files 114
Run time 5s
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

26 Apr 2024 01:48PM UTC coverage: 72.984% (+0.04%) from 72.943%
8849316228.1

push

github

web-flow
Support LIKE operator for AI collations (Latin characters) (#2500)

This PR supports the LIKE operator for Accent Insensitive collations based on Latin (All the collations ending *CS_AI
and *CI_AI which are also known as non-deterministic collations). The native Postgres does not support LIKE operator for non-deterministic collations, so we have made some changes in the Babelfish extensions side to parse the incoming
node. We will try to identify the left and right node of LIKE operator and process them with the help of
remove_accents_internal function using following transformation. (This remove_accents_internal nothing but will
remove accents from input string.)

pattern LIKE text COLLATE CI_AI
<->
remove_accents_internal(pattern) as u_p LIKE remove_accents_internal(text) as u_t COLLATE CI_AS
<->
(u_p ILIKE u_t COLLATE CS_AS) AND
(u_t BETWEEN unaccent(pattern_const) AND (unaccent(pattern_const) || 0xffff)) COLLATE CS_AS)

If we have not handled any kind of node explicitly, then we will throw error. The remove_accents_internal take help of
ICU provided APIs to obtain unaccented version of input string with transformation rule.

TASK : BABEL-4791
Authored-by: Shameem Ahmed shmeeh@amazon.com
Co-Authored-by: Dipesh Dhameliya dddhamel@amazon.com
Signed-off-by: Shameem Ahmed shmeeh@amazon.com

41287 of 56570 relevant lines covered (72.98%)

65023.63 hits per line

Source Files on job 8849316228.1
  • Tree
  • List 114
  • Changed 77
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 8849316228
  • f2ce65ff on github
  • Prev Job for on BABEL_3_X_DEV (#8829691610.1)
  • Next Job for on BABEL_3_X_DEV (#8857967848.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

© 2026 Coveralls, Inc