public class RelationalQuery extends Object
SELECT l_orderkey, o_shippriority, sum(l_extendedprice) as revenue
FROM orders, lineitem
WHERE l_orderkey = o_orderkey
AND o_orderstatus = "X"
AND YEAR(o_orderdate) > Y
AND o_orderpriority LIKE "Z%"
GROUP BY l_orderkey, o_shippriority;
Input files are plain text CSV files using the pipe character ('|') as field separator as generated by the TPC-H data generator which is available at http://www.tpc.org/tpch/.
Usage: RelationalQuery <orders-csv path> <lineitem-csv path> <result path>
This example shows how to use:
| Constructor and Description |
|---|
RelationalQuery() |
Copyright © 2013–2014. All rights reserved.