[GitHub] flink issue #4530: [FLINK-7245] [stream] Support holding back watermarks wit...

2017-08-29 Thread xccui
Github user xccui commented on the issue:

https://github.com/apache/flink/pull/4530
  
I totally understand the choice, @fhueske 😄 
Thanks for the refactoring. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] flink issue #4530: [FLINK-7245] [stream] Support holding back watermarks wit...

2017-08-29 Thread fhueske
Github user fhueske commented on the issue:

https://github.com/apache/flink/pull/4530
  
You're right @xccui, this is a trade off. 

I thought about this again and agree with @aljoscha that it would be better 
to avoid the additional method call. The `processWatermark()` method is called 
many times in every DataStream program and the duplicated code are less than 10 
lines of code in 4 classes.

I will do the refactoring and merge this PR. 

Thanks, Fabian


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] flink issue #4530: [FLINK-7245] [stream] Support holding back watermarks wit...

2017-08-18 Thread xccui
Github user xccui commented on the issue:

https://github.com/apache/flink/pull/4530
  
Thanks for the comment, @aljoscha. IMO, making the `timeServiceManager` 
protected indeed will minimise the impact on `AbstractStreamOperator`, while 
that may introduce duplicated codes in the subclasses. We make some trade-offs 
here.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] flink issue #4530: [FLINK-7245] [stream] Support holding back watermarks wit...

2017-08-18 Thread aljoscha
Github user aljoscha commented on the issue:

https://github.com/apache/flink/pull/4530
  
I think the approach is OK, though I personally would have preferred to 
make the instance variable protected and override `processWatermark()` to 
minimise impact on `AbstractStreamOperator`, which now has an extra method 
call. (though that will probably be inlined)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] flink issue #4530: [FLINK-7245] [stream] Support holding back watermarks wit...

2017-08-18 Thread fhueske
Github user fhueske commented on the issue:

https://github.com/apache/flink/pull/4530
  
I see, didn't consider the private timeServiceManager. Maybe this is the 
best approach then. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] flink issue #4530: [FLINK-7245] [stream] Support holding back watermarks wit...

2017-08-17 Thread xccui
Github user xccui commented on the issue:

https://github.com/apache/flink/pull/4530
  
Thanks for the comments @fhueske. I will pay more attention to the coding 
style. 

Actually, there are many ways to implement this feature. At first, I planed 
to override the `processWatermark` method in the sub-class. However, the 
instance variable `timeServiceManager` needed is declared as private. I'm not 
sure if this can be changed. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] flink issue #4530: [FLINK-7245] [stream] Support holding back watermarks wit...

2017-08-15 Thread wuchong
Github user wuchong commented on the issue:

https://github.com/apache/flink/pull/4530
  
I'm fine with the changes. +1 to merge


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] flink issue #4530: [FLINK-7245] [stream] Support holding back watermarks wit...

2017-08-14 Thread xccui
Github user xccui commented on the issue:

https://github.com/apache/flink/pull/4530
  
@fhueske Yes, the plural is better. I should have noticed that before. 
This PR is updated with the new package name and an extra delay parameter 
added to the co-operator.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] flink issue #4530: [FLINK-7245] [stream] Support holding back watermarks wit...

2017-08-14 Thread fhueske
Github user fhueske commented on the issue:

https://github.com/apache/flink/pull/4530
  
Good proposal @xccui! I'd prefer the plural: 
`org.apache.flink.table.runtime.operators`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] flink issue #4530: [FLINK-7245] [stream] Support holding back watermarks wit...

2017-08-14 Thread xccui
Github user xccui commented on the issue:

https://github.com/apache/flink/pull/4530
  
Thanks for the suggestion, @aljoscha. Do you think it's appropriate to add 
a new package `org.apache.flink.table.runtime.operator`?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] flink issue #4530: [FLINK-7245] [stream] Support holding back watermarks wit...

2017-08-14 Thread aljoscha
Github user aljoscha commented on the issue:

https://github.com/apache/flink/pull/4530
  
I think the new operators can go into the Table API packages. They are not 
usable from the public `DataStream API`.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---