question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

we had support most hive sql syntax, is it possible to commit to trino?

See original GitHub issue

for example: select ‘data’ equals select “data” and select `data` equls select data in hive but select “data” equals select data in presto syntax syntax1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:18 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
kokosingcommented, Dec 22, 2021

Conceptually Trino SQL and Hive SQL are way different. For example notice that Hive does not have a concept of catalogs.

I think you it would be better to have a proxy/gateway that would take care of SQL translation for you. So instead of going to Trino, user would connect to something else which would translate SQL and then query Trino. So this would be a different layer and so different project I guess.

0reactions
bitsondatadevcommented, Nov 2, 2022

👋 @ImTangYun - this issue has drawbacks that don’t align with our preferred approach, so we’re not going to proceed with this implementation. If you’d like to continue the discussion on this at any point in the future, feel free to re-open and chime in.

See: https://github.com/trinodb/trino/pull/10379#issuecomment-1301060587

Read more comments on GitHub >

github_iconTop Results From Across the Web

Migrating from Hive — Trino 403 Documentation
Trino uses ANSI SQL syntax and semantics, whereas Hive uses a language similar to SQL called HiveQL which is loosely modeled after MySQL...
Read more >
Hive ACID and transactional tables' support in Presto - Trino
In this blog post we cover the concepts of Hive ACID and transactional tables along with the changes done in Presto to support...
Read more >
SELECT — Trino 403 Documentation
This syntax allows users to perform analysis that requires aggregation on multiple sets of columns in a single query. Complex grouping operations do...
Read more >
Supporting DELETE and UPDATE — Trino 403 Documentation
The Trino engine provides APIs to support row-level SQL DELETE and UPDATE . To implement DELETE or UPDATE , a connector must layer...
Read more >
Hive connector — Trino 403 Documentation
Trino only uses the first two components: the data and the metadata. It does not use HiveQL or any part of Hive's execution...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found