-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Fix join order for TPCH Q17 & Q18 by improving FilterExec statistics #8126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
7bf0ab6
21af5aa
ead9ea1
dcd71f3
6ca5964
8669ba6
a3725b4
4fa1b3d
61b0340
600c749
5150328
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -194,11 +194,13 @@ impl ExecutionPlan for FilterExec { | |
| fn statistics(&self) -> Result<Statistics> { | ||
| let predicate = self.predicate(); | ||
|
|
||
| let input_stats = self.input.statistics()?; | ||
| let schema = self.schema(); | ||
| if !check_support(predicate, &schema) { | ||
| return Ok(Statistics::new_unknown(&schema)); | ||
| // assume worst case, that the filter is highly selective and | ||
| // returns all the rows from its input | ||
| return Ok(input_stats.clone().into_inexact()); | ||
|
||
| } | ||
| let input_stats = self.input.statistics()?; | ||
|
|
||
| let num_rows = input_stats.num_rows; | ||
| let total_byte_size = input_stats.total_byte_size; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.