-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-6517] [table] Support multiple consecutive windows #3897
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
Conversation
fhueske
left a comment
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.
Hi @twalthr,
looks very good. Just had minor comments. +1 to merge otherwise.
| override private[flink] def validateInput(): ValidationResult = { | ||
| child match { | ||
| case WindowReference(_, Some(tpe)) if !isRowtimeIndicatorType(tpe) => | ||
| ValidationFailure("A proctime window can not guarantee a rowtime attribute.") |
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.
-> "A proctime window cannot provide a rowtime attribute"?
| } | ||
|
|
||
| private[flink] def toNamedWindowProperty(name: String)(implicit relBuilder: RelBuilder) | ||
| def toNamedWindowProperty(name: String) |
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.
define in one line?
| import org.apache.flink.table.utils.TableTestBase | ||
| import org.apache.flink.table.utils.TableTestUtil._ | ||
| import org.junit.Test | ||
| import org.junit.{Ignore, Test} |
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.
Ignore is unused
| import org.apache.flink.types.Row | ||
| import org.junit.Assert._ | ||
| import org.junit.Test | ||
| import org.junit.{Ignore, Test} |
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.
Ignore is unused
|
Thanks for the review @fhueske. I will merge this... |
This PR adds support for multiple consecutive windows for the Table API. SQL requires additional group auxiliary functions. I will open a followup issue for that.