-
Notifications
You must be signed in to change notification settings - Fork 222
Support Oracle db VECTOR type #3637
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
base: 5.0.x
Are you sure you want to change the base?
Conversation
data-jdbc/src/main/java/io/micronaut/data/jdbc/config/SchemaGenerator.java
Outdated
Show resolved
Hide resolved
...c/test/groovy/io/micronaut/data/jdbc/oraclexe/vector/OracleJdbcDoubleVectorEntitySpec.groovy
Show resolved
Hide resolved
...o/micronaut/data/runtime/operations/internal/query/DefaultBindableParametersStoredQuery.java
Outdated
Show resolved
Hide resolved
|
Can you try to implement it without changes in DataType and get/set mapping? The idea would be to use DataType.OBJECT and use a custom The idea would be to implement it in almost non-invasive way so other things like geo etc can be supported as well easily. |
data-jdbc/src/main/java/io/micronaut/data/jdbc/operations/DefaultJdbcRepositoryOperations.java
Outdated
Show resolved
Hide resolved
data-jdbc/src/main/java/io/micronaut/data/jdbc/operations/DefaultJdbcRepositoryOperations.java
Outdated
Show resolved
Hide resolved
data-jdbc/src/main/java/io/micronaut/data/jdbc/operations/DefaultJdbcRepositoryOperations.java
Outdated
Show resolved
Hide resolved
data-model/src/main/java/io/micronaut/data/model/runtime/RuntimePersistentProperty.java
Outdated
Show resolved
Hide resolved
data-model/src/main/java/io/micronaut/data/model/runtime/convert/AttributeConverter.java
Outdated
Show resolved
Hide resolved
data-runtime/src/main/java/io/micronaut/data/runtime/mapper/sql/SqlResultEntityTypeMapper.java
Outdated
Show resolved
Hide resolved
data-model/src/main/java/io/micronaut/data/model/vector/DoubleVector.java
Outdated
Show resolved
Hide resolved
data-model/src/main/java/io/micronaut/data/model/vector/FloatVector.java
Outdated
Show resolved
Hide resolved
data-model/src/main/java/io/micronaut/data/model/vector/ByteVector.java
Outdated
Show resolved
Hide resolved
data-model/src/main/java/io/micronaut/data/model/vector/ByteVector.java
Outdated
Show resolved
Hide resolved
data-model/src/main/java/io/micronaut/data/model/vector/DoubleVector.java
Outdated
Show resolved
Hide resolved
data-model/src/main/java/io/micronaut/data/model/vector/IntVector.java
Outdated
Show resolved
Hide resolved
data-model/src/main/java/io/micronaut/data/model/vector/IntVector.java
Outdated
Show resolved
Hide resolved
|
|
||
| Supported platforms (since 5.0.0): | ||
| - Oracle Database 23ai VECTOR columns (JDBC and R2DBC) | ||
| - PostgreSQL pgvector (JDBC and R2DBC) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to add MySQL vector support as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added only for jdbc
data-jdbc/src/main/java/io/micronaut/data/jdbc/operations/JdbcConversionContextFactory.java
Outdated
Show resolved
Hide resolved
|
|
||
| OptionalInt len = SqlQueryBuilderUtils.findPersistenceColumnValue(annotationMetadata, "length"); | ||
|
|
||
| Class<?> converterClass = prop.getAnnotationMetadata().classValue(MappedProperty.class, "converter").orElse(null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use TypeDef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it can't be used since the property doesn't have TypeDef it has only MappedProperty and data from TypeDef was copied to MappedProperty in the visitor
data-model/src/main/java/io/micronaut/data/model/runtime/RuntimePersistentProperty.java
Show resolved
Hide resolved
data-model/src/main/java/io/micronaut/data/model/runtime/convert/SqlAttributeConverter.java
Outdated
Show resolved
Hide resolved
...main/java/io/micronaut/data/model/runtime/convert/vector/DoubleVectorAttributeConverter.java
Outdated
Show resolved
Hide resolved
...va/io/micronaut/data/model/runtime/convert/vector/impl/AbstractVectorAttributeConverter.java
Outdated
Show resolved
Hide resolved
data-model/src/main/java/io/micronaut/data/model/runtime/convert/SqlAttributeConverter.java
Outdated
Show resolved
Hide resolved
data-runtime/src/main/java/io/micronaut/data/runtime/mapper/ResultReader.java
Outdated
Show resolved
Hide resolved
.../java/io/micronaut/data/runtime/operations/internal/query/BindableParametersStoredQuery.java
Outdated
Show resolved
Hide resolved
data-model/src/main/java/io/micronaut/data/model/runtime/convert/SqlAttributeConverter.java
Outdated
Show resolved
Hide resolved
|



No description provided.