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
Support multiple data products per unfold child #1062
The unfold design allows a generator to populate each child data cell with multiple data products. The current implementation supports one product per child.
In phlex/core/unfold_node.hpp, the generator result is unpacked as (next_value, prods). The review discussion reports that a std::tuple<next_type, T1, ..., Tn> fails to compile because the structured binding has only two names. A std::pair<next_type, std::tuple<T1, T2>> instead registers one tuple-valued product, and number_output_objects counts it as one output. As a result, output_product_suffixes(...) accepts only one suffix.
Requested change
Extend the unfold implementation to support multiple independently selectable products per child, consistent with the intended design. Review the generator return contract, output type and suffix accounting, and child product insertion. Preserve existing single-product behavior, including tuple-valued products where applicable.
Affected areas include phlex/core/unfold_node.hpp, output registration and type deduction, test/unfold_test.cpp, and docs/source/guide/unfolds.rst.
Acceptance criteria
An unfold generator can return a next value and at least two products using the supported interface.
Each child contains the products as separate outputs, with the corresponding suffixes, and downstream algorithms can select them independently.
Tests cover multi-product unfolds, suffix handling, and existing single-product behavior.
The unfold documentation describes the supported return format and product behavior.
Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.
Create Plan
🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your .coderabbit.yaml:
issue_enrichment:
auto_enrich:
enabled: false
💬 Have feedback or questions? Drop into our discord!
Activity
coderabbitai commentedon Nov 12, 2026
🔗 Related PRs
#1028 - docs: document unfolds [open]
📝 Issue Planner
Check the box below or use the
@coderabbitai plancommand to generate an implementation plan and prompts that you can use with your favorite coding assistant.🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord!