-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-18894][SS] Fix event time watermark delay threshold specified in months or years #16304
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
Changes from 3 commits
7fc3411
33a7d1b
8c603f4
67ad327
736c903
0a42fab
9d3175a
40c200f
b9a37bf
debc748
29f0037
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -572,6 +572,10 @@ class Dataset[T] private[sql]( | |
| val parsedDelay = | ||
| Option(CalendarInterval.fromString("interval " + delayThreshold)) | ||
| .getOrElse(throw new AnalysisException(s"Unable to parse time delay '$delayThreshold'")) | ||
| // Threshold specified in months/years is non-deterministic | ||
|
||
| if (parsedDelay.months > 0) { | ||
| throw new AnalysisException(s"Cannot specify time delay in months or years, use days instead") | ||
| } | ||
| EventTimeWatermark(UnresolvedAttribute(eventTime), parsedDelay, logicalPlan) | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
@rxin Documented as per your request
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.
hm why don't you remove this and i will send a patch for docs.