GithubHelp home page GithubHelp logo

Comments (4)

wajda avatar wajda commented on August 17, 2024 1

Thanks @Zejnilovic for reporting it

from spline-spark-agent.

wajda avatar wajda commented on August 17, 2024

The compile scope dependency tree for bundle-3.3:

image

and for the bundle-2.4 for comparison:

image

The only spotted difference - the commons-configuration:1.6 was missing in 2.4 but present in 3.3 due to the difference in Spark provided environment. This dependency is a part of Spline public API (appears in Plugin API), so it has to stay unshaded anyway.

The graph-core contains packages scala.collection and scalax which makes it dangerous to relocate due to too broad pattern.

The absa-shaded is already shaded under za.co.absa.shaded

The rest dependencies are to be relocated to za.co.absa.spline.shaded

from spline-spark-agent.

wajda avatar wajda commented on August 17, 2024

As a result of a further discussion with Adam we decided to leave scalaj.http library unshaded, The reasons were:

  1. Even though it is not officially a part of Spline Agent public API, but many people's work could depend on it because they could develop extensions by coping code from Spline embedded plugins, modify it and make it theirs, and thus inherit some internal dependencies used in our internal plugins. Scalaj.http is among of them.
  2. Scalaj.http has been stable for a long time and is now deprecated, so we expect really small collision probability on that library.

from spline-spark-agent.

wajda avatar wajda commented on August 17, 2024

We also discussed another option - in addition to every agent bundle jar produce another jar with the classifier shaded (e.g spark-3.2-spline-agent-bundle_2.12-1.2.1-shaded.jar). The difference would be that the original jar would have dependencies unshaded as before, but the new one would have them shaded. This would allow the users to decide if they want deps shaded or not depending on their use-case. The downside of this approach is that for majority of users it would be difficult to make a decision which jar to use, or their use-case might change, so the decision they make could be often wrong. So having two variants of jar publicly available could quickly lead to even more confusion around managing Spline dependencies. So in the end, we decided not to go down that route.

from spline-spark-agent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.