This is an automated email from the ASF dual-hosted git repository.

alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git


The following commit(s) were added to refs/heads/main by this push:
     new ac4adfac3e fix typo (#8473)
ac4adfac3e is described below

commit ac4adfac3ea0306dfdbc23e1e0ee65d0e192f784
Author: Alex Huang <[email protected]>
AuthorDate: Fri Dec 8 22:44:50 2023 +0100

    fix typo (#8473)
---
 datafusion/physical-expr/src/datetime_expressions.rs | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/datafusion/physical-expr/src/datetime_expressions.rs 
b/datafusion/physical-expr/src/datetime_expressions.rs
index d634b4d019..bbeb2b0dce 100644
--- a/datafusion/physical-expr/src/datetime_expressions.rs
+++ b/datafusion/physical-expr/src/datetime_expressions.rs
@@ -419,7 +419,7 @@ pub fn date_trunc(args: &[ColumnarValue]) -> 
Result<ColumnarValue> {
         Ok(ColumnarValue::Array(Arc::new(array)))
     }
 
-    fn process_scalr<T: ArrowTimestampType>(
+    fn process_scalar<T: ArrowTimestampType>(
         v: &Option<i64>,
         granularity: String,
         tz_opt: &Option<Arc<str>>,
@@ -432,16 +432,16 @@ pub fn date_trunc(args: &[ColumnarValue]) -> 
Result<ColumnarValue> {
 
     Ok(match array {
         ColumnarValue::Scalar(ScalarValue::TimestampNanosecond(v, tz_opt)) => {
-            process_scalr::<TimestampNanosecondType>(v, granularity, tz_opt)?
+            process_scalar::<TimestampNanosecondType>(v, granularity, tz_opt)?
         }
         ColumnarValue::Scalar(ScalarValue::TimestampMicrosecond(v, tz_opt)) => 
{
-            process_scalr::<TimestampMicrosecondType>(v, granularity, tz_opt)?
+            process_scalar::<TimestampMicrosecondType>(v, granularity, tz_opt)?
         }
         ColumnarValue::Scalar(ScalarValue::TimestampMillisecond(v, tz_opt)) => 
{
-            process_scalr::<TimestampMillisecondType>(v, granularity, tz_opt)?
+            process_scalar::<TimestampMillisecondType>(v, granularity, tz_opt)?
         }
         ColumnarValue::Scalar(ScalarValue::TimestampSecond(v, tz_opt)) => {
-            process_scalr::<TimestampSecondType>(v, granularity, tz_opt)?
+            process_scalar::<TimestampSecondType>(v, granularity, tz_opt)?
         }
         ColumnarValue::Array(array) => {
             let array_type = array.data_type();

Reply via email to