Coder Social home page Coder Social logo

Improvement proposal about jgit-spark-connector HOT 4 CLOSED

src-d avatar src-d commented on May 20, 2024 1
Improvement proposal

from jgit-spark-connector.

Comments (4)

eiso avatar eiso commented on May 20, 2024

I really like this idea. And I think it's closer to what @mcuadros was thinking of as well. /cc @marnovo @campoy

from jgit-spark-connector.

marnovo avatar marnovo commented on May 20, 2024

Yes, looks more straightforward.

Two questions regarding the comparison to the current:

from sourced.engine import Engine
from pyspark.sql import SparkSession
from pyspark.sql.functions import *

spark = SparkSession.builder \
        .master("local[*]").appName("Examples") \
        .getOrCreate()

engine = Engine(spark, "/repositories")
  1. In practical terms, what is lost in terms of flexibility from the current approach?
  2. Is it more likely that abstracting this away from the user might break something under certain circumstances or make it harder to debug in case of a problem?

from jgit-spark-connector.

ajnavarro avatar ajnavarro commented on May 20, 2024

Is not possible to do the proposed API changes on the engine because, when you start a spark-shell, notebook, and so on, the spark session is provided. Because of that, we wouldn't create a new session inside the Engine wrapper, we should use the existing one.

For the other hand, use standard python console is another of the several ways that we could run the engine (JVM application, scala-shell, pyspark-shell, jupyter scala and python notebooks, zeppelin notebooks, and so on.)

If it's really important support the standard python shell right now, we can do that, but I think we already have a lot of methods to use the engine in a really simple way.

add pyspark to PYTHONPATH during installation

I think this is a really bad practice. Change environment variables during a dependency download? I don't think that is even possible using pipy.

from jgit-spark-connector.

eiso avatar eiso commented on May 20, 2024

@ajnavarro I think your argument makes sense. Closing this issue now.

from jgit-spark-connector.

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.