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

Reporting range aggregate functions and IS JSON predicate clauses #2113

Merged
merged 50 commits into from
Jan 6, 2025

Conversation

priyanshi-yb
Copy link
Contributor

@priyanshi-yb priyanshi-yb commented Dec 23, 2024

Describe the changes in this pull request

  1. Reporting the IS JSON predicate clauses https://yugabyte.atlassian.net/browse/DB-14543
  2. Reporting the range_agg, range_intersect_agg range type functions - https://yugabyte.atlassian.net/browse/DB-14224

Describe if there are any user-facing changes

Unsupported Feature
Screenshot 2024-12-24 at 8 19 09 PM

Unsupported Query Constructs -
Screenshot 2024-12-24 at 8 19 02 PM

Unsupported PL/pgSQL objects -
Screenshot 2024-12-24 at 8 08 44 PM

How was this pull request tested?

Does your PR have changes that can cause upgrade issues?

Component Breaking changes?
MetaDB No
Name registry json No
Data File Descriptor Json No
Export Snapshot Status Json No
Import Data State No
Export Status Json No
Data .sql files of tables No
Export and import data queue No
Schema Dump No
AssessmentDB No
Sizing DB No
Migration Assessment Report Json No
Callhome Json No
YugabyteD Tables No
TargetDB Metadata Tables No

@priyanshi-yb priyanshi-yb changed the title Range aggregate functions and IS JSON predicates Reporting range aggregate functions and IS JSON predicate clauses Dec 24, 2024
Base automatically changed from priyanshi/report-json-fn-any_agg-fn to main December 24, 2024 13:17
@priyanshi-yb priyanshi-yb marked this pull request as ready for review December 24, 2024 15:04
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)
);
Copy link
Collaborator

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;
Copy link
Collaborator

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)
);
Copy link
Collaborator

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.

Copy link
Collaborator

@ShivanshGahlot ShivanshGahlot left a comment

Choose a reason for hiding this comment

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

LGTM!

@priyanshi-yb priyanshi-yb merged commit 16b08fe into main Jan 6, 2025
67 checks passed
@priyanshi-yb priyanshi-yb deleted the priyanshi/report-isjson-range-type branch January 6, 2025 11:19
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.

3 participants