| 定位 | 多数据源联邦查询,不存储数据 |
|---|---|
| catalog | hive / iceberg / mysql 等连接器命名空间 |
| 调用方式 | trino CLI、JDBC、BI 工具 |
CLI 查询示例
CLI 查询示例
trino --server http://trino-coordinator:8080 \
--catalog hive --schema dwd \
--execute "SELECT channel, count(*) FROM orders WHERE dt='2026-10-11' GROUP BY channel;"
trino --server http://trino-coordinator:8080 --catalog system --execute "SHOW CATALOGS;"大基数组聚合、超宽 join 容易触发查询内存上限;注意拆分查询或调大资源组限制。