shehabgamin commented on code in PR #15168:
URL: https://github.com/apache/datafusion/pull/15168#discussion_r2065538751


##########
datafusion/spark/src/lib.rs:
##########
@@ -0,0 +1,154 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+#![doc(
+    html_logo_url = 
"https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg";,
+    html_favicon_url = 
"https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg";
+)]
+#![cfg_attr(docsrs, feature(doc_auto_cfg))]
+// Make cheap clones clear: https://github.com/apache/datafusion/issues/11143
+#![deny(clippy::clone_on_ref_ptr)]
+
+//! Spark Expression packages for [DataFusion].
+//!
+//! This crate contains a collection of various Spark expression packages for 
DataFusion,
+//! implemented using the extension API. Users may wish to control which 
functions
+//! are available to control the binary size of their application.
+//!
+//! Each package is implemented as a separate
+//! module, activated by a feature flag.
+//!
+//! [DataFusion]: https://crates.io/crates/datafusion
+//!
+//! # Available Packages
+//! See the list of [modules](#modules) in this crate for available packages.
+//!
+//! # Using A Package
+//! You can register all functions in all packages using the [`register_all`] 
function.
+//!
+//! Each package also exports an `expr_fn` submodule to help create [`Expr`]s 
that invoke
+//! functions using a fluent style. For example:
+//!
+//![`Expr`]: datafusion_expr::Expr
+
+pub mod function;
+
+use datafusion_catalog::TableFunction;
+use datafusion_common::Result;
+use datafusion_execution::FunctionRegistry;
+use datafusion_expr::{AggregateUDF, ScalarUDF, WindowUDF};
+use log::debug;
+use std::sync::Arc;
+
+/// Fluent-style API for creating `Expr`s
+#[allow(unused)]

Review Comment:
   Linter yells at me otherwise



##########
datafusion/spark/src/lib.rs:
##########
@@ -0,0 +1,154 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+#![doc(
+    html_logo_url = 
"https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg";,
+    html_favicon_url = 
"https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg";
+)]
+#![cfg_attr(docsrs, feature(doc_auto_cfg))]
+// Make cheap clones clear: https://github.com/apache/datafusion/issues/11143
+#![deny(clippy::clone_on_ref_ptr)]
+
+//! Spark Expression packages for [DataFusion].
+//!
+//! This crate contains a collection of various Spark expression packages for 
DataFusion,
+//! implemented using the extension API. Users may wish to control which 
functions
+//! are available to control the binary size of their application.
+//!
+//! Each package is implemented as a separate
+//! module, activated by a feature flag.
+//!
+//! [DataFusion]: https://crates.io/crates/datafusion
+//!
+//! # Available Packages
+//! See the list of [modules](#modules) in this crate for available packages.
+//!
+//! # Using A Package
+//! You can register all functions in all packages using the [`register_all`] 
function.
+//!
+//! Each package also exports an `expr_fn` submodule to help create [`Expr`]s 
that invoke
+//! functions using a fluent style. For example:
+//!
+//![`Expr`]: datafusion_expr::Expr
+
+pub mod function;
+
+use datafusion_catalog::TableFunction;
+use datafusion_common::Result;
+use datafusion_execution::FunctionRegistry;
+use datafusion_expr::{AggregateUDF, ScalarUDF, WindowUDF};
+use log::debug;
+use std::sync::Arc;
+
+/// Fluent-style API for creating `Expr`s
+#[allow(unused)]
+pub mod expr_fn {
+    pub use super::function::aggregate::expr_fn::*;

Review Comment:
   Yes, exactly!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to