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

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

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

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

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]

114 of 131 new or added lines in 1 file covered. (87.02%)

3 existing lines in 1 file now uncovered.

41186 of 56784 relevant lines covered (72.53%)

65104.82 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
17
85.43
0.13% contrib/babelfishpg_tsql/src/collation.c

Uncovered Existing Lines

Lines Coverage ∆ File
3
73.33
-0.95% contrib/babelfishpg_tds/src/backend/tds/tdscomm.c
Jobs
ID Job ID Ran Files Coverage
1 8700893968.1 16 Apr 2024 06:58AM UTC 114
72.53
GitHub Action Run
Source Files on build 8700893968
  • Tree
  • List 114
  • Changed 69
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #8700893968
  • cc0e39de on github
  • Prev Build on BABEL_4_X_DEV (#8695661793)
  • Next Build on BABEL_4_X_DEV (#8722315840)
  • 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