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.

Unable to connect to Presto due missing TABLE_COMEMNT column

See original GitHub issue

Today, I got Hue working with the Presto JDBC drive – yay! Anyway, as soon as I fire up Hue and click on a database, I see that Hue executes a query to the Hive catalog but this error occurs:

The query that gets submitted to Presto:

SELECT TABLE_NAME, TABLE_COMMENT FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA=x

Here’s the error in Presto:

An error occurred while calling o11.execute. : java.sql.SQLException: Query failed (#20190204_183807_00002_k4e8j):

line 1:20: Column 'table_comment' cannot be resolved

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
romainrcommented, Feb 14, 2019

+1 and thanks for fixing it

0reactions
piperckcommented, Feb 15, 2019

goods job

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to show comment in presto after creating a table?
Just write: SHOW CREATE TABLE some_catalog.some_schema.tmp. This will show you pretty much the same command you wrote when creating the ...
Read more >
Missing columns in PrestoSQL - Josip Pojatina
One of the first issues when starting to use PrestoSQL distributed query engine is related to missing columns of certain data types, especially...
Read more >
ALTER TABLE — Presto 0.278.1 Documentation
ALTER TABLE [ IF EXISTS ] name DROP COLUMN column_name ALTER TABLE [ IF EXISTS ] ... clause causes the error to be...
Read more >
Hive connector — Trino 403 Documentation
Ignore partitions when the file system location does not exist rather than failing the query. This skips data that may be expected to...
Read more >
Teaching new Presto performance tricks to the Old-School DBA
1. Only specify the columns you need · 2. Consider the cardinality within GROUP BY · 3. Use LIMIT with ORDER BY ·...
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