From 0cbaa01b0b1d299c36af12fdc0d6a02d2903b25b Mon Sep 17 00:00:00 2001 From: Nazar Kovtun Date: Fri, 21 Mar 2025 13:07:11 +0200 Subject: [PATCH 1/2] HCK-10442: add adapter for conversion/derivment of hasMaxLength property --- polyglot/adapter.json | 27 +++++++++++++++++++++++++++ polyglot/convertAdapter.json | 24 ++++++++++++++++++++++++ 2 files changed, 51 insertions(+) diff --git a/polyglot/adapter.json b/polyglot/adapter.json index 81f556b..60c265d 100644 --- a/polyglot/adapter.json +++ b/polyglot/adapter.json @@ -77,6 +77,33 @@ "subtype": "vector" } }, + { + "from": { + "type": "varchar", + "hasMaxLength": true + }, + "to": { + "length": 32767 + } + }, + { + "from": { + "type": "nvarchar", + "hasMaxLength": true + }, + "to": { + "length": 32767 + } + }, + { + "from": { + "type": "binary", + "hasMaxLength": true + }, + "to": { + "length": 8000 + } + }, [ "renameBlockItemProperties", { diff --git a/polyglot/convertAdapter.json b/polyglot/convertAdapter.json index 811347a..1e4853b 100644 --- a/polyglot/convertAdapter.json +++ b/polyglot/convertAdapter.json @@ -66,6 +66,30 @@ "mode": "integer" } }, + { + "from": { + "length": 32767 + }, + "to": { + "hasMaxLength": true + } + }, + { + "from": { + "length": 32767 + }, + "to": { + "hasMaxLength": true + } + }, + { + "from": { + "length": 8000 + }, + "to": { + "hasMaxLength": true + } + }, [ "movePropertyByPath", { From 3a4dbff2c0e2c24772a902a235bf32dbd4af9367 Mon Sep 17 00:00:00 2001 From: Nazar Kovtun Date: Fri, 21 Mar 2025 13:16:40 +0200 Subject: [PATCH 2/2] HCK-10442: more strict convert adapter --- polyglot/convertAdapter.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/polyglot/convertAdapter.json b/polyglot/convertAdapter.json index 1e4853b..b453d21 100644 --- a/polyglot/convertAdapter.json +++ b/polyglot/convertAdapter.json @@ -68,6 +68,7 @@ }, { "from": { + "mode": "varchar2", "length": 32767 }, "to": { @@ -76,6 +77,7 @@ }, { "from": { + "mode": "nvarchar2", "length": 32767 }, "to": { @@ -84,6 +86,7 @@ }, { "from": { + "type": "binary", "length": 8000 }, "to": {