Open apoorvam opened 8 months ago
cc @imjalpreet
@pratyakshsharma @imjalpreet Can you please let me know if antlr4-runtime library upgrade will be planned soon? This would unblock all the users using presto along with Spring Boot 3.x.
I compiled presto-parser locally with antlr4-runtime version v4.13.0 and it works fine without issues.
@apoorvam this is not planned. Would you like to raise a PR which bumps the version?
Will send in a PR
@tdcmeehan It looks like this new version of antlr has a minimum version of jdk 11 and that's causing the CI checks to fail. Do you think there is a way I can get around this(updating only in parser)?
Locally I have higher version of java and building presto-parser
module works fine with it.
https://github.com/antlr/antlr4/releases/tag/4.10
With Spring boot 3.x, Hibernate v6.4.4 uses antlr4-runtime version 4.13.0 as dependency. Since presto-parser v0.285 uses antlr4-runtime 4.7.1, when presto-parser maven dependency is used in a spring project with hibernate, it is not compatible.
I'm unable to work around this problem by forcing specific dependency versions. When I remove antlr4-runtime dep from presto and use the one from hibernate, I get error as below:
And when I use antlr4-runtime v4.7.1 that presto-parser uses, hibernate fails to initialize.
Expected Behavior or Use Case
Presto-parser is usable in projects along with Spring/Hibernate 6. A new version of presto-parser released with antl4-runtime 4.13.0 thats compatible with Hibernate 6. (Is this already planned?)
Presto Component, Service, or Connector
Parser
This seems similar to issues in these other unrelated tools like: https://github.com/graphql-java-kickstart/graphql-java-tools/issues/767 https://github.com/espertechinc/esper/issues/278. It also makes sense to upgrade to keep them up-to-date and also for its better performance.