diff --git a/models/dw/dw.fact_stock_minute.sql b/models/dw/dw.fact_stock_minute.sql index 36e2eb8..b8b4df0 100644 --- a/models/dw/dw.fact_stock_minute.sql +++ b/models/dw/dw.fact_stock_minute.sql @@ -5,7 +5,11 @@ order_by='ts_code, time_id', unique_key=['ts_code', 'time_id'], partition_by=['cast(floor(time_id / 1000000) As Int32)'], - query_settings={"join_algorithm": "'partial_merge'"} + query_settings={ + "join_algorithm": "'full_sorting_merge'", + "max_rows_in_set_to_optimize_join": "0", + "max_bytes_before_external_sort": "'1000M'" + } ) }}