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

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

Build:
Build:
LAST BUILD BRANCH: BABEL_4_7_STABLE
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 28 Aug 2024 03:59PM CUT
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 CUT 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 CUT 115
74.06
GitHub Action Run
Source Files on build 10599358782
  • Tree
  • List 115
  • Changed 86
  • Source Changed 19
  • Coverage Changed 7
Loading...
Coverage∆FileLinesRelevantCoveredMissedHits/Line
0.0
...ontrib/babelfishpg_tsql/src/tsql_for/forjson_old.c358 136 0 136 0.0
0.0
.../mb/conversion_procs/utf8_and_big5/utf8_and_big5.c32 4 0 4 0.0
0.0
contrib/babelfishpg_tsql/src/tsqlNodes.c40 18 0 18 0.0
0.0
contrib/babelfishpg_tsql/src/tsqlHandler.c29 5 0 5 0.0
0.0
contrib/babelfishpg_tsql/src/tsql_for/forxml_old.c283 95 0 95 0.0
1.27
contrib/babelfishpg_tsql/src/pl_gram.y8380 3224 41 3183 6094.0 + 83
11.5
contrib/babelfishpg_tsql/src/pl_scanner.c835 226 26 200 137326.0 + 10375
20.79
contrib/babelfishpg_tsql/src/pl_funcs.c1835 1087 226 861 839446.0 + 9509
32.84
...ontrib/babelfishpg_tds/src/backend/utils/adt/xml.c738 201 66 135 9.0
36.36
...ib/babelfishpg_tds/src/backend/utils/adt/varchar.c108 22 8 14 1328.0
Showing 1 to 10 of 115 entries
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 12
  • Next
  • ►
    74.06
    contrib/
  • 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