You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
INSERT into an unpartitioned table fails when fanout is disabled #43
When write.datafusion.fanout.enabled=false, insert_into always wraps the input in sort_by_partition (table/mod.rs#L216-L220). Unpartitioned tables never get a _partition column, so planning fails.
To Reproduce
-- t(id INT NOT NULL), unpartitioned, with table property write.datafusion.fanout.enabled=falseINSERT INTO t VALUES (1);
Error during planning: Partition column '_partition' not found in schema. Ensure the plan has been extended with partition values using project_with_partition.
Expected behavior
The property has no effect on unpartitioned tables, and the insert succeeds.
Additional context
Skip the sort when the partition spec is unpartitioned. Related to the partitioned case of the same setting: #38, #39.
The fix there removes this code path: once IcebergWriteExec declares its ordering requirement, insert_into no longer needs to call sort_by_partition. #38 now tracks the unpartitioned case and its repro.
Activity
andygrove commentedon Oct 1, 2026
Duplicate of #38
The fix there removes this code path: once
IcebergWriteExecdeclares its ordering requirement,insert_intono longer needs to callsort_by_partition. #38 now tracks the unpartitioned case and its repro.