Github user zuyu commented on a diff in the pull request:
https://github.com/apache/incubator-quickstep/pull/291#discussion_r136165286
--- Diff: query_optimizer/resolver/Resolver.cpp ---
@@ -1595,6 +1742,19 @@ void
Resolver::appendProjectIfNeedPrecomputationAfterAggregation(
}
}
+void Resolver::reportIfWithClauseUnused(
+ const PtrVector<ParseSubqueryTableReference> &with_list) const {
+ if (!with_queries_info_.unreferenced_query_indexes.empty()) {
+ int unreferenced_with_query_index =
*with_queries_info_.unreferenced_query_indexes.begin();
--- End diff --
Mark `const`.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---