下面是我写的 JPQL 查询,但它不起作用。我收到以下错误:NoViableAltException:意外令牌:最大
有人可以指出以下查询中的错误吗?
SELECT new com.chp.cef.api.dto.EventSearchDTO(ec.eventName, e.eventKey, e.eventTime, CAST(e.messagePayload AS string), epl.status, epl.statusReason, CAST(epl.processLogPayload AS string), ec.source, " +
"epl.eventProcessLogKey, epl.eventReceivedTime, epl.eventProcessedTime) FROM Event e " +
"left join (SELECT inEpl.eventKey, max(inEpl.eventReceivedTime), inEpl.eventProcessLogKey, inEpl.status, inEpl.statusReason, inEpl.processLogPayload, inEpl.eventProcessedTime" +
"FROM EventProcessLog inEpl GROUP BY inEpl.eventKey) epl ON e.eventKey = epl.eventKey " +
"left join EventConfiguration ec ON e.eventConfigKey = ec.eventConfigurationKey WHERE ec.eventName = coalesce(:eventName, ec.eventName) " +
"AND epl.status = coalesce(:eventStatus, epl.status) AND e.eventTime >= :eventStartTime AND e.eventTime <= :eventEndTime