Skip to content

Optimized Python silently drops empty tuples #8217

Description

@carloea2

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

70c2114

What browsers are you seeing the problem on?

Not browser-specific.

Relevant log output

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions