[
https://issues.apache.org/jira/browse/PARQUET-2035?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17333088#comment-17333088
]
Maxim Kolesnikov commented on PARQUET-2035:
-------------------------------------------
Ah, didn't notice that you already have {{parquet-jackson}}.
Taking into account that shading fastutil where it is not needed [already led
to some
issues|https://issues.apache.org/jira/browse/PARQUET-1529?focusedCommentId=17096937&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-17096937]
reported by [~fokko] in the past, I'd not mix shaded fastutil with jackson
together, to avoid replicating the size related issue. In my opinion adding
another module for fastutil will be fine. As there are just two such libraries
that should not be a big maintenance overhead. Later on, if more libraries need
to be shaded (I hope not), this approach may be reviewed accordingly.
> Java module import error due to shaded package
> shaded.parquet.it.unimi.dsi.fastutil
> -----------------------------------------------------------------------------------
>
> Key: PARQUET-2035
> URL: https://issues.apache.org/jira/browse/PARQUET-2035
> Project: Parquet
> Issue Type: Bug
> Components: parquet-avro
> Affects Versions: 1.12.0, 1.11.1
> Reporter: Maxim Kolesnikov
> Priority: Major
> Attachments: parquet-example.zip
>
>
> *Description:*
> Due to collision of shaded packages
> {code:java}
> shaded.parquet.it.unimi.dsi.fastutil{code}
> in
> {code:java}
> org.apache.parquet:parquet-avro{code}
> and
> {code:java}
> org.apache.parquet:parquet-column{code}
> it is not possible to use both these dependencies within a modularized java
> project at the same time.
>
>
> *How to reproduce:*
> * create a maven project with dependency
> org.apache.parquet:parquet-avro:1.11.1
> * declare java module that requires both parquet.avro and parquet.column
> * run
> {code:java}
> mvn compile{code}
>
> *Expected behaviour:*
> Project should compile without errors.
>
> *Actual behaviour:*
> Project fails with compilation errors:
>
> {code:java}
> [ERROR] the unnamed module reads package shaded.parquet.it.unimi.dsi.fastutil
> from both parquet.column and parquet.avro
> ...{code}
>
>
> *Reproducible example* (same code as in the attached zip file):
> https://github.com/xCASx/parquet-example
--
This message was sent by Atlassian Jira
(v8.3.4#803005)