Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: wraymo <37269683+wraymo@users.noreply.github.com>
  • Loading branch information
gibber9809 and wraymo authored May 8, 2024
1 parent 870da2f commit f37b57c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion components/core/src/clp_s/search/Output.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class Output : public FilterClass {
*/
bool evaluate_var_string_filter(
FilterOperation op,
std::vector<VariableStringColumnReader*> const& reader,
std::vector<VariableStringColumnReader*> const& readers,
std::unordered_set<int64_t>* matching_vars,
std::shared_ptr<Literal> const& operand
) const;
Expand Down
10 changes: 5 additions & 5 deletions components/core/src/clp_s/search/SchemaMatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,7 @@ bool SchemaMatch::populate_column_mapping(ColumnDescriptor* column, int32_t node
bool matched = false;
while (false == work_list.empty()) {
auto& cur = work_list.top();
int32_t cur_depth = std::get<0>(cur);
DescriptorList::iterator cur_it = std::get<1>(cur);
int32_t cur_node_id = std::get<2>(cur);
auto [cur_depth, cur_it, cur_node_id] = cur;
work_list.pop();
if (prev_level != cur_depth) {
prev_level = cur_depth;
Expand Down Expand Up @@ -177,7 +175,8 @@ bool SchemaMatch::populate_column_mapping(ColumnDescriptor* column, int32_t node
accepted = true;
} else if (empty_key) {
accepted = true;
} else if (false == at_descriptor_list_end && cur_node.get_key_name() == cur_it->get_token())
} else if ((false == at_descriptor_list_end
&& cur_node.get_key_name() == cur_it->get_token()))
{
accepted = true;
}
Expand All @@ -203,7 +202,8 @@ bool SchemaMatch::populate_column_mapping(ColumnDescriptor* column, int32_t node
m_column_to_descriptor[cur_node_id].insert(column);
matched = true;
continue;
} else if (next_at_descriptor_list_end && column->matches_type(node_to_literal_type(cur_node.get_type())))
} else if ((next_at_descriptor_list_end
&& column->matches_type(node_to_literal_type(cur_node.get_type()))))
{
if (false == column->is_unresolved_descriptor()) {
m_column_to_descriptor[cur_node_id].insert(column);
Expand Down

0 comments on commit f37b57c

Please sign in to comment.