Thread SimpleMemoryUsageToken through ProjectionStage

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      ProjectionStage will create a SimpleMemoryUsageTracker using createChunkedSimpleMemoryUsageTrackerForStage. No per-stage limit is configured, the default INT_MAX is used. The tracker is threaded down through TransformerInterface::applyTransformation() --> ProjectionExecutor::applyProjection() --> ProjectionNode::applyExpressions(). The flags gFeatureFlagExpressionMemoryTracking and gFeatureFlagMemoryTracking must be checked before passing the tracker.

      As part of the expression memory tracking work, ProjectionStage will serialise the tracker into the executionStats explain output.

            Assignee:
            Projjal Chanda
            Reporter:
            Foteini Alvanaki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: