Mihaly Szjatinya has posted comments on this change. ( https://gerrit.cloudera.org/24986 )
Change subject: IMPALA-15004: [WIP] Write NDV stats to Iceberg Puffin files in COMPUTE STATS ...................................................................... Patch Set 4: > Patch Set 4: > > (1 comment) That's a good question. Given the existing '--enable_reading_puffin_stats' (default true), when set to false it would conflict with the query option 'new way'. That's why perhaps we can exclude that and make the query option boolean, with 'both' becoming 'true' writing to both places as you suggested. And that would be the default value. As for the 'new way', it only makes sense for standalone mode (IMPALA-15507) anyway, but in that mode that's also the only way, hence it's not even needed there, i.e. should be ignored with warning. Besides, the 'new way' would require an exception case for sampling, which is not supported by theta. NOTE: regarding the speed of 'both' a.k.a 'true', yes, that's faster than reading both, but it made me thinking why do we have a separate query in the first place? I don't see strong argument why it can't always be done in a single query. We can think of as a spin-off jira for that. NOTE2: having a flag (+ table property) for reading vs query option for writing would normally raise the asymmetry concern. But hey, reading and writing of the stats are very different operations in the first place, so there's no way to achieve symmetry. Besides we have a similarly convoluted design already for sampling / extrapolation. Pls share your thoughts. -- To view, visit https://gerrit.cloudera.org/24986 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I0112492a9fb156b5317d8e0a6bb3dcf18ae6eeec Gerrit-Change-Number: 24986 Gerrit-PatchSet: 4 Gerrit-Owner: Mihaly Szjatinya <[email protected]> Gerrit-Reviewer: Csaba Ringhofer <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Mihaly Szjatinya <[email protected]> Gerrit-Reviewer: Peter Rozsa <[email protected]> Gerrit-Comment-Date: Tue, 10 Nov 2026 12:41:16 +0000 Gerrit-HasComments: No
