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

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

Build:
Build:
LAST BUILD BRANCH: babel_5688_min
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 26 Apr 2024 02:34PM 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

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

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

127 of 147 new or added lines in 1 file covered. (86.39%)

106 existing lines in 2 files now uncovered.

41287 of 56570 relevant lines covered (72.98%)

65023.63 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
20
85.25
-0.05% contrib/babelfishpg_tsql/src/collation.c

Uncovered Existing Lines

Lines Coverage ∆ File
1
79.82
0.0% contrib/babelfishpg_tds/src/backend/tds/tdsresponse.c
105
76.29
1.89% contrib/babelfishpg_tsql/src/pltsql_coerce.c
Jobs
ID Job ID Ran Files Coverage
1 8849316228.1 26 Apr 2024 02:34PM UTC 114
72.98
GitHub Action Run
Source Files on build 8849316228
  • Tree
  • List 114
  • Changed 77
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #8849316228
  • f2ce65ff on github
  • Prev Build on BABEL_3_X_DEV (#8829691610)
  • Next Build on BABEL_3_X_DEV (#8857967848)
  • 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