ClickHouse / ClickHouse/clickhouse-java

Duplicate Classes while importing clickhouse-jdbc

Open
#2,474 1 comment 0 reactions 0 assignees View on GitHub
area:packaging bug
Dominant language
Java
Stars
1.6k
Forks
636
Avg merge
2d 23h
Merged PRs (30d)
29

Description

## Description
While importing in maven project only this dependency

com.clickhouse
clickhouse-jdbc
0.7.2
http

I receive the following warnings:

[WARNING] Found duplicate and different classes in [com.clickhouse:clickhouse-data:0.7.2, com.clickhouse:clickhouse-jdbc:0.7.2:jar:http, com.clickhouse:jdbc-v2:0.7.2]:
[WARNING] com.clickhouse.data.stream.Lz4InputStream
[WARNING] com.clickhouse.data.stream.Lz4OutputStream

### Expected Behaviour
No duplicated classes must be found

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Maven import with com.clickhouse:clickhouse-jdbc:0.7.2 using the http classifier, then inspect the resolved dependencies for clickhouse-data and jdbc-v2. Focus on the duplicate classes com.clickhouse.data.stream.Lz4InputStream and Lz4OutputStream. Done means the dependency no longer produces duplicate-class warnings.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.