From dc09b7e63a5a01ff775ce100cd32f78753ccedbd Mon Sep 17 00:00:00 2001 From: Serhii Filonenko Date: Thu, 29 May 2025 11:52:28 +0300 Subject: [PATCH 1/2] HCK-11336: fix variant data type conversion to polyglot --- polyglot/convertAdapter.json | 11 +++++++++++ types/variant.json | 1 + 2 files changed, 12 insertions(+) diff --git a/polyglot/convertAdapter.json b/polyglot/convertAdapter.json index 735f6eec..273eb8e4 100644 --- a/polyglot/convertAdapter.json +++ b/polyglot/convertAdapter.json @@ -76,6 +76,17 @@ "to": { "hasMaxLength": true } + }, + { + "from": { + "type": "document", + "childType": "variant" + }, + "to": { + "type": "binary", + "childType": "blob", + "mode": "variant" + } } ] } diff --git a/types/variant.json b/types/variant.json index 9f92cf39..b98eda65 100644 --- a/types/variant.json +++ b/types/variant.json @@ -10,6 +10,7 @@ "name": "variant", "jsonRoot": true }, + "restrictNormalization": true, "defaultValues": { "primaryKey": false, "mode": "var", From 1a8b5acc5c4fb736e4225efbf420fb70d021eee7 Mon Sep 17 00:00:00 2001 From: Serhii Filonenko Date: Thu, 29 May 2025 14:57:09 +0300 Subject: [PATCH 2/2] HCK-11336: update convert adapter --- polyglot/convertAdapter.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/polyglot/convertAdapter.json b/polyglot/convertAdapter.json index 273eb8e4..5c9fdbff 100644 --- a/polyglot/convertAdapter.json +++ b/polyglot/convertAdapter.json @@ -79,8 +79,7 @@ }, { "from": { - "type": "document", - "childType": "variant" + "type": "variant" }, "to": { "type": "binary",