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

babelfish-for-postgresql / babelfish_extensions / 15602619622
77%

Build:
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 12 Jun 2025 06:18AM UTC
Jobs 1
Files 119
Run time 475min
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

12 Jun 2025 05:44AM UTC coverage: 75.515% (+0.005%) from 75.51%
15602619622

push

github

web-flow
Fix loading of data for TEXT column (NULL allowed) if primary key is defined using non-default collation from PG endpoint for logical database (#3824)

If the babelfish table has a column whose type is anything other than text/ntext (eg: varchar, nvarchar etc) and the collation of the column is NOT same as babelfish database/server level collation and if the query is executed from PSQL endpoint, it will throw error saying it can not decide which collation to use.

If the same query is executed from TDS endpoint, it runs successfully.

This is because when the query is executed from PSQL endpoint -- the collation of varchar is server level collation. During resolution of collation at the parent node, the collation of left and right operand does NOT match and none of their collation matches with CLUSTER_COLLATION_OID (this returns DEFAULT_COLLATION_OID as the dialect is PG)

The query is working from TDS endpoint -- the collation of varchar is database level collation. During resolution of collation at the parent node, the collation of left and right operand does NOT match and collation of right operand matches with CLUSTER_COLLATION_OID (this returns database level collation as the dialect is TSQL)

This commit handles the case when the connection is from PG endpoint and psql_logical_babelfish_db_name GUC is set -- the case for logical/TSQL database. If both the aforementioned conditions are met, we will return babelfish server level collation irrespective of dialect (initially it was only for TDS connection).

Task: BABEL-5077

Signed-off-by: Shameem Ahmed shmeeh@amazon.com

14 of 14 new or added lines in 3 files covered. (100.0%)

48834 of 64668 relevant lines covered (75.51%)

314176.06 hits per line

Jobs
ID Job ID Ran Files Coverage
1 15602619622.1 12 Jun 2025 06:18AM UTC 119
75.51
GitHub Action Run
Source Files on build 15602619622
  • Tree
  • List 119
  • Changed 4
  • Source Changed 4
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #15602619622
  • 98ae9591 on github
  • Prev Build on BABEL_5_X_DEV (#15576294290)
  • Next Build on BABEL_5_X_DEV (#15629645934)
  • 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