-
Notifications
You must be signed in to change notification settings - Fork 49
(improvement) remove query to TRIGGERS (which do not exist in ScyllaDB) #629
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
base: master
Are you sure you want to change the base?
Conversation
With CoPilot, I removed the query, since this functionality doesn't exist in ScyllaDB at all. Refs: scylladb#453 Refs: https://scylladb.atlassian.net/browse/CUSTOMER-62 Signed-off-by: Yaniv Kaul <yaniv.kaul@scylladb.com>
|
CI failures do not seem related to this patch :-/ |
Lorak-mmk
left a comment
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.
Can you try to run integration tests with Cassandra and see if there are new failures caused by this change?
We do not currently do this in CI, there was work to do this but it was not finished: #339
Let's not make things more difficult for someone picking it up again.
Did you consider using those queries only with Cassandra, instead of removing them completely?
| indexes_result = self._handle_results(indexes_sucess, indexes_result, query_msg=indexes_query) | ||
| triggers_result = self._handle_results(triggers_success, triggers_result, query_msg=triggers_query) | ||
| return self._build_table_metadata(table_result[0], col_result, triggers_result, indexes_result) | ||
| return self._build_table_metadata(table_result[0], col_result, None, indexes_result) |
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.
Instead of passing None can you remove the argument from _build_table_metadata? Let's not introduce dead code.
| table_name = row[self._table_name_col] | ||
|
|
||
| col_rows = col_rows or self.keyspace_table_col_rows[keyspace_name][table_name] | ||
| trigger_rows = trigger_rows or self.keyspace_table_trigger_rows[keyspace_name][table_name] |
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.
Did you remove self.keyspace_table_trigger_rows as well?
| for trigger_row in trigger_rows: | ||
| trigger_meta = self._build_trigger_metadata(table_meta, trigger_row) | ||
| table_meta.triggers[trigger_meta.name] = trigger_meta | ||
|
|
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.
And table_meta.triggers?
With CoPilot, I removed the query, since this functionality doesn't exist in ScyllaDB at all.
Refs: #453
Refs: https://scylladb.atlassian.net/browse/CUSTOMER-62
Pre-review checklist
./docs/source/.Fixes:annotations to PR description.