World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
Java ai-catalogdata-catalogdatalakefederated-querylakehousemetadatametalakemodel-catalogopendatacatalogskycomputingstratosphere
-- Automatically generated by Gravitino Spark SQL test
-- !query
select dt.d_year
,item.i_brand_id brand_id
,item.i_brand brand
,sum(ss_ext_sales_price) ext_price
from date_dim dt
,store_sales
,item
where dt.d_date_sk = store_sales.ss_sold_date_sk
and store_sales.ss_item_sk = item.i_item_sk
and item.i_manager_id = 1
and dt.d_moy=12
and dt.d_year=1998
group by dt.d_year
,item.i_brand
,item.i_brand_id
order by dt.d_year
,ext_price desc
,brand_id
limit 100
-- !query schema
struct<d_year:bigint,brand_id:bigint,brand:string,ext_price:decimal(17,2)>
-- !query output
1998 10004001 edu packunivamalg #x 302.61
1998 10004004 edu packunivamalg #x 48.19
1998 10015004 scholaramalgamalg #x 805.56
1998 1004002 edu packamalg #x 4067.90
1998 2004002 edu packimporto #x 240.00
1998 3003001 exportiexporti #x 1610.70
1998 4001001 amalgedu pack #x 2052.36
1998 4004001 edu packedu pack #x 2132.58
1998 5003001 exportischolar #x 7662.68
1998 6005001 scholarcorp #x 1937.32
1998 6008005 namelesscorp #x 35.42
1998 6011005 amalgbrand #x 5877.69
1998 7016001 corpnameless #x 404.60
1998 9012008 importounivamalg #x 6034.17
1998 9013009 exportiunivamalg #x 9353.40