Sanjana Malhotra has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/24993 )

Change subject: IMPALA-15415: [DOCS] Documentation for HBO
......................................................................


Patch Set 1:

(12 comments)

http://gerrit.cloudera.org:8080/#/c/24993/1/docs/topics/impala_history_based_optimization.xml
File docs/topics/impala_history_based_optimization.xml:

http://gerrit.cloudera.org:8080/#/c/24993/1/docs/topics/impala_history_based_optimization.xml@38
PS1, Line 38: cardinality
> "execution" or "runtime" is better. Cardinality is one kind of stats and we
Sure, updated with runtime.


http://gerrit.cloudera.org:8080/#/c/24993/1/docs/topics/impala_history_based_optimization.xml@39
PS1, Line 39:       query processing and stores them in the HBO cache. During 
subsequent query planning, the
> Could we mention that the cache is currently per-coordinator and lost on re
Done


http://gerrit.cloudera.org:8080/#/c/24993/1/docs/topics/impala_history_based_optimization.xml@42
PS1, Line 42:     <p>HBO support is implemented incrementally by plan node 
types. Impala currently supports HBO
            :       for the following plan nodes:</p>
            :     <ul>
            :       <li>ScanNode</li>
            :       <li>AggregationNode</li>
            :       <li>UnionNode</li>
            :       <li>JoinNode</li>
            :     </ul>
> This will be stale quickly since we are actively adding new node types. Mig
Done


http://gerrit.cloudera.org:8080/#/c/24993/1/docs/topics/impala_history_based_optimization.xml@55
PS1, Line 55:     <p outputclass="toc inpage all"/>
> Can we show some examples? e.g. use some outputs from
Done


http://gerrit.cloudera.org:8080/#/c/24993/1/docs/topics/impala_history_based_optimization.xml@70
PS1, Line 70:               STORE_HBO_STATS</codeph>=<codeph>true</codeph>;</li>
> Let's mention the historical execution stats are stored asynchronously afte
Done


http://gerrit.cloudera.org:8080/#/c/24993/1/docs/topics/impala_history_based_optimization.xml@97
PS1, Line 97:                   <entry>Specifies the similarity threshold value 
used to match queries against historical entries in the HBO cache.</entry>
> The threshold compares scan input statistics (default 10%), and keys identi
Done


http://gerrit.cloudera.org:8080/#/c/24993/1/docs/topics/impala_history_based_optimization.xml@101
PS1, Line 101: query
> The key can be shared by similar queries. Using "hash key" might be more sp
Done


http://gerrit.cloudera.org:8080/#/c/24993/1/docs/topics/impala_history_based_optimization.xml@105
PS1, Line 105:                   <entry>Specifies the maximum memory size, in 
bytes, allocated for the in-memory backend HBO cache.</entry>
> Let's mention the default values for these flags. We can also reuse some de
Done


http://gerrit.cloudera.org:8080/#/c/24993/1/docs/topics/impala_store_hbo_stats.xml
File docs/topics/impala_store_hbo_stats.xml:

http://gerrit.cloudera.org:8080/#/c/24993/1/docs/topics/impala_store_hbo_stats.xml@40
PS1, Line 40: upon completion
> Let's emphasize its asynchronous.
updating with <p>When enabled, Impala collects actual cardinality statistics 
during query processing and stores
      them asynchronously in the HBO cache after the query completes. This 
asynchronous storage does
      not add significant latency to query execution. These saved entries 
provide the historical
      baseline used during future query planning when 
<parmname>USE_HBO_STATS</parmname> is
      enabled.</p>


http://gerrit.cloudera.org:8080/#/c/24993/1/docs/topics/impala_store_hbo_stats.xml@49
PS1, Line 49: (ScanNode, AggregationNode, UnionNode, and JoinNode)
> This is stale since SortNode is also supported now. Let's use "e.g. HdfsSca
Done


http://gerrit.cloudera.org:8080/#/c/24993/1/docs/topics/impala_use_hbo_stats.xml
File docs/topics/impala_use_hbo_stats.xml:

http://gerrit.cloudera.org:8080/#/c/24993/1/docs/topics/impala_use_hbo_stats.xml@40
PS1, Line 40: (ScanNode,
            :       AggregationNode, UnionNode, or JoinNode)
> use "e.g. ..."
Done


http://gerrit.cloudera.org:8080/#/c/24993/1/docs/topics/impala_use_hbo_stats.xml@49
PS1, Line 49:       <li>Enable this option in combination with 
<parmname>STORE_HBO_STATS</parmname> to participate
> Reading and storing history can be enabled independently. This wording make
Updating with <li>You can enable <parmname>USE_HBO_STATS</parmname> and 
<parmname>STORE_HBO_STATS</parmname>
        independently. Enable <parmname>STORE_HBO_STATS</parmname> to collect 
and store statistics,
        and enable <parmname>USE_HBO_STATS</parmname> to read and apply stored 
statistics during
        query planning. Enable both options to fully participate in 
history-based plan
        optimization.</li>



--
To view, visit http://gerrit.cloudera.org:8080/24993
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I75fc76691ceed4e74e5c1aec3a409e1c41d4db7d
Gerrit-Change-Number: 24993
Gerrit-PatchSet: 1
Gerrit-Owner: Sanjana Malhotra <[email protected]>
Gerrit-Reviewer: Aleksandr Efimov <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Quanlong Huang <[email protected]>
Gerrit-Reviewer: Sanjana Malhotra <[email protected]>
Gerrit-Comment-Date: Mon, 12 Oct 2026 14:45:33 +0000
Gerrit-HasComments: Yes

Reply via email to