tlfua commented on PR #7456:
URL: 
https://github.com/apache/datafusion-comet/pull/7456#issuecomment-7076669732

   @andygrove Thanks for the review. Both points are addressed in 
d54d9a46971379517046848d99bee7b7b06569d9 ( 
https://github.com/apache/datafusion-comet/pull/7456/commits/d54d9a46971379517046848d99bee7b7b06569d9
 ).
   
   - `cannot_fail` in `case_when.rs` now accepts a `CheckOverflow` that does 
not fail on error, the decimal `+`, `-` and `*` the planner builds as a 
`BinaryExpr`, the string functions `upper`, `lower`, `trim`, `ltrim`, `rtrim` 
and `substring`, and the widening integer casts the planner adds to their 
arguments. So the LEGACY `p * (1.00 - d)` and `concat(q, upper(s))` are no 
longer wrapped at all. Details in the replies to coderfender's inline comments.
   - The `speculate` field in `null_short_circuit.rs` now says why it is not 
tried again.
   
   Benchmark ( 
https://github.com/tlfua/datafusion-comet/actions/runs/44997668179 ), µs per 
batch, before is 5b7d5d80e and after is this commit, best of two rounds:
   
   | shape | NULL rows | eager | lazy before | lazy after |
   |---|---|---|---|---|
   | `legacy_decimal_mul_nested_sub` | 0% | 41.9 | 42.2 | 41.9 |
   | | 50% | 32.7 | 34.3 | 32.6 |
   | | 70% | 26.5 | 22.0 | 26.3 |
   | | 90% | 21.0 | 11.1 | 20.8 |
   | `concat_upper` | 0% | 96.9 | 97.3 | 90.2 |
   | | 50% | 101.1 | 125.8 | 97.6 |
   | | 70% | 93.4 | 98.3 | 92.7 |
   | | 90% | 87.9 | 77.5 | 87.2 |
   
   Both shapes now run as eager does, as on `branch-1.2`, at every NULL 
fraction. That removes the slowdown at 50% and also the speedup at 90%, which 
came from skipping rows that need no skipping. The other shapes are within 
noise of before.
   
   CI: https://github.com/tlfua/datafusion-comet/actions/runs/44981711259 
(green; three jobs failed first on a Maven Central 429 and passed on rerun)


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