???????????? blinkSQL??????????????????watermark????????????????????checkpoint????????????????????????????flinkSQL????????????????????????????????????????blinkSQL??????????????????????
------------------ ???????? ------------------ ??????: "LakeShen"<[email protected]>; ????????: 2019??9??12??(??????) ????4:18 ??????: "user-zh"<[email protected]>; ????: Re: blinkSQL????????????????????state?? Hi ????, * ??*????????????watermark???????????????? ??????????????????????????????????????????????????????checkpoint ?????????????????????????? ???? <[email protected]> ??2019??9??12?????? ????2:35?????? > ???????????????????????????????????? > > > &nbsp; &nbsp; tableEnv.registerDataStream("testCountTable", > waterMarkStream, 'curuserid,'timelong,'rowtime.rowtime) > &nbsp; &nbsp;&nbsp; > &nbsp; &nbsp; val result = tableEnv.sqlQuery(s"SELECT COUNT(0) as > pv,COUNT(distinct curuserid)" + > &nbsp; &nbsp; &nbsp; s" as uv,TUMBLE_END(rowtime, INTERVAL '10' MINUTE) > FROM testCountTable GROUP BY TUMBLE(rowtime, INTERVAL '10' MINUTE)") > > > &nbsp; &nbsp; val dsRow: DataStream[Row] = > tableEnv.toAppendStream[Row](result) > > > &nbsp; &nbsp; val data=dsRow.map(w =&gt; { > &nbsp; &nbsp; &nbsp; val StrArrary = w.toString.split(",") > &nbsp; &nbsp; &nbsp; val > str="{\"pv\":"+"\""+StrArrary(0)+"\""+",\"uv\":"+"\""+StrArrary(1)+"\""+",\"rowtime\":"+"\""+StrArrary(2)+"\""+"}" > &nbsp; &nbsp; &nbsp; str > &nbsp; &nbsp; }) > &nbsp; &nbsp; data.print() > > > > > > ------------------&nbsp;????????&nbsp;------------------ > ??????:&nbsp;"Jark Wu"<[email protected]&gt;; > ????????:&nbsp;2019??9??12??(??????) ????12:51 > ??????:&nbsp;"user-zh"<[email protected]&gt;; > > ????:&nbsp;Re: blinkSQL????????????????????state?? > > > > Hi?? > ???????? SQL ???? > > blink sql ?? window ?????????????????????? > > &gt; ?? 2019??9??11????18:56?????? <[email protected]&gt; ?????? > &gt; > &gt; ?????????????? > &gt; ??????????????flink1.9??????blink > SQL????????????????????state????????????FSStateBackend??????????State????????????????????????????????????state????blink????????????????????????state??????????????????????????????1.9??flinkSQL????????????????????
