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

HIVE-28146: Add positive event type filter to the HMS notification fe… #5694

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

saihemanth-cloudera
Copy link
Contributor

…tch API

What changes were proposed in this pull request?

Added a new field 'eventTypeList' in the NotificationEventRequest

Why are the changes needed?

So that clients can request notificationEvents based on required event types.

Does this PR introduce any user-facing change?

No.

Is the change a dependency upgrade?

No.

How was this patch tested?

Local testing and added unit test for the same.

for (String eventType : rqst.getEventTypeList()) {
parameterVals.add(eventType);
parameterBuilder.append(", java.lang.String para" + parameterVals.size());
filterBuilder.append(" && eventType == para" + parameterVals.size());
Copy link
Member

Choose a reason for hiding this comment

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

this should be || instead of &&?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right. Let me modify the test case to address the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants