Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Create Cassandra db schema on session initialization #5922
Create Cassandra db schema on session initialization #5922
Changes from 41 commits
5041f31
30db170
ce0c375
810ab1c
0d6383f
207945f
985f65b
1c30503
e4ab709
c329bba
e3c6045
492e15e
44c39dc
dfc0c43
cb8ae19
c3d0fbd
728a139
1b6683d
ce11cc1
de1c563
edabe22
d0e1976
d8479b5
02b6159
73d276a
57349a8
84b52e1
9c2f05b
2c8de88
eeb1951
601365d
4aeaad7
0167cb6
07b99da
04ec76f
7246494
d8613f1
a7853ec
10bd9aa
a682db2
35c26b5
ddf4fc0
bbf3ac8
a8e3aae
a46bf37
c2b89e0
de2d2ef
100208c
37d34dd
8d65894
23a9b62
d925074
154deb9
a238455
cc9db9c
9d8ba06
b0ac38a
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 204 in pkg/cassandra/config/config.go
pkg/cassandra/config/config.go#L198-L204
Check warning on line 211 in pkg/cassandra/config/config.go
pkg/cassandra/config/config.go#L206-L211
Check warning on line 218 in pkg/cassandra/config/config.go
pkg/cassandra/config/config.go#L217-L218
Check warning on line 302 in pkg/cassandra/config/config.go
pkg/cassandra/config/config.go#L301-L302
Check warning on line 45 in pkg/cassandra/config/schema.go
pkg/cassandra/config/schema.go#L38-L45
Check warning on line 52 in pkg/cassandra/config/schema.go
pkg/cassandra/config/schema.go#L48-L52
Check warning on line 58 in pkg/cassandra/config/schema.go
pkg/cassandra/config/schema.go#L54-L58
Check warning on line 60 in pkg/cassandra/config/schema.go
pkg/cassandra/config/schema.go#L60
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would do it in generateSchemaIfNotPresent against
casQueries
, not here.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't quite get this. The logic here is that if
queryString > 0
, means that there is a query string which does not ends with;
, that's what I am validating here.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok then please make the error message self-explanatory
Check warning on line 109 in pkg/cassandra/config/schema.go
pkg/cassandra/config/schema.go#L104-L109
Check warning on line 111 in pkg/cassandra/config/schema.go
pkg/cassandra/config/schema.go#L111
Check warning on line 120 in pkg/cassandra/config/schema.go
pkg/cassandra/config/schema.go#L114-L120
Check warning on line 125 in pkg/cassandra/config/schema.go
pkg/cassandra/config/schema.go#L122-L125
Check warning on line 129 in pkg/cassandra/config/schema.go
pkg/cassandra/config/schema.go#L127-L129
Check warning on line 136 in pkg/cassandra/config/schema.go
pkg/cassandra/config/schema.go#L132-L136
Check warning on line 141 in pkg/cassandra/config/schema.go
pkg/cassandra/config/schema.go#L138-L141
Check warning on line 144 in pkg/cassandra/config/schema.go
pkg/cassandra/config/schema.go#L144