Skip to content

Conversation

bilalkah
Copy link

@bilalkah bilalkah commented Sep 22, 2025

Description

Fix the cook default function behavior by setting function return type.

Issues Resolved

babelfish-for-postgresql/babelfish_extensions#4069

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 PostgreSQL license, 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.

format_type_be(type_id)),
errhint("You will need to rewrite or cast the expression.")));

if (handle_type_and_collation_hook)
Copy link
Contributor

Choose a reason for hiding this comment

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

Would you mind explain the user case why we need to add this line and follow up with test cases ? It can help us to understand the priority and necessary to merge this change into main branch.

Copy link
Author

Choose a reason for hiding this comment

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

I explain the reason why we need this fix in issue babelfish-for-postgresql/babelfish_extensions#4069
I also would like add test scenarios but the JDBC tests are in babelfish repository. How can I add my test cases here?

Copy link
Author

Choose a reason for hiding this comment

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

Here I created the failing test case in babelfish_repository
babelfish-for-postgresql/babelfish_extensions#4123

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