-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement smoke test for vector cql data type support
- Loading branch information
Showing
21 changed files
with
130 additions
and
144 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,6 @@ dependency-reduced-pom.xml | |
cassandra-data-migrator.iml | ||
SIT/local | ||
*.DS_Store | ||
.classpath | ||
.project | ||
.settings/* |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Read Record Count: 2 | ||
Skipped Record Count: 0 | ||
Write Record Count: 2 | ||
Error Record Count: 0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
migrateData com.datastax.cdm.job.Migrate /smoke/06_vector/migrate.properties | ||
validateData com.datastax.cdm.job.DiffData /smoke/06_vector/migrate.properties |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Read Record Count: 2 | ||
Mismatch Record Count: 0 | ||
Corrected Mismatch Record Count: 0 | ||
Missing Record Count: 0 | ||
Corrected Missing Record Count: 0 | ||
Valid Record Count: 2 | ||
Skipped Record Count: 0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash -e | ||
|
||
workingDir="$1" | ||
cd "$workingDir" | ||
|
||
for scenario in $(cat cdm.txt | awk '{print $1}'); do | ||
/local/cdm.sh -f cdm.txt -s $scenario -d "$workingDir" > "cdm.$scenario.out" 2>cdm.$scenario.err | ||
/local/cdm-assert.sh -f "cdm.$scenario.out" -a "cdm.$scenario.assert" -d "$workingDir" | ||
done |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SELECT * FROM target.smoke_vector; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
col1 | embedding | ||
------+-------------------- | ||
1 | [1.1, 2.2, 3.3] | ||
2 | [4.4, -0.01, 0.99] | ||
|
||
(2 rows) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
spark.cdm.connect.origin.host cdm-sit-cass | ||
spark.cdm.connect.target.host cdm-sit-cass | ||
|
||
spark.cdm.schema.origin.keyspaceTable origin.smoke_vector | ||
spark.cdm.schema.target.keyspaceTable target.smoke_vector | ||
spark.cdm.perfops.numParts 1 | ||
|
||
spark.cdm.autocorrect.missing true | ||
spark.cdm.autocorrect.mismatch true | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
DROP TABLE IF EXISTS origin.smoke_vector; | ||
CREATE TABLE origin.smoke_vector (col1 int PRIMARY KEY, embedding vector<float, 3>); | ||
INSERT INTO origin.smoke_vector(col1, embedding) VALUES (1,[1.1,2.2,3.3]); | ||
INSERT INTO origin.smoke_vector(col1, embedding) VALUES (2,[4.4,-0.01,0.99]); | ||
|
||
DROP TABLE IF EXISTS target.smoke_vector; | ||
CREATE TABLE target.smoke_vector (col1 int PRIMARY KEY, embedding vector<float, 3>); |
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