mirror of
https://github.com/Kaelio/ktx.git
synced 2026-07-04 10:52:13 +02:00
Initial open-source release
This commit is contained in:
commit
1a42152e6f
1199 changed files with 257054 additions and 0 deletions
27
python/klo-sl/sources/tpch/partsupp.yaml
Normal file
27
python/klo-sl/sources/tpch/partsupp.yaml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
name: partsupp
|
||||
table: public.partsupp
|
||||
grain: [ps_partkey, ps_suppkey]
|
||||
columns:
|
||||
- name: ps_partkey
|
||||
type: number
|
||||
- name: ps_suppkey
|
||||
type: number
|
||||
- name: ps_availqty
|
||||
type: number
|
||||
- name: ps_supplycost
|
||||
type: number
|
||||
- name: ps_comment
|
||||
type: string
|
||||
joins:
|
||||
- to: part
|
||||
"on": ps_partkey = part.p_partkey
|
||||
relationship: many_to_one
|
||||
- to: supplier
|
||||
"on": ps_suppkey = supplier.s_suppkey
|
||||
relationship: many_to_one
|
||||
measures:
|
||||
- name: total_supply_cost
|
||||
expr: sum(ps_supplycost * ps_availqty)
|
||||
description: "Total value of parts in stock"
|
||||
- name: avg_supply_cost
|
||||
expr: avg(ps_supplycost)
|
||||
Loading…
Add table
Add a link
Reference in a new issue