CREATE SINK insights.benchmark_values_by_taxonomy_node_sink AS
SELECT
benchmark_id,
fact_date,
taxonomy_node_id,
taxonomy_code,
weight
FROM insights.benchmark_values_by_distribution_mv
WITH (
connector='postgres',
host='psql-nonprod-uae-derived.postgres.database.azure.com',
port='6432',
user='migration_user',
password='***',
database='alinma-int-insights-db',
table='benchmark_values_by_taxonomy_node_ft',
schema='insights',
type='upsert',
force_compaction='true',
primary_key='benchmark_id,fact_date,taxonomy_node_id'
)