-
Notifications
You must be signed in to change notification settings - Fork 881
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
JAVA-3143: Extend driver vector support to arbitrary subtypes and fix handling of variable length types (OSS C* 5.0) #1952
Open
SiyaoIsHiding
wants to merge
25
commits into
apache:4.x
Choose a base branch
from
SiyaoIsHiding:vector-arbitrary-support
base: 4.x
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,386
−272
Open
Changes from 21 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
9e87033
INSERT and DELETE working
SiyaoIsHiding 9ea8689
orderBy(annOf("c1", CqlVector.newInstance(0.1, 0.2, 0.3))))
SiyaoIsHiding b035763
fmt
SiyaoIsHiding 943e3f7
DataTypes.custom("org.apache.cassandra.db.marshal.VectorType(org.apac…
SiyaoIsHiding d176f09
SchemaBuilder add tests
SiyaoIsHiding 953fa47
Add blank line
SiyaoIsHiding 52db4d5
customize ccm bridge
SiyaoIsHiding 3f27134
Merge branch '4.x' into vector-support
SiyaoIsHiding 1a3c314
works for DataTypes.vectorOf(DataTypes.FLOAT, 3)
SiyaoIsHiding 3bbd519
Refactor CqlVector to generic type
SiyaoIsHiding 1645b78
serialize size and migrated fixed&var length codecs, not tested
SiyaoIsHiding 5d0087e
fix circle
SiyaoIsHiding 3f75dd8
tinyint works
SiyaoIsHiding ae14fa4
adding integration tests of vector in all subtypes
SiyaoIsHiding 522fab8
all tests passed
SiyaoIsHiding 61bdf29
nested vector passed
SiyaoIsHiding d2ff145
add vectors of all types
SiyaoIsHiding 6422932
add a ton of unit tests
SiyaoIsHiding 14e908d
more tests and try to fix toString
SiyaoIsHiding 5834c25
fmt
SiyaoIsHiding 680a6a0
revert ccmbridge
SiyaoIsHiding 86088d6
fmt
SiyaoIsHiding 1c17c72
add revapi.json
SiyaoIsHiding aaf7fff
add revapi.json for query builder
SiyaoIsHiding 7ef44b6
fix failed tests
SiyaoIsHiding File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Previously we promised that
CqlVector.from
should mirrorCqlVector.toString
.CqlVector.from
has access to a subtype codec and expects some values to be single-quoted, e.g. texts. Therefore, without this change totoString
, a round-trip test likeCqlVector.from(vector1.toString(), codec);
will fail. However, fetching the default codec for the subtype looks like too much effort for something simple liketoString
.