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 #3095

Merged

Conversation

chxwang
Copy link
Contributor

@chxwang chxwang commented Nov 12, 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 Nov 12, 2024

Pull Request Test Coverage Report for Build 12509618870

Details

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

Changes Missing Coverage Covered Lines Changed/Added Lines %
contrib/babelfishpg_tsql/src/hooks.c 25 26 96.15%
Files with Coverage Reduction New Missed Lines %
contrib/babelfishpg_tds/src/backend/tds/tdscomm.c 2 76.03%
Totals Coverage Status
Change from base Build 12502173129: 0.005%
Covered Lines: 46729
Relevant Lines: 62409

💛 - Coveralls

@chxwang chxwang force-pushed the jira-babel-2961 branch 2 times, most recently from 790ede8 to 093c8a0 Compare December 19, 2024 06:41
@chxwang chxwang requested a review from xhfanhe December 20, 2024 16:59
@RIC06X
Copy link
Contributor

RIC06X commented Dec 20, 2024

can you also add you test BABEL-2961 to test/JDBC/upgrade/latest/schedule? This is for the upgrade dependency test

@timchang514 timchang514 self-requested a review December 20, 2024 18:09
contrib/babelfishpg_tsql/src/hooks.c Outdated Show resolved Hide resolved
contrib/babelfishpg_tsql/src/hooks.c Outdated Show resolved Hide resolved
contrib/babelfishpg_tsql/src/hooks.c Outdated Show resolved Hide resolved
contrib/babelfishpg_tsql/src/hooks.c Outdated Show resolved Hide resolved
contrib/babelfishpg_tsql/src/hooks.c Outdated Show resolved Hide resolved
contrib/babelfishpg_tsql/src/hooks.c Outdated Show resolved Hide resolved
contrib/babelfishpg_tsql/src/hooks.c Outdated Show resolved Hide resolved
@chxwang chxwang force-pushed the jira-babel-2961 branch 2 times, most recently from ea4e954 to f563801 Compare December 23, 2024 16:44
@RIC06X RIC06X self-requested a review December 24, 2024 00:49
@RIC06X
Copy link
Contributor

RIC06X commented Dec 24, 2024

LGTM

Chenxiao Wang added 7 commits December 26, 2024 21:18
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]>
Task: BABEL-2961

Signed-off-by: Chenxiao Wang <[email protected]>
Signed-off-by: Chenxiao Wang <[email protected]>
Signed-off-by: Chenxiao Wang <[email protected]>
Chenxiao Wang added 15 commits December 26, 2024 21:18
Signed-off-by: Chenxiao Wang <[email protected]>
Signed-off-by: Chenxiao Wang <[email protected]>
Signed-off-by: Chenxiao Wang <[email protected]>
Signed-off-by: Chenxiao Wang <[email protected]>
Signed-off-by: Chenxiao Wang <[email protected]>
Signed-off-by: Chenxiao Wang <[email protected]>
Signed-off-by: Chenxiao Wang <[email protected]>
Signed-off-by: Chenxiao Wang <[email protected]>
Signed-off-by: Chenxiao Wang <[email protected]>
Signed-off-by: Chenxiao Wang <[email protected]>
Copy link
Contributor

@xhfanhe xhfanhe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xhfanhe xhfanhe merged commit 508798a into babelfish-for-postgresql:BABEL_4_X_DEV Dec 27, 2024
47 checks passed
@chxwang chxwang deleted the jira-babel-2961 branch December 27, 2024 18:37
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.

5 participants