Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
priyanshi-yb committed Jan 22, 2025
1 parent ab48233 commit e22d126
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions yb-voyager/src/query/queryissue/issues_ddl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,14 @@ func testClusterOnIssue(t *testing.T) {
ALTER TABLE public.test CLUSTER ON test_age_salary`)

fmt.Printf("%s", testYbVersion)
var errMsg string
switch testYbVersion {
case ybversion.V2_25_0_0:
switch testYbVersion.String() {
case ybversion.V2_25_0_0.String():
errMsg = "ALTER action CLUSTER ON not supported yet"
default:
errMsg = "ALTER TABLE CLUSTER not supported yet"
}
fmt.Printf("version -%v, match - %v, errorMSG - %s", testYbVersion, testYbVersion.String() == ybversion.V2_25_0_0.String(), errMsg)
assertErrorCorrectlyThrownForIssueForYBVersion(t, err, errMsg, alterTableClusterOnIssue)
}

Expand Down
5 changes: 3 additions & 2 deletions yb-voyager/src/query/queryissue/issues_dml_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,9 @@ func testCTEWithMaterializedIssue(t *testing.T) {
SELECT * FROM big_table
)
SELECT * FROM w AS w1 JOIN w AS w2 ON w1.key = w2.ref
WHERE w2.key = ''123;`: `syntax error at or near "NOT"`,
`WITH w AS MATERIALIZED (
WHERE w2.key = '123';`: `syntax error at or near "NOT"`,
`CREATE TABLE big_table(key text, ref text, c1 int, c2 int);
WITH w AS MATERIALIZED (
SELECT * FROM big_table
)
SELECT * FROM w AS w1 JOIN w AS w2 ON w1.key = w2.ref
Expand Down

0 comments on commit e22d126

Please sign in to comment.