apache / apache/parquet-java

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

オープン
#2,608 コメント 17 件 リアクション 0 件 担当者 0 名 GitHub で見る
Component: Avro Component: Parquet Priority: Major Type: bug
主要言語
Java
スター
3.1k
フォーク
1.6k
平均マージ
3日 12時間
マージ済み PR(30日)
33

説明

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

リンクされている parquet-example Maven プロジェクトから始め、両方のモジュール要件を指定して mvn compile を実行します。parquet-avro と parquet-column によって生成される shaded パッケージを比較します。モジュールプロジェクトが split-package エラーなしでコンパイルできれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
build-system
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。