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

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

Build:
Build:
LAST BUILD BRANCH: datetime2fromparts_bugfix
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 28 Aug 2024 03:59PM UTC
Jobs 1
Files 115
Run time 4min
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

28 Aug 2024 03:04PM UTC coverage: 74.061% (+0.03%) from 74.031%
10599358782

push

github

web-flow
Support database level collation for babelfish (#2739)

Currently babelfish supports setting collation at server, column and expression levels. User can only set collation at
database level, if it is same as server level. This commit enables the users to set collation at database level using TSQL
syntax:

CREATE DATABASE <db_name> COLLATE <collation_name>

This will set the collation of expressions, columns of tables of string datatypes as same as database level collation by
default. If any user wants to have a different collation, then they can set it at column or expression level. User can
choose NOT to set collation at database level explicitly. In that case, the database collation will be as same as server
level collation. The identifiers will be using server level collation itself.

We store the database level collation while user creates the database in system catalog. And we update the collation
information for that database when user invokes:

USE <db_name>

We have updated few views, functions, stored_procedures to use correct collation. 

This commit also introduces a new test framework for database level collation. This framework will run all the existing
JDBC tests in a database which has a different collation than server level collation.

Engine side PR: babelfish-for-postgresql/postgresql_modified_for_babelfish#409
Task: BABEL-4953

Authored by: Shameem Ahmed <shmeeh@amazon.com>
Co-authored-by: Dipesh Dhameliya <dddhamel@amazon.com>
Co-authored-by: yashneet vinayak <yashneet@amazon.com>
Co-authored-by: Pranav Jain <pranavjc@amazon.com>
Co-authored-by: Tanzeel Khan <tzlkhan@amazon.com>

Signed-off-by: Dipesh Dhameliya <dddhamel@amazon.com>

160 of 174 new or added lines in 14 files covered. (91.95%)

2 existing lines in 2 files now uncovered.

44515 of 60106 relevant lines covered (74.06%)

132964.94 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
85.89
0.0% contrib/babelfishpg_common/src/varchar.c
1
90.14
0.01% contrib/babelfishpg_tsql/src/pl_handler.c
2
80.42
0.15% contrib/babelfishpg_tsql/src/hooks.c
3
81.27
0.07% contrib/babelfishpg_tsql/src/collation.c
3
74.8
0.77% contrib/babelfishpg_tsql/src/dbcmds.c
4
79.53
0.66% contrib/babelfishpg_common/src/collation.c

Uncovered Existing Lines

Lines Coverage ∆ File
1
80.42
0.15% contrib/babelfishpg_tsql/src/hooks.c
1
81.27
0.07% contrib/babelfishpg_tsql/src/collation.c
Jobs
ID Job ID Ran Files Coverage
1 10599358782.1 28 Aug 2024 03:59PM UTC 115
74.06
GitHub Action Run
Source Files on build 10599358782
  • Tree
  • List 115
  • Changed 86
  • Source Changed 19
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #10599358782
  • 6fcc7055 on github
  • Prev Build on BABEL_4_X_DEV (#10595221704)
  • Next Build on BABEL_4_X_DEV (#10626928379)
  • 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