Hi, I try to create a tumbling time window of 2 rows each in Flink Java. This must based on the dateTime (TimeStamp3 datatype) or unixDateTime(BIGINT datatype) column. I've added below the code of two different code versions. The error messages I get I placed above the code.
When I print the datatypes of the
|
Hi A.V., //Please make sure that a proper TimestampAssigner is defined and the stream environment uses the EventTime time characteristic. You need to assign Timestamp and watermarks to datastream sample data stream code DataStream<Tuple17<String, Timestamp>> lineitem = bsEnv.socketTextStream("localhost", 12347).flatMap(new Splitter2()).assignTimestampsAndWatermarks( new AscendingTimestampExtractor<Tuple2<String, Timestamp>>() { @Override public long extractAscendingTimestamp( Tuple2<String,Timestamp> inputrowtuple) { return inputrowtuple.f2.getTime(); } }); //When I run below code I get this error: Exception in thread "main" java.lang.UnsupportedOperationException: Event-time grouping windows on row intervals are currently not supported. Currently this feature is only supported for Process time, change .rowtime to .proctime in schema On Wed, Oct 23, 2019 at 1:11 PM A. V. <[hidden email]> wrote:
Regards, Manoj Kumar |
Free forum by Nabble | Edit this page |