Skip to content

Commit

Permalink
(BIDS-2357) removed some ;
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelsc committed Dec 11, 2023
1 parent c394721 commit 7170e09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/misc/commands/validator_stats_partition.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ func (s *statsMigratorConfig) createValidatorStatsPartionedTableSchemav1(tableNa
}

partitionedCreate := strings.Replace(fmt.Sprintf("%s PARTITION BY hash(validatorindex);", createOnly), tableName, tempPartitionedName, 1)
dayIndex := fmt.Sprintf("CREATE INDEX IF NOT EXISTS idx_%s_day ON %[1]s (DAY);", tempPartitionedName)
dayIndex := fmt.Sprintf("CREATE INDEX IF NOT EXISTS idx_%s_day ON %[1]s (DAY)", tempPartitionedName)

if s.DryRun {
fmt.Printf("%s\n\n%s\n\n", partitionedCreate, dayIndex)
Expand All @@ -440,7 +440,7 @@ func (s *statsMigratorConfig) createValidatorStatsPartionedTableSchemav1(tableNa
for i := 0; i < numberOfPartitions; i++ {
partitionCreate := fmt.Sprintf(`
CREATE TABLE %s_%d PARTITION OF %[1]s
FOR VALUES WITH (MODULUS %[3]d, REMAINDER %[2]d);
FOR VALUES WITH (MODULUS %[3]d, REMAINDER %[2]d)
`, tempPartitionedName, i, numberOfPartitions)

if s.DryRun {
Expand Down

0 comments on commit 7170e09

Please sign in to comment.