cht42 commented on code in PR #19711:
URL: https://github.com/apache/datafusion/pull/19711#discussion_r2678462241


##########
datafusion/sqllogictest/test_files/spark/datetime/add_months.slt:
##########
@@ -15,13 +15,38 @@
 # specific language governing permissions and limitations
 # under the License.
 

Review Comment:
   traced it back to 
https://github.com/chronotope/chrono/blob/1c0b8f011ab2f2e53c195df1866a1fb4c7fd193a/src/naive/date/mod.rs#L2034
   ```
   0: __rustc::rust_begin_unwind
                at 
/rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/std/src/panicking.rs:698:5
      1: core::panicking::panic_fmt
                at 
/rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/core/src/panicking.rs:80:14
      2: core::panicking::panic_display
                at 
/rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/core/src/panicking.rs:264:5
      3: core::option::expect_failed
                at 
/rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/core/src/option.rs:2183:5
      4: core::option::Option<T>::expect
                at 
/Users/chuet/.rustup/toolchains/1.92.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/option.rs:970:21
      5: <chrono::naive::date::NaiveDate as 
core::ops::arith::Add<chrono::month::Months>>::add
                at 
/Users/chuet/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/chrono-0.4.42/src/naive/date/mod.rs:2005:41
      6: arrow_array::delta::shift_months
                at 
/Users/chuet/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arrow-array-57.1.0/src/delta.rs:36:30
      7: arrow_array::types::Date32Type::add_year_months
                at 
/Users/chuet/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arrow-array-57.1.0/src/types.rs:934:25
      8: <arrow_array::types::Date32Type as 
arrow_arith::numeric::DateOp>::add_year_month
                at 
/Users/chuet/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arrow-arith-57.1.0/src/numeric.rs:554:12
      9: arrow_arith::numeric::date_op::{{closure}}
                at 
/Users/chuet/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arrow-arith-57.1.0/src/numeric.rs:775:47
     10: arrow_arith::arity::try_binary_no_nulls
                at 
/Users/chuet/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arrow-arith-57.1.0/src/arity.rs:385:35
     11: arrow_arith::arity::try_binary
                at 
/Users/chuet/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arrow-arith-57.1.0/src/arity.rs:274:9
     12: arrow_arith::numeric::date_op
                at 
/Users/chuet/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arrow-arith-57.1.0/src/numeric.rs:295:46
     13: arrow_arith::numeric::arithmetic_op
                at 
/Users/chuet/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arrow-arith-57.1.0/src/numeric.rs:249:24
     14: arrow_arith::numeric::add_wrapping
                at 
/Users/chuet/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arrow-arith-57.1.0/src/numeric.rs:40:5
     15: core::ops::function::Fn::call
                at 
/Users/chuet/.rustup/toolchains/1.92.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:79:5
     16: datafusion_physical_expr_common::datum::apply
                at 
/Users/chuet/Projects/foundry/datafusion/datafusion/physical-expr-common/src/datum.rs:51:25
     17: <datafusion_physical_expr::expressions::binary::BinaryExpr as 
datafusion_physical_expr_common::physical_expr::PhysicalExpr>::evaluate
     ```



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to