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

babelfish-for-postgresql / babelfish_extensions / 8700893968 / 1
76%
BABEL_5_X_DEV: 77%

Build:
Build:
LAST BUILD BRANCH: BABEL-5577-4x
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 16 Apr 2024 06:58AM 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

16 Apr 2024 06:20AM UTC coverage: 72.531% (+0.01%) from 72.518%
8700893968.1

push

github

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

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.

Authored-by: Shameem Ahmed shmeeh@amazon.com
Co-Authored-by: Dipesh Dhameliya dddhamel@amazon.com
Signed-off-by: Shameem Ahmed shmeeh@amazon.com
Issues Resolved

[BABEL-4791]

41186 of 56784 relevant lines covered (72.53%)

65104.82 hits per line

Source Files on job 8700893968.1
  • Tree
  • List 114
  • Changed 69
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 8700893968
  • cc0e39de on github
  • Prev Job for on BABEL_4_X_DEV (#8695661793.1)
  • Next Job for on BABEL_4_X_DEV (#8722315840.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