Initial open-source release

This commit is contained in:
Andrey Avtomonov 2026-05-10 23:12:26 +02:00
commit 1a42152e6f
1199 changed files with 257054 additions and 0 deletions

View 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)