Skip to content

fix(test): adjust stored procedure test expectations for Cloudberry#26

Merged
gfphoenix78 merged 1 commit intoapache:sync-with-upstreamfrom
robertmu:query-function
Aug 28, 2025
Merged

fix(test): adjust stored procedure test expectations for Cloudberry#26
gfphoenix78 merged 1 commit intoapache:sync-with-upstreamfrom
robertmu:query-function

Conversation

@robertmu
Copy link
Copy Markdown
Contributor

The integration test for stored procedures was failing on Cloudberry due to differences in pg_get_function_arguments behavior compared to GPDB 7.

In Cloudberry (based onPostgreSQL 14), pg_get_function_arguments includes parameter modes (e.g., "IN") in the returned arguments string, while GPDB 7 omits them.

This commit updates the test to expect the correct format for each database version:

  • Cloudberry: "IN a integer, IN b integer"
  • GPDB 7: "a integer, b integer"

The underlying gpbackup functionality works correctly on both platforms; only the test expectations needed adjustment.

Fixes: Integration test failure in predata_functions_queries_test.go

The integration test for stored procedures was failing on Cloudberry
due to differences in pg_get_function_arguments behavior compared to
GPDB 7.

In Cloudberry (PostgreSQL 14), pg_get_function_arguments includes
parameter modes (e.g., "IN") in the returned arguments string, while
GPDB 7 omits them.

This commit updates the test to expect the correct format for each
database version:
- Cloudberry: "IN a integer, IN b integer"
- GPDB 7: "a integer, b integer"

The underlying gpbackup functionality works correctly on both platforms;
only the test expectations needed adjustment.

Fixes: Integration test failure in predata_functions_queries_test.go
@gfphoenix78 gfphoenix78 merged commit 78fda01 into apache:sync-with-upstream Aug 28, 2025
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.

2 participants