-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Statistics, introduce precision estimates (
Exact
, `Inexact…
…`, `Absent`) (#7793) * analysis context refactored * is_exact fix * Minor changes * minor changes * Minor changes * Minor changes * datatype check added, statistics default removed * MemExec uses the stats of projections, agg optimize excludes unbounded cases * fix after merge * proto fix * Simplifications * statistics() returns result * fix after merge * Simplifications * Remove option from column stats * exact info added * error in agg optimization * bugs are fixed * negative expr support * fix after merge * fix after merge * Minor changes, simplifications * minor changes * min max accs removed * fix after merge * minor changes * fix initialization of stats in limit * minor changes * Simplifications * more accurate row calculations * Improve comments * min-max values are init as absent, not inf * fix after merge * Review Part 1 * Cardinality calculation is fixed * Review Part 2 * get_int_range replaced by cardinality function * Fix imports * Statistics display is shortened. * fix after merge * Harmonize imports * Update datafusion/physical-expr/src/intervals/interval_aritmetic.rs Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org> * Addresses the reviews * Update tests * Remove panics * 1 bug-fix, 2 code simplifications 1) get_statistics_with_limit() is simplified 2) AnalysisContext { boundaries } does not need to be an Option, it is removed. 3) Aggregation statistics() has a special handling for 0 and 1 row cases. * conflict resolved * conflict resolved * Update datafusion/physical-plan/src/filter.rs Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org> * Simplify set_max/min helpers * fix vector copy, remove clones * resolving conflict * remove clone --------- Co-authored-by: Mustafa Akur <mustafa.akur@synnada.ai> Co-authored-by: Mehmet Ozan Kabak <ozankabak@gmail.com> Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
- Loading branch information
1 parent
2cd1706
commit c9330bc
Showing
90 changed files
with
2,791 additions
and
2,216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.