apache / apache/parquet-java

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

Offen
#2,608 17 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Component: Avro Component: Parquet Priority: Major Type: bug
Vorherrschende Sprache
Java
Sterne
3.1k
Forks
1.6k
Ø Merge
3 T. 12 Std.
Gemergte PRs (30 T.)
33

Beschreibung

**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.*

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Beginne mit dem verknüpften parquet-example Maven-Projekt und führe mvn compile mit beiden Modulanforderungen aus. Vergleiche das von parquet-avro und parquet-column erzeugte Shaded-Paket; abgeschlossen ist die Aufgabe, wenn das modulare Projekt ohne den split-package-Fehler kompiliert.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
build-system
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.