Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in aggregateToCQL #130

Closed
Michal-Leszczynski opened this issue Jun 23, 2023 · 0 comments · Fixed by #152
Closed

Bug in aggregateToCQL #130

Michal-Leszczynski opened this issue Jun 23, 2023 · 0 comments · Fixed by #152
Assignees

Comments

@Michal-Leszczynski
Copy link

In the file recreate.go we can see:

var aggregatesTemplate = template.Must(template.New("aggregate").
	Funcs(map[string]interface{}{
		"stripFrozen": cqlHelpers.stripFrozen,
	}).
	Parse(`
CREATE AGGREGATE {{ .Keyspace }}.{{ .Name }}( 
    {{- range $arg, $i := .ArgumentTypes }}
    ...`

I believe that $arg and $i have mistakenly swapped positions.
We have encountered this issue in Scylla Manager with the following error:

await schema: get schema: cql keyspace traffickeyspace metadata: template: aggregate:4:11: executing "aggregate" at <ne $i 0>: error calling ne: incompatible types for comparison
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants