Skip to content

Commit 561b03b

Browse files
committed
add CountWildcardRule to fix error on Count(Expr:Wildcard) with DataFrame API
1 parent eea4084 commit 561b03b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datafusion/optimizer/src/analyzer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717

18-
use crate::count_wildcard_rule::count_wildcard_rule;
18+
use crate::count_wildcard_rule::CountWildcardRule;
1919
use crate::rewrite::TreeNodeRewritable;
2020
use datafusion_common::config::ConfigOptions;
2121
use datafusion_common::{DataFusionError, Result};
@@ -51,7 +51,7 @@ impl Analyzer {
5151
/// Create a new analyzer using the recommended list of rules
5252
pub fn new() -> Self {
5353
let rules: Vec<Arc<dyn AnalyzerRule + Send + Sync>> =
54-
vec![Arc::new(count_wildcard_rule::new())];
54+
vec![Arc::new(CountWildcardRule::new())];
5555
Self::with_rules(rules)
5656
}
5757

0 commit comments

Comments
 (0)