andygrove opened a new issue, #3326:
URL: https://github.com/apache/datafusion-comet/issues/3326
## Description
Calling `space(-1)` (or any negative input) through Comet's native execution
causes a crash with:
```
failed to round upto multiple of 64
```
Spark returns an empty string for `space(-1)`.
## Steps to Reproduce
```sql
CREATE TABLE test_space(n int) USING parquet;
INSERT INTO test_space VALUES (-1);
SELECT concat('[', space(n), ']') FROM test_space;
```
## Expected Behavior
Should return `[]` (empty string padded), matching Spark behavior.
## Actual Behavior
Native execution crashes with "failed to round upto multiple of 64".
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
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]