Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display unmapped schema names in error messages #3328

Merged

Conversation

chxwang
Copy link
Contributor

@chxwang chxwang commented Dec 27, 2024

Description

Previously, Babelfish displays the mapped schema names in error messages. This commit implements a hook function remove_db_name_in_schema and adds test cases. Original unmapped name will be displayed with this commit.

Issues Resolved

BABEL-2961

Test Scenarios Covered

  • Use case based -

  • Boundary conditions - NA

  • Arbitrary inputs - NA

  • Negative test cases - NA

  • Minor version upgrade tests - NA

  • Major version upgrade tests - NA

  • Performance tests - NA

  • Tooling impact - NA

  • Client tests - NA

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is under the terms of the Apache 2.0 and PostgreSQL licenses, and grant any person obtaining a copy of the contribution permission to relicense all or a portion of my contribution to the PostgreSQL License solely to contribute all or a portion of my contribution to the PostgreSQL open source project.

For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@coveralls
Copy link
Collaborator

coveralls commented Dec 27, 2024

Pull Request Test Coverage Report for Build 12520376567

Details

  • 25 of 26 (96.15%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.01%) to 74.867%

Changes Missing Coverage Covered Lines Changed/Added Lines %
contrib/babelfishpg_tsql/src/hooks.c 25 26 96.15%
Totals Coverage Status
Change from base Build 12502179127: 0.01%
Covered Lines: 46596
Relevant Lines: 62238

💛 - Coveralls

Previously, Babelfish displays the mapped schema names in error messages. This commit implements a hook function remove_db_name_in_schema and adds test cases.

Task: BABEL-2961

Signed-off-by: Chenxiao Wang <[email protected]>
@xhfanhe
Copy link
Contributor

xhfanhe commented Dec 27, 2024

Cherry-picked from #3095

@xhfanhe xhfanhe merged commit 0c70e4f into babelfish-for-postgresql:BABEL_5_X_DEV Dec 27, 2024
45 checks passed
pranavJ23 pushed a commit to pranavJ23/babelfish_extensions that referenced this pull request Jan 6, 2025
…esql#3328)

Previously, Babelfish displays the mapped schema names in error messages. This commit implements a hook function remove_db_name_in_schema and adds test cases.

Task: BABEL-2961

Signed-off-by: Chenxiao Wang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants