[ 
https://issues.apache.org/jira/browse/PARQUET-2035?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17332440#comment-17332440
 ] 

Gabor Szadovszky commented on PARQUET-2035:
-------------------------------------------

[~cas], thanks for reporting this issue.

I don't have any experience in java11 modules. Since parquet-mr is still 
targeted to java8 and there are a couple of other projects use it without any 
issue (probably not in a java11 modularized environment) I would not say this 
is a bug. I would expect to have some workarounds for the java11 modularized 
environments since it is working without modules.

Meanwhile, I am happy to help/review for any contribution to parquet-mr that 
makes it work properly for java11 modules.

> 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)

Reply via email to