We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43ba4e9 commit aa7b41dCopy full SHA for aa7b41d
python/cocoindex/targets/lancedb.py
@@ -133,8 +133,10 @@ def _convert_basic_type_to_pa_type(basic_type: BasicValueType) -> pa.DataType:
133
raise ValueError("Vector type missing vector schema")
134
element_type = _convert_basic_type_to_pa_type(vector_schema.element_type)
135
136
- # Create list type with the element type
137
- return pa.list_(element_type)
+ if vector_schema.dimension is not None:
+ return pa.list_(element_type, vector_schema.dimension)
138
+ else:
139
+ return pa.list_(element_type)
140
141
if kind == "Range":
142
# Range as a struct with start and end
0 commit comments