?????????????? | {"ip":"10.125.8.111","data":"????: -- 14:28:05.111 -- <44.15050>1D971BEEF138370\nAction=100\nMobileCode=13304431188\nReqno=380\niPhoneKey=1681799375200\nCFrom=dbzq.android\nTFrom=newandroid\nGateWayIp=124.234.116.150\nHandleSerialNo=cccf7olmuqbAABLOgVTU/3lQOcAAAClAAAABQAAAP9ZAACQHAAAAAAAAAAAAACQHAAAdAAAAGJIZDhiSzVUQUFBVWVOaFNVLzNsUU5ZQUFBREhEd0FBQXdBQ0FBa0FBQUNRSEFBQUFBQUFBQUFBQUFDUUhBQUFJZ0FBQUFGSUFBQUFBQUZTQXdBQUFETTRNQUZKRFFBQUFERTJPREUzT1Rrek56VXlNREFBAA==\nGateWayPort=41912\nclientversion=1.01.110\ntztreqfrom=android.webview\nReqlinkType=2\nnewindex=1\nReqTag=96756351=9=2=0.2.134739166=1681799375201\ntztsno=b8e947dc8498edfb9c7605f290fc13ba\npartenerName=zzinfo\nuniqueid=1C0FF05B-D047-45B4-8212-6AD8627DBA4F\nEmptyFields=Token&\ntztSDKType=0\n"}
{"ip":"10.125.8.139","data":"????: -- 14:28:05.111 -- <44.15050>1D971BEEF138370\nAction=100\nMobileCode=13304431188\nReqno=380\niPhoneKey=1681799375200\nCFrom=dbzq.android\nTFrom=newandroid\nGateWayIp=124.234.116.150\nHandleSerialNo=cccf7olmuqbAABLOgVTU/3lQOcAAAClAAAABQAAAP9ZAACQHAAAAAAAAAAAAACQHAAAdAAAAGJIZDhiSzVUQUFBVWVOaFNVLzNsUU5ZQUFBREhEd0FBQXdBQ0FBa0FBQUNRSEFBQUFBQUFBQUFBQUFDUUhBQUFJZ0FBQUFGSUFBQUFBQUZTQXdBQUFETTRNQUZKRFFBQUFERTJPREUzT1Rrek56VXlNREFBAA==\nGateWayPort=41912\nclientversion=1.01.110\ntztreqfrom=android.webview\nReqlinkType=2\nnewindex=1\nReqTag=96756351=9=2=0.2.134739166=1681799375201\ntztsno=b8e947dc8498edfb9c7605f290fc13ba\npartenerName=zzinfo\nuniqueid=1C0FF05B-D047-45B4-8212-6AD8627DBA4F\nEmptyFields=Token&\ntztSDKType=0\n"} | | | ???????? | | ccc0606fight...@163.com | ---- ???????????? ---- | ?????? | L Y<531599...@qq.com.INVALID> | | ???????? | 2023??5??23?? 01:25 | | ?????? | user-zh<user-zh@flink.apache.org> | | ???? | ??????table api????rowtime?????? | HI?????????????????????????????????????????????????????????????????????????????????? DataStream<MidInfo> midStream = tableEnv.toAppendStream(result, MidInfo.class); ????????????DataStream??????????????????????????????????????midStream??????????result????????????MidInfo.class????????????????????????????????????????????????????DataStream??????????Table??????????????DataStream???????????????????????????? DataStream<MidInfo> midStream = tableEnv.toAppendStream(result, MidInfo.class).assignTimestampsAndWatermarks(WatermarkStrategy.<MidInfo>forBoundedOutOfOrderness(Duration.ofSeconds(3L)).withTimestampAssigner((element,recordTimestamp)-> element.getEventTime())); ????????????????????????????????????????MapFunction?????????????????????????????????????????????????????????????????????????????????????????? L Y 531599...@qq.com L Y 531599...@qq.com ------------------ ???????? ------------------ ??????: "user-zh" <ccc0606fight...@163.com>; ????????: 2023??5??22??(??????) ????9:26 ??????: "user-zh"<user-zh@flink.apache.org>; ????: "user-zh"<user-zh@flink.apache.org>; ????: ??????table api????rowtime?????? flink????????????1.14 | | ???????? | | ccc0606fight...@163.com | ---- ???????????? ---- | ?????? | L Y<531599...@qq.com.INVALID> | | ???????? | 2023??5??20?? 01:10 | | ?????? | user-zh<user-zh@flink.apache.org> | | ???? | ??????table api????rowtime?????? | HI?????????? ??????????????????midStream??????????????????????????????????????????????midStream???????????????????????????????????????????????????????????????????????? ?????? SingleOutputStreamOperator<Event&gt; eventStream = env .fromElements( .............. ).assignTimestampsAndWatermarks( WatermarkStrategy.<Event&gt;forMonotonousTimestamps() .withTimestampAssigner( new SerializableTimestampAssigner<Event&gt;() { @Override public long extractTimestamp(Event event, long l) { return event.timestamp; } } ) ); ??????????????????????midStream????????????????flink?????? LY 531599...@qq.com L&nbsp;Y 531599...@qq.com &nbsp; ------------------&nbsp;????????&nbsp;------------------ ??????: "user-zh" <ccc0606fight...@163.com&gt;; ????????:&nbsp;2023??5??17??(??????) ????9:28 ??????:&nbsp;"user-zh"<user-zh@flink.apache.org&gt;; ????:&nbsp;table api????rowtime?????? ???????????????????????????? | Table midTable = tableEnv.fromDataStream(midStream, $("funcId"), $("funcIdDesc"), $("serverIp"), $("maxTime"), $("minTime"), $("pk"), $("eventTime").rowtime());&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tableEnv.createTemporaryView("midTable1",midTable); Table resulTable = tableEnv.sqlQuery("SELECT funcId,funcIdDesc,serverIp,pk,min(maxTime-minTime) as minTime\n" +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "FROM TABLE(CUMULATE(\n" +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " TABLE midTable1"+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //" TABLE "+ midTable +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " , DESCRIPTOR(eventTime)\n" +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " , INTERVAL '60' SECOND\n" +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " , INTERVAL '1' DAY))\n" +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " GROUP BY window_start,window_end,funcId,funcIdDesc,serverIp,pk"); | ??????????????????????????????????????eventTime??rowtime,????????????????sqlQuery??????????????????????Rowtime timestamp is not defined. Please make sure that a proper TimestampAssigner is defined and the stream environment uses the EventTime time characteristic ?????????????????????????? | | ???????? | | ccc0606fight...@163.com |