Skip to content

Consider removing guava dependency #2788

Open

Description

@kostya-sh

guava is a large dependency but as far as I can tell it is only used in a handful of places:

https://github.com/search?q=repo%3AClickHouse%2Fclickhouse-java+com.google.common&type=code

Activity

  1. chernser commented on Mar 16, 2026

    @chernser
    Contributor

    Good day, @kostya-sh !

    We will work on this. Just need to find good alternative for fast immutable collections. Everything else we can replace.

  2. kostya-sh commented on Mar 19, 2026

    @kostya-sh
    Author

    Consider using Map.ofEntries and List.of. These methods available from Java 9.

  3. chernser commented on Mar 20, 2026

    @chernser
    Contributor

    @kostya-sh
    Thanks!
    however we have to support 1.8 for some time. :-(

  4. polyglotAI-bot commented on Nov 27, 2026

    @polyglotAI-bot
    Collaborator

    Recommendation: Keep open — change needed
    The maintainer accepted the removal. When Guava is removed, parent #2831 (the conflict with Guava 27 in Spark 3) can close too.

    • Category: Other
    • Classification: impact: none · area: Environment (Guava dependency)
    • Status on main: Not applicable — on main (8480ca001), 9 main source files of client-v2 and jdbc-v2 use Guava, and only ImmutableList, ImmutableMap, and ImmutableSet.
    • Breaking change: No — no public signature has a Guava type.
    • Duplicates / related: Related: [Perf] fixed by index perf. added using ImmutableMap #2254 — added Guava for the TableSchema lookup by column name, as a performance change.

    Analysis: client-v2 (client-v2/pom.xml:89) and jdbc-v2 (jdbc-v2/pom.xml:47) declare Guava 33.7.2. The uses are in Client.java, ValueConverters.java, SchemaUtils.java, TableSchema.java, ConnectionImpl.java, JdbcConfiguration.java, JdbcUtils.java, DatabaseMetaDataImpl.java, and ResultSetMetaDataImpl.java.

    Automated triage by Polyglot AI. A maintainer makes the final decision.

  5. added
    client
    environment
    jdbc
    on Nov 27, 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

    Labels

    clientenhancementenvironmentjdbc

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions