Giter Club home page Giter Club logo

Comments (2)

wmoustafa avatar wmoustafa commented on June 1, 2024

But I've requirement of converting pure (LogicalPlan -> String) to re-generate sql.

Could you please clarify what kind of logical plan representation this refers to? If you are referring to Spark logical plan string representation, we have a WIP module that converts Spark's logical plan to a RelNode representation. You can see some test cases here. This is an example where HiveQL is not the input format to Coral. Actually, in this example the metadata source is not necessarily the HMS either.

In general, the way the input logic is expressed can be decoupled from the metadata store/engine. In the current implementation there are two options for sources of metadata: the Hive Metastore, and a local file on the local file system. Other metadata sources can be added as well. All metadata sources, including HMS, can be used with HiveQL or other input languages.

from coral.

pPanda-beta avatar pPanda-beta commented on June 1, 2024

Sorry for replying so late.

I think you got my point correctly.
If my requirement is to just convert a spark's logical plan object into any kind of output sql (for example take presto / trino) then HMS or any kind of metastore is redundant.
Spark's logical plan can be analyzed and further schema can be resolved for upstreams.

The tests that you have mentioned still requires HMS (after 3 months).

converter = SparkPlanToIRRelConverter.create(hiveMscAdapter);

So wanted to know, can we independently convert spark logical plans into supported output sqls using coral? Or is it like we will always require a metadata store/engine?

from coral.

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.