-
Notifications
You must be signed in to change notification settings - Fork 10
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
the composite partition key syntax is incorrect when multiple cluster keys are used #35
Comments
Hello @batwicket, I think the case you're referring to is handled by this unit test. As to your second example I'm not certain what you mean as that is an invalid CQL statement:
|
I may have been unclear. The second example I gave is the syntax produced by cassanknex. It adds extra parentheses around the cluster keys. As you say, this causes a syntax error. |
Just to be clear, I want to make sure I'm addressing something that's an issue. If it is then it might take me a few days to get to it if you don't have time. |
Ah, I see your point. This statement is correct:
But the following statement would produce additional brackets around the clustered columns:
Thanks for pointing it out, it's a nice convenience for input, I've added it to the next version push (#36) |
When an array is specified for the cluster key arguments an extra parenthesis is placed around them in the PRIMARY KEY clause i.e., from https://docs.datastax.com/en/cql/3.1/cql/cql_reference/refCompositePk.html:
is, instead:
The unit tests don't appear to catch this case. Sounds valid?
The text was updated successfully, but these errors were encountered: