gpt4 book ai didi

java - 异能引擎:Can't I use '<' or '>' after 'inner join on' ?

转载 作者:行者123 更新时间:2023-12-01 17:21:08 25 4
gpt4 key购买 nike

英超联赛如下:

   select * from EventObject(name='abc')#win(2 min) e1 inner join EventObject(name='bcd')#win(2 min) e2 on e1.length > e2.length

但是,有一个错误:

Exception in thread "main" com.espertech.esper.client.EPStatementSyntaxException: Incorrect syntax near '>' expecting an equals '=' but found a greater then '>' at line 1 column 114, please check the outer join within the from clause [select * from EventObject(name='abc')#win(2 min) e1 inner join EventObject(name='bcd')#win(2 min) e2 on e1.length > e2.length ]
at com.espertech.esper.epl.parse.ExceptionConvertor.convertStatement(ExceptionConvertor.java:46)
at com.espertech.esper.epl.parse.ParseHelper.parse(ParseHelper.java:111)
at com.espertech.esper.core.service.EPAdministratorHelper.compileEPL(EPAdministratorHelper.java:84)
at com.espertech.esper.core.service.EPAdministratorHelper.compileEPL(EPAdministratorHelper.java:67)
at com.espertech.esper.core.service.EPAdministratorImpl.createEPLStmt(EPAdministratorImpl.java:104)
at com.espertech.esper.core.service.EPAdministratorImpl.createEPL(EPAdministratorImpl.java:63)
at esper.demo.HelloEsper5.main(HelloEsper5.java:27)

最佳答案

on 子句只允许等于“=”。但是您可以将其保留并使用“哪里”或“拥有”。

关于java - 异能引擎:Can't I use '<' or '>' after 'inner join on' ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61287675/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com