Added unnest - #1822
Draft
ilongin wants to merge 5 commits into
Draft
Conversation
ilongin
marked this pull request as draft
June 18, 2026 12:30
Deploying datachain with
|
| Latest commit: |
d2e953f
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://18bd0b1e.datachain-2g6.pages.dev |
| Branch Preview URL: | https://ilongin-1820-unnest.datachain-2g6.pages.dev |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Contributor
|
@ilongin it might be a little bit premature implementing this. I expect a lot of unset-challenges with the coming I'd wait for Union first. Also, as we discussed before, it’s better not to pick up issues that haven’t been prioritized yet - or ask about it (I'm not sure if you had some other discussions about this issue). |
ilongin
marked this pull request as ready for review
June 22, 2026 14:44
ilongin
marked this pull request as draft
June 30, 2026 04:12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
DataChain.unnest(col)- expands a list column into rows, one row per element. Sibling columns are repeated. Equivalent to SQLUNNEST, Sparkexplode, pandas.explode(). Empty lists andNonedrop the source row (inner semantics).Naming
The industry-standard name for this is
explode, but datachain already has anexplode()that does something different (JSON-string-to-columns). To get to the standard name without breaking users, the plan is:unnestnow (this PR).explodeto something descriptive (e.g.expand_json) and keepexplodeas a deprecated alias that warns.explodeis no longer the JSON helper, aliasunnestasexplodeand deprecateunnest.This avoids a single confusing rename and lets users migrate one step at a time.