Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot shade Pinot jars due to invalid bytecode in Calcite dependencies #15119

Open
itschrispeck opened this issue Feb 24, 2025 · 0 comments
Open

Comments

@itschrispeck
Copy link
Collaborator

We use jarjar to shade our Pinot jars, which uses asm. When shading pinot, we get the below error

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 65536 out of bounds for length 297
        at org.objectweb.asm.ClassReader.readLabel(ClassReader.java:2695)
        at org.objectweb.asm.ClassReader.createLabel(ClassReader.java:2711)
        at org.objectweb.asm.ClassReader.readTypeAnnotations(ClassReader.java:2777)
<...>
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at com.eed3si9n.jarjar.MainUtil.runMain(MainUtil.java:39)
        at com.eed3si9n.jarjar.Main.main(Main.java:50)

The root cause is that recent calcite versions were released with invalid bytecode, which is documented here and reported here. We started seeing this issue with the 1.36.0 upgrade, and it's persisted since.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants