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

support VOLATILE function for computed field. #9517

Open
patte opened this issue Mar 22, 2023 · 0 comments
Open

support VOLATILE function for computed field. #9517

patte opened this issue Mar 22, 2023 · 0 comments
Labels
k/enhancement New feature or improve an existing feature t/native-dbs

Comments

@patte
Copy link

patte commented Mar 22, 2023

I have a case where using a VOLATILE SQL function in a computed field would simplify things alot.

I also noticed I can create the function as STABLE, add it as computed field, and then change the function to VOLATILE and it works just fine in hasura.

But feels hacky and hasura complains on metadata reload. Also seem's there's not really much needed to support this except allowing VOLATILE function to be tracked, at least in my case.

Will the work for this issue support this use case as well ?

Originally posted by @karibertils in #1514 (comment)

Any chance volatile functions for computed fields can be enabled? If I do the above trick the computed fields of a table, returned by a custom query function (returns setof) are correct. If my computed fields functions are STABLE they have the value from before the mutation occured.

@adas98012 adas98012 added k/enhancement New feature or improve an existing feature t/native-dbs labels Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
k/enhancement New feature or improve an existing feature t/native-dbs
Projects
None yet
Development

No branches or pull requests

2 participants