-
Notifications
You must be signed in to change notification settings - Fork 11
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
Reporting range aggregate functions and IS JSON predicate clauses #2113
Conversation
…ort-isjson-range-type
…ort-isjson-range-type
…umping views and mviews in >=PG16
…ort-isjson-range-type
…ort-isjson-range-type
array_column TEXT CHECK (array_column IS JSON ARRAY), | ||
scalar_column TEXT CHECK (scalar_column IS JSON SCALAR), | ||
unique_keys_column TEXT CHECK (unique_keys_column IS JSON WITH UNIQUE KEYS) | ||
); |
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.
Should we add separate tables for each of the IS JSON clauses (not even each but at least 2 or three different clauses in different tables)? Currently the tables might just be getting reported due to the first IS JSON clause and the rest seem kind of useless.
upper(range_agg(event_range)) AS latest_end | ||
FROM | ||
sales.events; |
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.
Same as above, currently the view has multiple unsupported functions. Better to split it into multiple views to ensure that all the function types are getting caught.
scalar_column TEXT CHECK (scalar_column IS JSON SCALAR), | ||
unique_keys_column TEXT CHECK (unique_keys_column IS JSON WITH UNIQUE KEYS) | ||
); |
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.
Same comment as above for this table too.
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.
LGTM!
Describe the changes in this pull request
IS JSON
predicate clauses https://yugabyte.atlassian.net/browse/DB-14543range_agg
,range_intersect_agg
range type functions - https://yugabyte.atlassian.net/browse/DB-14224Describe if there are any user-facing changes
Unsupported Feature
Unsupported Query Constructs -
Unsupported PL/pgSQL objects -
How was this pull request tested?
Does your PR have changes that can cause upgrade issues?