Anubhav Jindal has posted comments on this change. ( https://gerrit.cloudera.org/25418 )
Change subject: IMPALA-15561: [DOCS] AVG_COLLECTION_SIZE query option ...................................................................... Patch Set 2: (5 comments) Thanks a lot for working on this, the page is shaping up nicely! I left a few suggestions. https://gerrit.cloudera.org/#/c/25418/2/docs/impala.ditamap File docs/impala.ditamap: https://gerrit.cloudera.org/#/c/25418/2/docs/impala.ditamap@196 PS2, Line 196: <topicref rev="4.4.0" href="topics/impala_avg_collection_size.xml"/> Two small things here: the rev should be "5.0.0" instead of "4.4.0", since this option is new in 5.0. Also, could you move this line one line down, after impala_appx_count_distinct.xml? That keeps the list in alphabetical order ("appx" comes before "avg"). https://gerrit.cloudera.org/#/c/25418/2/docs/topics/impala_avg_collection_size.xml File docs/topics/impala_avg_collection_size.xml: https://gerrit.cloudera.org/#/c/25418/2/docs/topics/impala_avg_collection_size.xml@38 PS2, Line 38: average size (in rows) of collection elements for cardinality estimation. Used by the query "Average size (in rows) of collection elements" sounds like it's describing how big each element is. The option is really the number of elements the planner assumes are in each array or map. How about: "Specifies the average number of elements the planner assumes each ARRAY or MAP value contains, used for cardinality estimation." https://gerrit.cloudera.org/#/c/25418/2/docs/topics/impala_avg_collection_size.xml@47 PS2, Line 47: <p><b>Units:</b> Numeric value (number of rows)</p> I think this might be covered already by the type line above. Instead, it could be helpful to mention that 0 is allowed and negative values are rejected. What do you think? https://gerrit.cloudera.org/#/c/25418/2/docs/topics/impala_avg_collection_size.xml@62 PS2, Line 62: <p>You can determine the actual average collection size by running sample queries and dividing Just a tip that might make this easier for users: the query profile already shows an AvgCollectionSize counter on the UNNEST node (along with Max and Min). Maybe we could point readers to that? https://gerrit.cloudera.org/#/c/25418/2/docs/topics/impala_avg_collection_size.xml@73 PS2, Line 73: SELECT COUNT(*) FROM users u, u.tags t WHERE t.tag_value > 100; Would it be possible to use a real table here, like functional_parquet.complextypestbl with int_array? That way readers can run the example themselves. Thanks! -- To view, visit https://gerrit.cloudera.org/25418 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I2e36dfd364f93f642797d88da40cd4aabfec4f72 Gerrit-Change-Number: 25418 Gerrit-PatchSet: 2 Gerrit-Owner: Sanjana Malhotra <[email protected]> Gerrit-Reviewer: Anubhav Jindal <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Sanjana Malhotra <[email protected]> Gerrit-Reviewer: Xuebin Su <[email protected]> Gerrit-Comment-Date: Tue, 24 Nov 2026 23:52:12 +0000 Gerrit-HasComments: Yes
