From 1f8574c102bd86c3b5c027fc47a4943c9c14ce55 Mon Sep 17 00:00:00 2001 From: Serhii Filonenko <91055067+serhii-filonenko@users.noreply.github.com> Date: Wed, 7 Aug 2024 13:06:03 +0300 Subject: [PATCH] HCK-7393: add a polyglot adapter for vector data type (#141) * HCK-7393: add polyglot adapter for vector data type * HCK-7394: add a polyglot covert adapter for vector data type --- polyglot/adapter.json | 11 ++++++++ polyglot/convertAdapter.json | 55 ++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 polyglot/convertAdapter.json diff --git a/polyglot/adapter.json b/polyglot/adapter.json index ed5c87a..58f806f 100644 --- a/polyglot/adapter.json +++ b/polyglot/adapter.json @@ -65,6 +65,17 @@ "to": { "mode": "double" } + }, + { + "from": { + "type": "numeric" + }, + "to": { + "mode": "float" + }, + "parent": { + "type": "vector" + } } ], "entity": [["setEntityCompositeKeys", "compositePartitionKey", "primaryKey"]] diff --git a/polyglot/convertAdapter.json b/polyglot/convertAdapter.json new file mode 100644 index 0000000..b80c05d --- /dev/null +++ b/polyglot/convertAdapter.json @@ -0,0 +1,55 @@ +/** + * Copyright © 2016-2022 by IntegrIT S.A. dba Hackolade. All rights reserved. + * + * The copyright to the computer software herein is the property of IntegrIT S.A. + * The software may be used and/or copied only with the written permission of + * IntegrIT S.A. or in accordance with the terms and conditions stipulated in + * the agreement/contract under which the software has been supplied. + * + * { + * "add": { + * "entity": [], + * "container": [], + * "model": [], + * "view": [], + * "field": { + * "": [] + * } + * }, + * "delete": { + * "entity": [], + * "container": [], + * "model": [], + * "view": [], + * "field": { + * "": [] + * } + * }, + * "modify": { + * "entity": [ + * { + * "from": { }, + * "to": { } + * } + * ], + * "container": [], + * "model": [], + * "view": [], + * "field": [] + * }, + * } + */ +{ + "modify": { + "field": [ + { + "from": { + "type": "vector" + }, + "to": { + "subtype": "vector" + } + } + ] + } +}