Skip to content

Commit

Permalink
HCK-7393: add a polyglot adapter for vector data type (#141)
Browse files Browse the repository at this point in the history
* HCK-7393: add polyglot adapter for vector data type

* HCK-7394: add a polyglot covert adapter for vector data type
  • Loading branch information
serhii-filonenko authored Aug 7, 2024
1 parent a633a04 commit 1f8574c
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
11 changes: 11 additions & 0 deletions polyglot/adapter.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,17 @@
"to": {
"mode": "double"
}
},
{
"from": {
"type": "numeric"
},
"to": {
"mode": "float"
},
"parent": {
"type": "vector"
}
}
],
"entity": [["setEntityCompositeKeys", "compositePartitionKey", "primaryKey"]]
Expand Down
55 changes: 55 additions & 0 deletions polyglot/convertAdapter.json
Original file line number Diff line number Diff line change
@@ -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": [<names of new property>],
* "container": [<names of new property>],
* "model": [<names of new property>],
* "view": [<names of new property>],
* "field": {
* "<type>": [<names of new property>]
* }
* },
* "delete": {
* "entity": [<names of new property>],
* "container": [<names of new property>],
* "model": [<names of new property>],
* "view": [<names of new property>],
* "field": {
* "<type>": [<names of new property>]
* }
* },
* "modify": {
* "entity": [
* {
* "from": { <properties that identify record> },
* "to": { <properties that need to be changed> }
* }
* ],
* "container": [],
* "model": [],
* "view": [],
* "field": []
* },
* }
*/
{
"modify": {
"field": [
{
"from": {
"type": "vector"
},
"to": {
"subtype": "vector<float>"
}
}
]
}
}

0 comments on commit 1f8574c

Please sign in to comment.