This is an automated email from the ASF dual-hosted git repository.
linwei pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git
The following commit(s) were added to refs/heads/main by this push:
new 537774ec1d Move optimizer integration tests to `core_integration`
(#11830)
537774ec1d is described below
commit 537774ec1d96980f492ea46981dba5467c6d720a
Author: Andrew Lamb <[email protected]>
AuthorDate: Mon Aug 5 23:53:19 2024 -0400
Move optimizer integration tests to `core_integration` (#11830)
---
datafusion/core/tests/core_integration.rs | 6 +++++
.../{optimizer_integration.rs => optimizer/mod.rs} | 0
.../aggregate_statistics.rs} | 0
.../mod.rs} | 28 +---------------------
.../physical-optimizer/src/aggregate_statistics.rs | 2 ++
5 files changed, 9 insertions(+), 27 deletions(-)
diff --git a/datafusion/core/tests/core_integration.rs
b/datafusion/core/tests/core_integration.rs
index deb5280388..79e5056e3c 100644
--- a/datafusion/core/tests/core_integration.rs
+++ b/datafusion/core/tests/core_integration.rs
@@ -36,6 +36,12 @@ mod memory_limit;
/// Run all tests that are found in the `custom_sources_cases` directory
mod custom_sources_cases;
+/// Run all tests that are found in the `optimizer` directory
+mod optimizer;
+
+/// Run all tests that are found in the `physical_optimizer` directory
+mod physical_optimizer;
+
#[cfg(test)]
#[ctor::ctor]
fn init() {
diff --git a/datafusion/core/tests/optimizer_integration.rs
b/datafusion/core/tests/optimizer/mod.rs
similarity index 100%
rename from datafusion/core/tests/optimizer_integration.rs
rename to datafusion/core/tests/optimizer/mod.rs
diff --git a/datafusion/core/tests/physical_optimizer_integration.rs
b/datafusion/core/tests/physical_optimizer/aggregate_statistics.rs
similarity index 100%
rename from datafusion/core/tests/physical_optimizer_integration.rs
rename to datafusion/core/tests/physical_optimizer/aggregate_statistics.rs
diff --git a/datafusion/core/tests/core_integration.rs
b/datafusion/core/tests/physical_optimizer/mod.rs
similarity index 53%
copy from datafusion/core/tests/core_integration.rs
copy to datafusion/core/tests/physical_optimizer/mod.rs
index deb5280388..0ee89a3d21 100644
--- a/datafusion/core/tests/core_integration.rs
+++ b/datafusion/core/tests/physical_optimizer/mod.rs
@@ -15,30 +15,4 @@
// specific language governing permissions and limitations
// under the License.
-/// Run all tests that are found in the `sql` directory
-mod sql;
-
-/// Run all tests that are found in the `dataframe` directory
-mod dataframe;
-
-/// Run all tests that are found in the `macro_hygiene` directory
-mod macro_hygiene;
-
-/// Run all tests that are found in the `expr_api` directory
-mod expr_api;
-
-/// Run all tests that are found in the `fifo` directory
-mod fifo;
-
-/// Run all tests that are found in the `memory_limit` directory
-mod memory_limit;
-
-/// Run all tests that are found in the `custom_sources_cases` directory
-mod custom_sources_cases;
-
-#[cfg(test)]
-#[ctor::ctor]
-fn init() {
- // Enable RUST_LOG logging configuration for test
- let _ = env_logger::try_init();
-}
+mod aggregate_statistics;
diff --git a/datafusion/physical-optimizer/src/aggregate_statistics.rs
b/datafusion/physical-optimizer/src/aggregate_statistics.rs
index 0ce92df393..66b250c506 100644
--- a/datafusion/physical-optimizer/src/aggregate_statistics.rs
+++ b/datafusion/physical-optimizer/src/aggregate_statistics.rs
@@ -296,3 +296,5 @@ fn is_max(agg_expr: &dyn AggregateExpr) -> bool {
}
false
}
+
+// See tests in datafusion/core/tests/physical_optimizer
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]