Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/hck 4350 datastax vector data type #121

Merged
merged 12 commits into from
Dec 28, 2023
Merged
105 changes: 105 additions & 0 deletions properties_pane/field_level/fieldLevelConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -1302,6 +1302,111 @@ making sure that you maintain a proper JSON format.
"additionalItems",
"comments"
],
"vector": [
"name",
"code",
"sampleName",
"schemaId",
"refPath",
"description",
"type",
{
"propertyName": "Subtype",
"propertyKeyword": "subtype",
"shouldValidate": false,
"propertyType": "select",
"typeDecorator": {
"value": "vctr<flt>",
"useAsTypeName": true,
"dependency": {
"key": "subtype",
"value": "float"
}
},
"typeable": true,
"options": [
"float"
]
},
{
"propertyName": "Dimension",
"propertyKeyword": "dimension",
"propertyType": "numeric",
"valueType": "integer",
"allowNegative": false,
"typeDecorator": true,
"defaultValue": 1,
"maxValue": 8192
},
{
"propertyName": "Frozen",
"propertyKeyword": "frozen",
"shouldValidate": false,
"propertyType": "checkbox",
"valueType": "boolean"
},
"dependencies",
{
"propertyName": "Required",
"propertyKeyword": "required",
"shouldValidate": false,
"propertyType": "checkbox",
"valueType": "boolean",
"disabledOnCondition": [
{
"key": "primaryKey",
"value": true
}
]
},
{
"propertyName": "Primary key",
"propertyKeyword": "primaryKey",
"shouldValidate": false,
"propertyType": "checkbox",
"valueType": "boolean",
"hidden": true
},
{
"propertyName": "Clustering key",
"propertyKeyword": "compositeClusteringKey",
"shouldValidate": false,
"propertyType": "checkbox",
"valueType": "boolean",
"dependency": {
"key": "compositeClusteringKey",
"value": true
},
"disabledOnCondition": [
{
"key": "compositeClusteringKey",
"value": true
}
]
},
{
"propertyName": "Partition key",
"propertyKeyword": "compositePartitionKey",
"shouldValidate": false,
"propertyType": "checkbox",
"valueType": "boolean",
"dependency": {
"key": "compositePartitionKey",
"value": true
},
"disabledOnCondition": [
{
"key": "compositePartitionKey",
"value": true
}
]
},
"minItems",
"maxItems",
"uniqueItems",
"additionalItems",
"comments"
],
"___3": [],
"geospatial": [
"name",
Expand Down
3 changes: 2 additions & 1 deletion types/object.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"geospatial",
"uuid",
"timeuuid",
"udt"
"udt",
"vector"
]
}
}
Expand Down
48 changes: 48 additions & 0 deletions types/vector.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"name": "vector",
"erdAbbreviation": "<vctr>",
"dtdAbbreviation": "[...]",
"parentType": "array",
"useSample": false,
"hiddenOnEntity": "view",
"defaultValues": {
"properties": [],
"primaryKey": false,
"additionalItems": true,
"minItems": "",
"maxItems": "",
"uniqueItems": false,
"subtype": "float",
"dimension": 1
},
"subtypes": {
"float": {
"childValueType": "numeric"
}
},
"dependency": {
"type": "not",
"values": [
{
"level": "model",
"key": "dbVersion",
"value": "2.x"
},
{
"level": "model",
"key": "dbVersion",
"value": "3.x"
},
{
"level": "model",
"key": "dbVersion",
"value": "4.x"
},
{
"level": "model",
"key": "dbVersion",
"value": "DSE 4.x"
}
]
}
}