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

[Coral-Schema] Support ROW_NUMBER() OVER WINDOW #437

Merged
merged 2 commits into from
Jul 20, 2023

Conversation

aastha25
Copy link
Contributor

@aastha25 aastha25 commented Jul 18, 2023

What changes are proposed in this pull request, and why are they necessary?

Prior to this PR, Coral didn't support generating the avro schema for views with function ROW_NUMBER() over a window.
This PR adds the support by implementing visitOver() in the RexShuttle: SchemaRexShuttle.

Refer to ViewToAvroSchemaConverterTests.testRowNumberOverWindow() for an example usage.

How was this patch tested?

./gradlew spotlessApply
./gradlew build
added UT
tested the targeted production view on the gateway
i-tested against production views

Copy link
Collaborator

@ljfgem ljfgem left a comment

Choose a reason for hiding this comment

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

LGTM except for a nit.

@aastha25 aastha25 merged commit 8ebfdb1 into linkedin:master Jul 20, 2023
1 check passed
@aastha25 aastha25 deleted the aggOverWindow branch July 24, 2023 20:45
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