Skip to content

Commit

Permalink
Fix example in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Aug 24, 2024
1 parent da73e73 commit 601f4c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guides/sql-tap.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class CustomSQLToJSONSchema(SQLToJSONSchema):
@SQLToJSONSchema.to_jsonschema.register(VectorType)
def vector_to_json_schema(self, column_type):
"""Custom vector to JSON schema."""
return th.ArrayType(items=th.NumberType())
return th.ArrayType(th.NumberType()).type_dict
```

````{tip}
Expand All @@ -40,7 +40,7 @@ You can also use a type annotation to specify the type of the column when regist
```python
@SQLToJSONSchema.to_jsonschema.register
def vector_to_json_schema(self, column_type: VectorType):
return th.ArrayType(items=th.NumberType())
return th.ArrayType(th.NumberType()).type_dict
```
````

Expand Down

0 comments on commit 601f4c8

Please sign in to comment.