Optimized Python silently drops empty tuples
- Dominant language
- Scala
- Stars
- 314
- Forks
- 187
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 214
Description
### Feature Summary
Tuple construction rejects empty values with an assert. Optimized Python removes that guard, accepts an empty output tuple, and table conversion silently turns the one output row into zero rows.
Before: empty tuple in optimized Python -> zero pandas and Arrow rows
After: empty tuple in every Python mode -> ValueError
Reproduction evidence:
Run optimized Python, construct an empty Tuple, then build a Table and Arrow table from it.
Version and commit evidence:
1.3.0-incubating-SNAPSHOT (main)
**Commit Hash**
70c21145887920528d7d5540e3fb790b43e8b759
**What browsers are you seeing the problem on?**
Not browser-specific.
**Relevant log output**
```text
optimized= True
tuple_fields= 0
pandas_rows= 0
arrow_rows= 0
error_raised= False
```
### Proposed Solution or Design
After: empty tuple in every Python mode -> ValueError
### Affected Area
Workflow Engine (Amber)
Contributor guide
Assessment
This issue has not been assessed yet.