Eduardo

Results issues of Eduardo

### Describe the bug `compute_partition_keys_by_row` in `datafusion/datasource/src/write/demux.rs` renders `Date32` and `Date64` partition values as `yyyy-mm-dd` path segments with unchecked arithmetic and an `unwrap`: ```rust NaiveDate::from_num_days_from_ce_opt(EPOCH_DAYS_FROM_CE + array.value(i)).unwrap() NaiveDate::from_num_days_from_ce_opt(EPOCH_DAYS_FROM_CE + (array.value(i)...

### Describe the bug The `datafusion.format.{date,datetime,timestamp,timestamp_tz,time}_format` options are passed straight to `arrow::util::display::FormatOptions` (`TryFrom` in `datafusion/common/src/config.rs`). An invalid `strftime` specification is only detected while a value is rendered: the arrow `Display`...

### Describe the bug `unnest` on a struct is only supported as the top-level select expression. Using it anywhere else hits `assert_or_internal_err!(struct_allowed, ...)` in `RecursiveUnnestRewriter::transform` (`datafusion/sql/src/utils.rs`), so the user gets...

### Describe the bug `exec_and_print` in `datafusion-cli/src/exec.rs` parses statements with `DFParser::parse_sql_with_dialect`, which always uses the parser's built-in recursion limit (50). The session option `datafusion.sql_parser.recursion_limit` is read by `SessionState::sql_to_statement` (via `DFParserBuilder::with_recursion_limit`)...

### Describe the bug `OVER (ORDER BY x)` defaults to `RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW`, a "free range" frame with no offsets. Such a frame only needs the...

### Describe the bug `ScalarValue::partial_cmp` for list values (`partial_cmp_list` in `datafusion/common/src/scalar/mod.rs`) compares the elements with the `arrow::compute::kernels::cmp::lt` / `eq` kernels. Those kernels reject nested element types, so the comparison returns...