Skip to content

Commit

Permalink
Merge pull request #347 from scylladb/346-make-validation-retry-on-se…
Browse files Browse the repository at this point in the history
…lectfrommaterializedviewstatementtype-operation

fix(jobs): make validation retry on git fetch origin
  • Loading branch information
dkropachev authored Jun 11, 2023
2 parents 9f7344d + fae0915 commit 81d524e
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 81d524e

Please sign in to comment.