You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
select pd.id as product_id, product_name,
pd.price as product_price, brand_name, category_name,
od.quantity as order_quantity, iv.quantity as order_remain,
od.order_id, od.item_price as od_price, os.status_name,
u.username, u.email, u.address
from products as pd
inner join catagories c
on pd.category_id = c.id
inner join brands as b
on pd.brand_id = b.id
inner join inventory as iv
on pd.id = iv.product_id
inner join order_detail as od
on pd.id = od.product_id
inner join orders as o
on od.order_id = o.id
inner join users as u
on o.user_id = u.id
inner join order_status as os
on o.status_id = os.id
where os.id = 1;
Note:
id: 1 => order received
id: 2 => processing
id: 3 => cancelled
id: 4 => Delivered
Trino
Exec into trino container and use delta catalog
docker exec -it trino bash
trino
use delta.default
use proceduce in trino to get metadata from delta table and sync with hive metastore