LoginSignup
1
1

More than 5 years have passed since last update.

PrestoでVIEWを作ってHiveと比べてみる

Posted at

環境

  • aws cliで --applications Name=Hadoop Name=Hive Name=Presto Name=Hue Name=Oozie を指定
  • 結果、次のようなアプリが入る Hive 2.1.1, Presto 0.166, Hue 3.11.0, Oozie 4.3.0

下準備

先にHiveで各テーブルとビューを作っておく。

Prestoでの試行

  • HiveのVIEWに直接クエリはかけられないようだ
> SELECT COUNT(*) FROM hive.default.test_view;
Query 20170411_015007_00015_amt5p failed: Hive views are not supported: 'default.test_view'
> CREATE OR REPLACE VIEW test_view AS
SELECT orderkey, orderstatus, totalprice / 2 AS half
FROM orders

SELECTをかけてみると、100万件ぐらいのデータが即時取得できた。Hiveよりだいぶ早いですね。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1