sam-1112 commented on issue #7500: URL: https://github.com/apache/datafusion-comet/issues/7500#issuecomment-7080316058
I plan to address this issue through two Comet PRs: 1. **Output-size accounting and kernel safeguards.** This PR will cover `base64`, `randstr`, `lpad`/`rpad`, and binary-to-string casts. It will add checked size calculations and guards before allocation, accounting for UTF-8 byte lengths, NULLs, and sliced inputs. It will also include regression tests with small internal byte budgets and microbenchmarks to check overhead on ordinary workloads. This work can proceed independently of #7316. 2. **Runtime splitting to match Spark’s behavior.** Building on the shared splitting machinery from #7316 once it lands, this PR will split inputs before evaluating expanding expressions and allow one input batch to produce multiple output batches. Tests will cover row/column alignment, NULLs, seeded RNG continuity, LIMIT, cancellation, and an opt-in test at the actual offset boundary. I will coordinate the multi-output contract with #7498. The upstream `repeat` overflow guard is tracked separately in apache/datafusion#27623. -- 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]
