apache / apache/parquet-java

Java module import error due to shaded package shaded.parquet.it.unimi.dsi.fastutil

Open
#2,608 17 comments 0 reactions 0 assignees View on GitHub
Component: Avro Component: Parquet Priority: Major Type: bug
Dominant language
Java
Stars
3.1k
Forks
1.6k
Avg merge
3d 12h
Merged PRs (30d)
33

Description

**Description:**

Due to collision of shaded packages 
```java

shaded.parquet.it.unimi.dsi.fastutil
```
in 
```java

org.apache.parquet:parquet-avro
```
and 
```java

org.apache.parquet:parquet-column
```
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
```java

mvn compile
```

 

**Expected behaviour:**

Project should compile without errors.

 

**Actual behaviour:**

Project fails with compilation errors:

 
```java

[ERROR] the unnamed module reads package shaded.parquet.it.unimi.dsi.fastutil from both parquet.column and parquet.avro
...
```
 

 

**Reproducible example** (same code as in the attached zip file): https://github.com/xCASx/parquet-example

**Reporter**: [Maxim Kolesnikov](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=cas)
#### Original Issue Attachments:
- [parquet-example.zip](https://issues.apache.org/jira/secure/attachment/13024544/parquet-example.zip)

**Note**: *This issue was originally created as [PARQUET-2035](https://issues.apache.org/jira/browse/PARQUET-2035). Please see the [migration documentation](https://issues.apache.org/jira/browse/PARQUET-2502) for further details.*

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.