Skip to content

[client-v2] Guava library #2831

Open
0 of 1 issue completed
Open

Description

@chernser

Description

We are using Guava library for a few things. However it creates some issues at runtime. This is can be handled by using shaded version but may be we can improve something.

Activity

  1. added theissue type on Apr 17, 2026
  2. chernser commented on Apr 17, 2026

    @chernser
    ContributorAuthor

    Here is copy of the comment with information about the problem (#2816 (comment)):

    Great thank you!
    
    Just another note about running on Spark 3, JDK 8: spark dustribution depend on older version of guava - guava-27.0-jre.jar.
    The clickhouse-java uses just few methods from this library newer version, e.g. ImmutableMap.builder.buildKeepingLast in com.clickhouse.client.api.metadata.TableSchema (there is a user suggestion to get rid of guava at all :) )
    So clickhouse-java version 0.9.x usage still impossible on Spark 3, JDK 8 - exception due to buildKeepingLast is missing. Using newer guava as a classpath library with user's spark job is dangerous, cause Spark itself rely on older version.
    
    I'd like to suggest a change - incorporate a method from recent guava into clickhouse-java, this way clickhouse-java could rely/depend on guava 27 and would be capable to run on Spark 3, JDK8.
    The method to borrow is ImmutableMap#lastEntryForEachKey, the changed TableSchema is attached
    
  3. added this to the 0.11.0 milestone on Jun 24, 2026
  4. modified the milestones: 0.11.0, 0.12.0 on Sep 23, 2026
  5. removed this from the 0.12.0 milestone on Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions