-
-
Notifications
You must be signed in to change notification settings - Fork 253
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
Missing ArgAbi and BoxRet trait implementations for datums #1757
Missing ArgAbi and BoxRet trait implementations for datums #1757
Conversation
Interesting. Surprised we don’t have tests to catch these. Thanks @danbluhmhansen. I’ll approve CI and we’ll see about merging next week, I imagine. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should land with tests that prevent this omission in the future. Just simple "accepts the type, returns the type" somewhere in pgrx-tests is all.
I have a suspicion that these BoxRet impls for AnyArray and AnyElement will prove... optimistic, but if we can at least make it through a function call, then at least it kinda works. |
Preferably, the Any* types should at least have the mercy to have their impl check that you created an AnyType with the same OID returned by |
- missing ArgAbi and BoxRet trait implementations for JsonB, AnyArray, and AnyElement datums
Alright I have added tests that should catch possible future regressions.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you.
After updating to version
0.12.0-beta.0
I can no longer useJsonB
as apg_extern
function argument, and I can no longer useJsonB
,AnyArray
, orAnyElement
as state type inpg_aggregate
. Unfortunately, pgrx lacked any tests for these types, so they were not checked for compilation when adding ArgAbi and RetAbi.