Github user hbdeshmukh commented on the issue:
https://github.com/apache/incubator-quickstep/pull/14
We pass query ID in ``QueryContext`` so that it serves as a single point of
entrance for propagating query ID to any other data structures or classes
specific to that query. e.g. In ``optimizer/ExecutionGenerator``, we pass the
query ID from query handle to the ``QueryContext``, which in turn passes the
query ID to the InsertDestination.
We could also have passed the query ID directly to the insert destination
proto while generating the plan. However, in the future if we have a data
structure that's not created during the plan generation, but created in the
QueryContext instead, we can still pass the query ID through QueryContext.
As for the data structure, please the ``PolicyEnforcer`` keeps a map from
query ID to its ``QueryManager``. The ``QueryManager`` instance has the
``QueryContext`` object for that query.
---
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.
---