Giter Club home page Giter Club logo

Comments (4)

ImTangYun avatar ImTangYun commented on June 12, 2024

From document I know that,now coral support:
Hive to Trino
Hive to Spark
Trino to Spark

Spark to other is not support, but many company mainly use sparksql, it may be very useful to to support sparksql to others

from coral.

wmoustafa avatar wmoustafa commented on June 12, 2024

Spark SQL is compatible with Hive QL so using the coral-hive module for Spark queries can be a good start. Is there a specific difference between Spark SQL and Hive QL that you want to see supported?

from coral.

ImTangYun avatar ImTangYun commented on June 12, 2024

Spark SQL is compatible with Hive QL so using the coral-hive module for Spark queries can be a good start. Is there a specific difference between Spark SQL and Hive QL that you want to see supported?

case 1:
SELECT
event.event_info [ 'key1' ]
FROM
test.test1
limit 1
with event an complex type: event struct<event_info map<string, string>>
get error:
org.apache.calcite.runtime.CalciteContextException: At line 0, column 0: Table 'event' not found

case 2:
SELECT
uid,
percentile_approx(score, ARRAY(0.5, 0.9, 0.99)) AS pa
FROM
tmp.test2
GROUP BY
uid
ORDER BY
uid ASC
get error:
CalciteContextException: At line 0, column 0: Expression 'score' is not being grouped

case 3:
create table if not exists test.test4 as
select * from test.test3
get error:
Unhandled Hive AST token 665 TOK_CREATETABLE

case 4:
select location,count(1) from tmp.room
where location = 1
group by 1
get error:
At line 0, column 0: Expression 'location' is not being grouped

There also have some other error

from coral.

ebyhr avatar ebyhr commented on June 12, 2024

Spark SQL is compatible with Hive QL

I don't think it's fully compatible. For instance, Spark's raw string literal r'...' and ILIKE ar unsupported in Hive.

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.