Skip to content

[SNAP 3268] Passing trigger interval as long value instead of entire Trigger object #194

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

Merged
merged 2 commits into from
Dec 11, 2019

Conversation

vatsalmevada
Copy link

@vatsalmevada vatsalmevada commented Dec 11, 2019

What changes were proposed in this pull request?

As part of recent structured streaming UI, we introduced a new field for
Trigger in QueryStartedEvent. This field was added to retrieve the configured
trigger interval which can be displayed on UI on one of the charts.

Since org.apache.spark.sql.streaming.Trigger is a trait, JSON deserialization
of the same will require custom deserialization logic. Writing the same will be
overkill as ultimately the Trigger object has only one implementation as
of now which ProcessingTime and all ProcessingTime contains is trigger
interval which of Long type. Hence instead of passing the whole object as
part of the event, we are now passing only the trigger interval.

How was this patch tested?

  • failing test is passing now
  • running precheckin with -Pspark

Vatsal Mevada added 2 commits December 11, 2019 14:32
instead of passing the whole Trigger object which would have required
a custom deserialization logic.
Copy link

@suranjan suranjan left a comment

Choose a reason for hiding this comment

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

LGTM

@vatsalmevada vatsalmevada merged commit 30f89e8 into snappy/branch-2.1 Dec 11, 2019
@vatsalmevada vatsalmevada deleted the SNAP-3268 branch December 11, 2019 16:38
sumwale pushed a commit to sumwale/spark that referenced this pull request Nov 5, 2020
…Trigger object (TIBCOSoftware#194)

As part of recent structured streaming UI, we introduced a new field for
`Trigger` in `QueryStartedEvent`. This field was added to retrieve the configured
trigger interval which can be displayed on UI on one of the charts.

Since `org.apache.spark.sql.streaming.Trigger` is a trait, JSON deserialization
of the same will require custom deserialization logic. Writing the same will be
overkill as ultimately the `Trigger` object has only one implementation as
of now which `ProcessingTime` and all `ProcessingTime` contains is trigger
interval which of `Long` type. Hence instead of passing the whole object as
part of the event, we are now passing only the trigger interval.
sumwale pushed a commit that referenced this pull request Jul 11, 2021
…Trigger object (#194)

As part of recent structured streaming UI, we introduced a new field for
`Trigger` in `QueryStartedEvent`. This field was added to retrieve the configured
trigger interval which can be displayed on UI on one of the charts.

Since `org.apache.spark.sql.streaming.Trigger` is a trait, JSON deserialization
of the same will require custom deserialization logic. Writing the same will be
overkill as ultimately the `Trigger` object has only one implementation as
of now which `ProcessingTime` and all `ProcessingTime` contains is trigger
interval which of `Long` type. Hence instead of passing the whole object as
part of the event, we are now passing only the trigger interval.
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