CREATE SINK insights.benchmark_twrr_by_asset_class_sink AS
SELECT
*
FROM insights.benchmark_twrr_by_asset_class_sink__rwm_shim
WITH (
connector='postgres',
host='psql-nonprod-uae-derived.postgres.database.azure.com',
port='6432',
user='migration_user',
password='***',
database='alinma-qa-insights-db',
table='benchmark_twrr_metrics_by_asset_classes_ft',
schema='insights',
type='upsert',
force_compaction='true',
primary_key='benchmark_id,fact_date,asset_class',
sink_rate_limit=0,
snapshot='false'
)