Skip to content

Commit ad8530d

Browse files
HCK-10442: add support for hasMaxLength property on Polyglot conversion/derivement (#168)
* HCK-10442: add adapter for conversion/derivment of hasMaxLength property * HCK-10442: more strict convert adapter
1 parent f7c316f commit ad8530d

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

polyglot/adapter.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,33 @@
7777
"subtype": "vector<float32>"
7878
}
7979
},
80+
{
81+
"from": {
82+
"type": "varchar",
83+
"hasMaxLength": true
84+
},
85+
"to": {
86+
"length": 32767
87+
}
88+
},
89+
{
90+
"from": {
91+
"type": "nvarchar",
92+
"hasMaxLength": true
93+
},
94+
"to": {
95+
"length": 32767
96+
}
97+
},
98+
{
99+
"from": {
100+
"type": "binary",
101+
"hasMaxLength": true
102+
},
103+
"to": {
104+
"length": 8000
105+
}
106+
},
80107
[
81108
"renameBlockItemProperties",
82109
{

polyglot/convertAdapter.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,33 @@
6666
"mode": "integer"
6767
}
6868
},
69+
{
70+
"from": {
71+
"mode": "varchar2",
72+
"length": 32767
73+
},
74+
"to": {
75+
"hasMaxLength": true
76+
}
77+
},
78+
{
79+
"from": {
80+
"mode": "nvarchar2",
81+
"length": 32767
82+
},
83+
"to": {
84+
"hasMaxLength": true
85+
}
86+
},
87+
{
88+
"from": {
89+
"type": "binary",
90+
"length": 8000
91+
},
92+
"to": {
93+
"hasMaxLength": true
94+
}
95+
},
6996
[
7097
"movePropertyByPath",
7198
{

0 commit comments

Comments
 (0)