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

babelfish-for-postgresql / babelfish_extensions / 10099031439
75%
BABEL_5_X_DEV: 76%

Build:
Build:
LAST BUILD BRANCH: BABEL-5882-5_X
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 25 Jul 2024 06:35PM CUT
Jobs 1
Files 115
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

25 Jul 2024 05:54PM CUT coverage: 73.53% (+0.02%) from 73.51%
10099031439

push

github

web-flow
Improve logic to extract identifier names (#2748)

Previously, the logic to extract original identifier names from query string was not proper and could not handle the identifiers with special characters or object name being prefix of schema name. This logic was there to extract original table name and original function/procedure name from the query and due to this issue, we were storing wrong original names.
Implemented helper function extract_multipart_identifier_name which improves the logic to extract original name from a multi-part identifier in a query string taking care of spaces or possibly quoted identifier. It internally uses extract_identifier function to extract individual parts of an identifier.

Additional fixes:
Fixed sp_rename_internal to properly handle rename of a table so that it also updates the underlying original table name (bbf_original_rel_name). Previously, sp_rename was using string_split() for the splitting which could not handle the quotes or special characters. Implemented helper SQL function babelfish_split_identifier which is mostly a wrapper over split_object_name C function to correctly split multi-part identifiers.
Updated logic to fetch original table_name/column_name in sql views information_schema_tsql.columns_internal and information_schema_tsql.tables so that they don't assume that bbf_original_rel_name or bbf_original_name is always the first option in reloptions and attoptions list respectively, instead now the logic is to iterate over the whole list and search of the desired option.

Task: BABEL-5089
Signed-off-by: Rishabh Tanwar ritanwar@amazon.com

83 of 86 new or added lines in 5 files covered. (96.51%)

1 existing line in 1 file now uncovered.

43537 of 59210 relevant lines covered (73.53%)

107241.56 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
88.41
0.07% contrib/babelfishpg_tsql/src/procedures.c
2
80.33
0.05% contrib/babelfishpg_tsql/src/hooks.c

Uncovered Existing Lines

Lines Coverage ∆ File
1
88.41
0.07% contrib/babelfishpg_tsql/src/procedures.c
Jobs
ID Job ID Ran Files Coverage
1 10099031439.1 25 Jul 2024 06:35PM CUT 115
73.53
GitHub Action Run
Source Files on build 10099031439
  • Tree
  • List 115
  • Changed 67
  • Source Changed 5
  • Coverage Changed 3
Loading...
Coverage∆FileLinesRelevantCoveredMissedHits/Line
0.0
...ontrib/babelfishpg_tsql/src/tsql_for/forjson_old.c358 136 0 136 0.0
0.0
contrib/babelfishpg_tsql/src/tsqlHandler.c29 5 0 5 0.0
0.0
contrib/babelfishpg_tsql/src/tsqlNodes.c40 18 0 18 0.0
0.0
.../mb/conversion_procs/utf8_and_big5/utf8_and_big5.c32 4 0 4 0.0
0.0
...rc/backend/fault_injection/fault_injection_tests.c253 106 0 106 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 3947.0
1.79
..._tds/src/backend/fault_injection/fault_injection.c406 168 3 165 10.0
11.5
contrib/babelfishpg_tsql/src/pl_scanner.c835 226 26 200 122018.0 + 27
20.79
contrib/babelfishpg_tsql/src/pl_funcs.c1835 1087 226 861 824045.0 + 24
Showing 1 to 10 of 115 entries
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 12
  • Next
  • ►
    73.53
    contrib/
  • Back to Repo
  • Github Actions Build #10099031439
  • 1e57a7e7 on github
  • Prev Build on BABEL_4_X_DEV (#10096853962)
  • Next Build on BABEL_4_X_DEV (#10099191999)
  • 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