1.10
------------------ ???????? ------------------ ??????: "Jark Wu"<[email protected]>; ????????: 2020??5??17??(??????) ????11:42 ??????: "user-zh"<[email protected]>; ????: Re: Flink SQL???????? ?????????????????? bug???????? calcite ???????? ?????????????????? flink?? Best, Jark On Thu, 14 May 2020 at 15:30, Senior.Hu <[email protected]> wrote: > Hi All?? > &nbsp; ????FlinkSqlParserImpl.FACTORY????Flink DML SQL????????????Join with Temporal > Table????????????????LATERAL???????????????? > &nbsp; LEFT JOIN > &nbsp; &nbsp; &nbsp; &nbsp; side_room FOR SYSTEM_TIME AS OF a1.proctime as > a2 > &nbsp; &nbsp; ON > &nbsp; &nbsp; &nbsp; &nbsp; a1.rowkey_room = a2.rowkey > &nbsp; ???????????????? > &nbsp;&nbsp;LEFT JOIN LATERAL `side_room` FOR SYSTEM_TIME AS OF > `a1`.`proctime` AS `a2` ON `a1`.`rowkey_room` = `a2`.`rowkey` > &nbsp;&nbsp; > &nbsp; ??SQL??????Flink SQL?????????????????? > &nbsp; Caused by: org.apache.flink.table.api.SqlParserException: SQL parse > failed. Encountered "`side_room`" at line 7, column 19. > &nbsp; Was expecting one of: > &nbsp; &nbsp; "TABLE" ... > &nbsp; &nbsp; "(" ... > &nbsp;&nbsp; > &nbsp;????SqlParser.Config???????????? > &nbsp;private final SqlParser.Config config = SqlParser.configBuilder() > &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; > .setParserFactory(FlinkSqlParserImpl.FACTORY) > &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .setQuoting(Quoting.BACK_TICK) > &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; > .setUnquotedCasing(Casing.UNCHANGED) > &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; > .setQuotedCasing(Casing.UNCHANGED) > &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .setCaseSensitive(true) > &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .build(); > &nbsp;&nbsp; > &nbsp; ??????????????????????????????????????????????????????????????
