Pastoray commented on PR #429: URL: https://github.com/apache/datafusion-spark/pull/429#issuecomment-7246106049
> thanks, i've pushed an update. validation now runs in the SQL planner before the cast and column context is lost, and the slt cases assert the full errors. i also removed the debug formatting for the scalar cases you listed and added argument-count checks. > > i checked spark 4.2.0 and it does include the outer double quotes, so i've kept those and clarified the cast-literal formatting in the pr description. formatting, strict clippy, all 607 rust tests and all 518 sql test runs pass. Thanks for the update, and for checking the quoting against Spark 4.2.0. I re-ran everything on `859c112`: fmt, strict clippy and `cargo check --no-default-features` are clean, 607 unit tests pass, and the slt suite passes 518/518 in both modes. All my earlier points are resolved: - The exact repro from #375 now gives `Cannot extract `QUARTERS` from "DATE '2000-01-01'"`. Timestamps, `CAST(...)` literals, `datepart`, `NULL` and plain columns (`"d"`) also look right. - The slt records assert the full messages, and I confirmed they pass in both simplify and evaluate modes. - The Debug output for `Date64`, tz-aware timestamps and strings is gone, and the argument-count check works. I also tried the `EXTRACT(EPOCH/CENTURY/DECADE/MILLISECOND FROM ...)` path, and it reports the new error. Valid fields, a column in the source argument, a non-constant field (still `must be a constant string`) and `PREPARE p(VARCHAR) AS SELECT date_part($1, ...)` behave as before. LGTM from my side. Thanks! -- 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]
