Skip to content

Commit 925f60c

Browse files
authored
Hck 10442 add adapter to convert hasMaxLength to Polyglot (#140)
* HCK-10442: add adapters to properly convert hasMaxLength property * HCK-10442: removed trailing comma * HCK-10442: removed redundant license * HCK-10442: removed redundant comment * HCK-10422: made adapter more explicit
1 parent d0a549c commit 925f60c

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

polyglot/adapter.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,24 @@
171171
"parent": {
172172
"type": "vector"
173173
}
174+
},
175+
{
176+
"from": {
177+
"type": "varchar",
178+
"hasMaxLength": true
179+
},
180+
"to": {
181+
"length": 10485760
182+
}
183+
},
184+
{
185+
"from": {
186+
"type": "nvarchar",
187+
"hasMaxLength": true
188+
},
189+
"to": {
190+
"length": 10485760
191+
}
174192
}
175193
]
176194
},

polyglot/convertAdapter.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@
4949
"to": {
5050
"subtype": "vector<real>"
5151
}
52+
},
53+
{
54+
"from": {
55+
"mode": "varchar",
56+
"length": 10485760
57+
},
58+
"to": {
59+
"hasMaxLength": true
60+
}
5261
}
5362
]
5463
}

0 commit comments

Comments
 (0)