mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-17 21:46:50 +00:00
MINOR: Add cost in sample usage queries (#20211)
This commit is contained in:
parent
83502ab2e1
commit
f291e5cb1d
@ -1,18 +1,24 @@
|
|||||||
query
|
query,cost
|
||||||
"select * from shopify.raw_product_catalog"
|
"select * from shopify.raw_product_catalog",10
|
||||||
"select comments, products from shopify.raw_product_catalog"
|
"select * from shopify.raw_product_catalog",12
|
||||||
"select cust.customer_id, fact_order.order_id from dim_customer cust join fact_order on cust.customer_id = fact_order.customer_id"
|
"select comments, products from shopify.raw_product_catalog",2
|
||||||
"select sale.sale_id, cust.customer_id, fact_order.order_ir from shopify.fact_sale sale join dim_customer cust on sale.customer_id = cust.customer_id join fact_order on fact_order.order_id = sale.order_id"
|
"select comments, products from shopify.raw_product_catalog",3
|
||||||
"select case when net_sales > 100 then 'high' else 'low' end as map_sales from shopify.fact_sale"
|
"select comments, products from shopify.raw_product_catalog",9
|
||||||
"select ROW_NUMBER() OVER (PARTITION BY sale_id, customer_id) AS sale_row from shopify.fact_sale"
|
"select cust.customer_id, fact_order.order_id from dim_customer cust join fact_order on cust.customer_id = fact_order.customer_id",0.222
|
||||||
"select * from shopify.raw_customer"
|
"select sale.sale_id, cust.customer_id, fact_order.order_ir from shopify.fact_sale sale join dim_customer cust on sale.customer_id = cust.customer_id join fact_order on fact_order.order_id = sale.order_id",0.234
|
||||||
"select * from shopify.raw_customer"
|
"select sale.sale_id, cust.customer_id, fact_order.order_ir from shopify.fact_sale sale join dim_customer cust on sale.customer_id = cust.customer_id join fact_order on fact_order.order_id = sale.order_id",0.5
|
||||||
"select * from shopify.raw_customer"
|
"select sale.sale_id, cust.customer_id, fact_order.order_ir from shopify.fact_sale sale join dim_customer cust on sale.customer_id = cust.customer_id join fact_order on fact_order.order_id = sale.order_id",0.65
|
||||||
"select * from shopify.raw_customer"
|
"select case when net_sales > 100 then 'high' else 'low' end as map_sales from shopify.fact_sale",2
|
||||||
"select * from shopify.raw_customer"
|
"select ROW_NUMBER() OVER (PARTITION BY sale_id, customer_id) AS sale_row from shopify.fact_sale",5
|
||||||
"select * from shopify.raw_customer"
|
"select * from shopify.raw_customer",19
|
||||||
"select * from shopify.raw_customer"
|
"select * from shopify.raw_customer",19
|
||||||
"select * from shopify.raw_customer"
|
"select * from shopify.raw_customer",18
|
||||||
"select * from shopify.raw_customer"
|
"select * from shopify.raw_customer",17
|
||||||
"select * from shopify.raw_customer"
|
"select * from shopify.raw_customer",16
|
||||||
"create table shopify.dim_address_clean as select address_id, shop_id, first_name, last_name, address1 as address, company, city, region, zip, country, phone from shopify.dim_address"
|
"select * from shopify.raw_customer",20
|
||||||
|
"select * from shopify.raw_customer",21
|
||||||
|
"select * from shopify.raw_customer",22
|
||||||
|
"select * from shopify.raw_customer",15
|
||||||
|
"select * from shopify.raw_customer",12
|
||||||
|
"create table shopify.dim_address_clean as select address_id, shop_id, first_name, last_name, address1 as address, company, city, region, zip, country, phone from shopify.dim_address",0.5
|
||||||
|
"create table shopify.dim_address_clean as select address_id, shop_id, first_name, last_name, address1 as address, company, city, region, zip, country, phone from shopify.dim_address",0.5
|
@ -92,6 +92,7 @@ class SampleUsageSource(UsageSource):
|
|||||||
databaseName="ecommerce_db",
|
databaseName="ecommerce_db",
|
||||||
serviceName=self.config.serviceName,
|
serviceName=self.config.serviceName,
|
||||||
databaseSchema="shopify",
|
databaseSchema="shopify",
|
||||||
|
cost=row.get("cost"),
|
||||||
)
|
)
|
||||||
for row in self.query_logs
|
for row in self.query_logs
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user