xiedeyantu commented on PR #21498:
URL: https://github.com/apache/datafusion/pull/21498#issuecomment-4212669024

   A problem was exposed during the benchmark tests in #21236, as follows:
   ```
   thread 'main' (37232) panicked at 
datafusion/core/benches/sql_planner.rs:57:14:
   called `Result::unwrap()` on an `Err` value: Context("Optimizer rule 
'simplify_expressions' failed", ArrowError(CastError("Cannot cast string 
'2013-07-01' to value of UInt16 type"), Some("")))
   note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
   error: bench failed, to rerun pass `-p datafusion --bench sql_planner`
   ```
   I've attempted to make an adjustment, though I'm not entirely sure if it's 
correct. If you have a moment, could you please take a look? Thanks! @xudong963 
@neilconway 
   I referred to this source, but I'm not sure if this approach is correct, or 
perhaps there is an issue with my PR; I currently don't know how to pinpoint 
the problem. 
[link](https://github.com/apache/datafusion/blob/e1ad8713fec0f0c704dae1f290c6006273ad11be/datafusion/core/tests/sql/unparser.rs#L149)


-- 
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