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

Fix regression in FOR JSON AUTO with nested queries. #3125

Merged

Conversation

roshan0708
Copy link
Contributor

@roshan0708 roshan0708 commented Nov 15, 2024

Description

Cherry-pick commit to fix test failures for forjsonauto JDBC test.

Issues Resolved

BABEL-5398

Test Scenarios Covered

  • Use case based -

  • Boundary conditions -

  • Arbitrary inputs -

  • Negative test cases -

  • Minor version upgrade tests -

  • Major version upgrade tests -

  • Performance tests -

  • Tooling impact -

  • Client tests -

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.

Jason Teng and others added 2 commits November 15, 2024 11:41
The previous implementation of nested FOR JSON AUTO relied on the happy
accident that the enum T_JsonArrayQueryConstructor happened to have the
same value as the typid for the json type, 114. In PG17 the enum value
for T_JsonArrayQueryConstructor changed to 130, leading to errors when
trying to evaluate nested FOR JSON AUTO queries. Fix this by properly
using the typid for json.

Task: BABEL-5398
Signed-off-by: Jason Teng <[email protected]>
@coveralls
Copy link
Collaborator

coveralls commented Nov 15, 2024

Pull Request Test Coverage Report for Build 11856311104

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.5%) to 74.569%

Totals Coverage Status
Change from base Build 11853634329: 0.5%
Covered Lines: 45293
Relevant Lines: 60740

💛 - Coveralls

@shardgupta shardgupta merged commit e47fa84 into babelfish-for-postgresql:BABEL_5_X_DEV Nov 15, 2024
42 checks passed
@shardgupta shardgupta deleted the bbf-fixes-pg17 branch November 15, 2024 14:15
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