Skip to content

Narek/pg12 fixes#444

Open
Ngalstyan4 wants to merge 3 commits intotensorchord:mainfrom
Ngalstyan4:narek/pg12-fixes
Open

Narek/pg12 fixes#444
Ngalstyan4 wants to merge 3 commits intotensorchord:mainfrom
Ngalstyan4:narek/pg12-fixes

Conversation

@Ngalstyan4
Copy link

No description provided.

Ngalstyan4 and others added 3 commits March 17, 2026 13:38
Co-authored-by: Artjoms Iskovs <mildbyte@gmail.com>
The sphere() SQL functions were defined as 'SELECT ROW($1, $2)' which
returns a generic record type. WHPG (Greenplum/PostgreSQL 12.12) is
stricter about type matching in SQL function bodies and requires the
return value to match the declared composite type exactly.

This caused runtime errors:
  ERROR: return type mismatch in function declared to return
sphere_vector
  DETAIL: Final statement returns record instead of vector at column 1.

Fix by adding explicit casts: 'SELECT ROW($1, $2)::sphere_vector'
@github-actions
Copy link


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

),
};
pgrx::info!(
pgrx::debug1!(
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do this?

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