Skip to content

Commit fcd907d

Browse files
authored
refactor: move aggregate_statistics to datafusion-physical-optimizer (#11798)
* refactor: move aggregate statistics to datafusion-physical-optimizer * chore * chore: Update cargo lock * refactor: Move COUNT_STAR_EXPANSION to datafusion_common * refactor: Move tests to core/tests
1 parent c6f0d3c commit fcd907d

File tree

11 files changed

+770
-704
lines changed

11 files changed

+770
-704
lines changed

datafusion-cli/Cargo.lock

Lines changed: 58 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

datafusion/common/src/utils/expr.rs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Licensed to the Apache Software Foundation (ASF) under one
2+
// or more contributor license agreements. See the NOTICE file
3+
// distributed with this work for additional information
4+
// regarding copyright ownership. The ASF licenses this file
5+
// to you under the Apache License, Version 2.0 (the
6+
// "License"); you may not use this file except in compliance
7+
// with the License. You may obtain a copy of the License at
8+
//
9+
// http://www.apache.org/licenses/LICENSE-2.0
10+
//
11+
// Unless required by applicable law or agreed to in writing,
12+
// software distributed under the License is distributed on an
13+
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
// KIND, either express or implied. See the License for the
15+
// specific language governing permissions and limitations
16+
// under the License.
17+
18+
//! Expression utilities
19+
20+
use crate::ScalarValue;
21+
22+
/// The value to which `COUNT(*)` is expanded to in
23+
/// `COUNT(<constant>)` expressions
24+
pub const COUNT_STAR_EXPANSION: ScalarValue = ScalarValue::Int64(Some(1));

datafusion/common/src/utils/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
//! This module provides the bisect function, which implements binary search.
1919
20+
pub mod expr;
2021
pub mod memory;
2122
pub mod proxy;
2223

0 commit comments

Comments
 (0)