Github user hbdeshmukh commented on a diff in the pull request:
https://github.com/apache/incubator-quickstep/pull/219#discussion_r107297252
--- Diff: query_execution/QueryContext.cpp ---
@@ -58,7 +59,8 @@ QueryContext::QueryContext(const
serialization::QueryContext &proto,
const CatalogDatabaseLite &database,
StorageManager *storage_manager,
const tmb::client_id scheduler_client_id,
- tmb::MessageBus *bus) {
+ tmb::MessageBus *bus)
+ : database_(static_cast<const CatalogDatabase&>(database)) {
--- End diff --
Good catch @zuyu
The ``database`` object is needed for the function
``getTotalTempRelationMemoryInBytes``. In this function, we need the
``CatalogRelation`` objects for all the temporary relations - to get their
memory footprints. I will see if I can push this function to the
``QueryManagerSingleNode`` class.
---
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.
---