千家信息网

presto测试单节点性能以及presto sql语句用法是什么

发表于:2024-10-27 作者:千家信息网编辑
千家信息网最后更新 2024年10月27日,presto测试单节点性能以及presto sql语句用法是什么,针对这个问题,这篇文章详细介绍了相对应的分析和解答,希望可以帮助更多想解决这个问题的小伙伴找到更简单易行的方法。1.presto my
千家信息网最后更新 2024年10月27日presto测试单节点性能以及presto sql语句用法是什么

presto测试单节点性能以及presto sql语句用法是什么,针对这个问题,这篇文章详细介绍了相对应的分析和解答,希望可以帮助更多想解决这个问题的小伙伴找到更简单易行的方法。

1.presto mysql数据写入到hive

insert into hive.prestotest.mysqldata select * from mysql.lyjtest.data;

2.复制数据

insert into hive.prestotest.mysqldata select * from hive.prestotest.mysqldata;

3.查询

presto:lyjpresto> select count(name),name from mysqldata group by name;  _col0   |         name         ----------+---------------------- 33554432 | 2                     33554432 | 1                     33554432 | 3                    (3 rows)Query 20201230_042634_00067_mczzp, FINISHED, 1 nodeSplits: 74 total, 74 done (100.00%)0:09 [101M rows, 23.4MB] [11.2M rows/s, 2.61MB/s]

4.常用sql

select * from mysql.lyjtest.data;//查询数据

create table lyjpresto.mysqldata as select * from mysql.lyjtest.data; //根据其他表创建表

help //帮助

show catalogs;//查看数据源

show schemas;//查询数据库

use hive.test;//进入到某一数据库

show tables ;//查看某一数据库下的表

关于presto测试单节点性能以及presto sql语句用法是什么问题的解答就分享到这里了,希望以上内容可以对大家有一定的帮助,如果你还有很多疑惑没有解开,可以关注行业资讯频道了解更多相关知识。

0