Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNOW-880621: Jar size of snowflake-jdbc-3.14.0 exceed 65MB #1491

Closed
Komdosh opened this issue Aug 1, 2023 · 5 comments
Closed

SNOW-880621: Jar size of snowflake-jdbc-3.14.0 exceed 65MB #1491

Komdosh opened this issue Aug 1, 2023 · 5 comments
Labels

Comments

@Komdosh
Copy link
Contributor

Komdosh commented Aug 1, 2023

Please answer these questions before submitting your issue.
In order to accurately debug the issue this information is required. Thanks!

  1. What version of JDBC driver are you using?
  • 3.14.0
  1. What operating system and processor architecture are you using?
  • MacOS M1 Max
  1. What version of Java are you using?
  • 17
  1. What did you do?
  • update to snowflake-jdbc-3.14.0.jar from 3.13.33
  1. What did you expect to see?
  • snowflake-jdbc may be smaller
  1. Can you set logging to DEBUG and collect the logs?

    • no logs needed
  2. What is your Snowflake account identifier, if any? (Optional)

3.13.33 size 31.9 MB https://mvnrepository.com/artifact/net.snowflake/snowflake-jdbc/3.13.33
3.14.0 size 66.2 MB https://mvnrepository.com/artifact/net.snowflake/snowflake-jdbc/3.14.0

Do you really need to include so many libraries for the dependencies to work correctly?

@Komdosh Komdosh added the bug label Aug 1, 2023
@github-actions github-actions bot changed the title Jar size of snowflake-jdbc-3.14.0 exceed 65MB SNOW-880621: Jar size of snowflake-jdbc-3.14.0 exceed 65MB Aug 1, 2023
@sfc-gh-skumbham
Copy link
Contributor

@Komdosh Snowflake jdbc jar is a shaded jar that includes all the dependencies. The increase in the jar size doesn't directly belong to the code owned by the Snowflake. It is because of shading a dependent library used by snowflake-jdbc. As part of security updates in this pr: d15c67c, we upgraded a few dependencies. One of the dependencies is adding a lot of files to the JDBC jar.

@Komdosh
Copy link
Contributor Author

Komdosh commented Aug 30, 2023

@sfc-gh-skumbham Thank you for your response. Is there another jar where I can select only what I need without components that my app doesn't use?

@jtjeferreira
Copy link
Contributor

@Komdosh unfortunately there isn't

@sfc-gh-spanaite
Copy link
Contributor

Closing as an answer has been provided.

@jtjeferreira
Copy link
Contributor

@sfc-gh-spanaite shouldnt #174 be reopened then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants