Replies: 1 comment 1 reply
-
Yes, if By contrast - global stats per snapshot have limited utility. Having global stats is useful since we can use it during query planning and optimization - i.e. if we know an integer field is within the range The only drawback to having global stats is in case of deletions drastically changing the stats. Currently we only expand the min/max stats on inserts, and leave them as-is on deletions. As a result, the If we were to add support to recomputing the min/max bounds after significant deletions to the table, this would only be possible if old snapshots that referred to deleted rows were actually removed. Perhaps a good compromise is to add a |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've noticed that
ducklake_table_column_stats
doesn't reference a snapshot and instead contains the latest statistics. Is there a specific reason for this?Beta Was this translation helpful? Give feedback.
All reactions