From 0d9c878e3d510efc0ff7f78b7f49ace3e06b9b75 Mon Sep 17 00:00:00 2001 From: FIN-IT_AndriFP Date: Fri, 13 Feb 2026 15:58:56 +0700 Subject: (andri) fix sort from magento --- magento_has_sync.ktr | 59 +++++++++++++++++++++++++++++++++++++----- magento_sync_attribute_set.ktr | 59 +++++++++++++++++++++++++++++++++++++----- 2 files changed, 106 insertions(+), 12 deletions(-) diff --git a/magento_has_sync.ktr b/magento_has_sync.ktr index cf62f7b..955389d 100644 --- a/magento_has_sync.ktr +++ b/magento_has_sync.ktr @@ -569,11 +569,6 @@ Merge join Y - - Select values - Merge join - Y - Merge join Select values 2 @@ -594,6 +589,16 @@ Update 2 Y + + Select values + Sort rows + Y + + + Sort rows + Merge join + Y + Add constants @@ -658,7 +663,7 @@ INNER - Select values + Sort rows Table input 2 variant_id @@ -993,6 +998,48 @@ order by id Y + + Sort rows + SortRows + + Y + + 1 + + none + + + %%java.io.tmpdir%% + out + 1000000 + + N + + N + + + variant_id + Y + N + N + 0 + N + + + + + + + + + + + + 560 + 112 + Y + + diff --git a/magento_sync_attribute_set.ktr b/magento_sync_attribute_set.ktr index 1ecd2b2..aacef29 100644 --- a/magento_sync_attribute_set.ktr +++ b/magento_sync_attribute_set.ktr @@ -568,11 +568,6 @@ Merge join Y - - Select values - Merge join - Y - Merge join Sort rows @@ -598,6 +593,16 @@ Unique rows Y + + Select values + Sort rows 2 + Y + + + Sort rows 2 + Merge join + Y + Add constants @@ -697,7 +702,7 @@ INNER - Select values + Sort rows 2 Table input 2 variant_id @@ -1167,6 +1172,48 @@ ORDER BY pp.id; Y + + Sort rows 2 + SortRows + + Y + + 1 + + none + + + %%java.io.tmpdir%% + out + 1000000 + + N + + N + + + variant_id + Y + N + N + 0 + N + + + + + + + + + + + + 560 + 128 + Y + + -- cgit v1.2.3