Coder Social home page Coder Social logo

Comments (8)

kokosing avatar kokosing commented on May 11, 2024

To me it looks like a bug in Hue.

from trino.

ebyhr avatar ebyhr commented on May 11, 2024

By the way, information_schema.tables doesn't have a column for comment. Is it not implemented intentionally?

presto:default> select *, table_comment from hive.information_schema.tables where table_name = 'test_comment';
 table_catalog | table_schema |  table_name  | table_type | table_comment 
---------------+--------------+--------------+------------+---------------
 hive          | default      | test_comment | BASE TABLE | NULL          

Although hidden table_comment column exists, it always returns NULL.

from trino.

findepi avatar findepi commented on May 11, 2024

@ebyhr this was added in 9c9ac4e
In order to show real table comments, we would need to modify io.prestosql.metadata.MetadataListing#listTables so that it returns table names + comments.

from trino.

ebyhr avatar ebyhr commented on May 11, 2024

I see, thank you for providing the information!
Let me change listTables (and perhaps listViews also) to get the comment in COMMENT ON statement tests.

from trino.

findepi avatar findepi commented on May 11, 2024

Should information_schema.columns.COMMENT be renamed to COLUMN_COMMENT?

both exist now. let me close this

from trino.

jhjiang0 avatar jhjiang0 commented on May 11, 2024

which version could get this change, I download the newest(0.240) source, but
select * from mysql_test.information_schema.columns
there only
table_catalog | table_schema | table_name | column_name | ordinal_position | column_default | is_nullable | data_type | comment | extra_info
no one column named COLUMN_COMMENT ,
still need we change the source code ?

from trino.

findepi avatar findepi commented on May 11, 2024

@jhjiang0 The COLUMN_COMMENT column in .information_schema.columns table is available at least since Presto 320.
Note that it won't show up in SELECT * -- it is hidden, because it is non standard column (the schema of information_schema is governed by the spec).
You need explicitly select it: SELECT COLUMN_COMMENT FROM mysql_test.information_schema.columns.
Please make sure you run the latest Presto from https://prestosql.io/download.html

from trino.

jhjiang0 avatar jhjiang0 commented on May 11, 2024

@findepi thank you for providing the information! I'm download from the chinese website, maybe then don't update to latest, I will try download your latest code test this problem. thanks!

from trino.

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.