Skip to content

Commit

Permalink
fix(jobs): make validation retry on SelectFromMaterializedViewStateme…
Browse files Browse the repository at this point in the history
…ntType
  • Loading branch information
Dmitry Kropachev committed Jun 11, 2023
1 parent 9f7344d commit fae0915
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/jobs/gen_check_stmt.go
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ func genMultiplePartitionClusteringRangeQueryMv(
StmtCache: &typedef.StmtCache{
Query: builder,
Types: typs,
QueryType: typedef.SelectRangeStatementType,
QueryType: typedef.SelectFromMaterializedViewStatementType,
},
Values: values,
}
Expand Down
7 changes: 6 additions & 1 deletion pkg/typedef/typedef.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,12 @@ func (s *Stmt) PrettyCQL() string {
type StatementType uint8

func (st StatementType) PossibleAsyncOperation() bool {
return st == SelectByIndexStatementType || st == SelectFromMaterializedViewStatementType
switch st {
case SelectByIndexStatementType, SelectFromMaterializedViewStatementType:
return true
default:
return false
}
}

type Values []interface{}
Expand Down

0 comments on commit fae0915

Please sign in to comment.