Comments (8)
To me it looks like a bug in Hue.
from trino.
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.
@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.
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.
Should information_schema.columns.COMMENT be renamed to COLUMN_COMMENT?
both exist now. let me close this
from trino.
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.
@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.
@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)
- Major issue: After changing the table field type from bigint to decimal (28,5), the data in the historical partition table cannot be queried HOT 1
- Flaky TestHiveTransactionalTable.testBucketedUnpartitionedDelete HOT 2
- Trino has a bug of Merge Statement from Iceberg Catalog HOT 2
- Fix join pushdown in SQL server connector
- How to find unsed table/view in trino
- Some Redshift tests are broken
- Test `TestDistributedEngineOnlyQueries.testAssignUniqueId` fails: incorrect results HOT 1
- Planning is not deterministic HOT 3
- java.lang.NoClassDefFoundError: io/trino/plugin/base/metrics/LongCount HOT 2
- Flaky test `TestHiveConnectorTest.testCreateTableWithEmptyBucketsAndCompressionCodec`: "Target directory for table already exists" HOT 1
- Table has exceeded max number of active streams error happens in BigQuery connector
- "Table has exceeded max number of active streams" error happens in BigQuery connector
- Deployment trino-server-445 NullPointerException HOT 1
- Proposal to Optimize Trino Hive Metastore Query Latency by Caching createMetastoreClient()
- Unable to insert a large volume of data into S3 bucket
- Pinot Connector Single Quote Escape Issue
- Function with LOOP fails with "Compiler failed [...] break target does not exist" when run on worker HOT 2
- [Trino JDBC] NoClassDefFoundError io/opentelemetry/semconv/SemanticAttributes HOT 1
- create table parquet external_location no values HOT 2
- Flaky test TestMongoConnectorTest.testInsertRowConcurrently
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trino.