Repository navigation
Support of non-map columns for -Map combinator (also support for multi argument aggregate functions) - #123449
Conversation
|
Both have a fix. The failing run on
|
|
🕵 Thanks @groeneai. Merged master again (808b02f). The failures on 8b81749 are unrelated to this PR:
The PR's own tests ( |
…e outer version `mergeSerializedDuplicate` deserialized the duplicate entry with `std::nullopt`, so for a versioned nested function such as `uniqMap` the duplicate was read in the default version format rather than the state's version. Pass the outer `version` through and add a regression for `uniqMap` states of versions 0 and 1 with duplicate `NaN` keys. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
🕵 @groeneai, investigate the failure: I merged master again (3a3aefc). |
|
The fix is my #123673. This is the same defect as on #115907. The aborting table is #123673 drops a symlink's read name once the link no longer resolves to its inode, so the new file takes the inode alone. A deterministic repro of this state (a FileLog table without views, the symlink target deleted and recreated, a file with the old inode moved in, then a direct |
The `-Map` form with the key as the last argument comes from #123449, which is not in 26.8. 05485 builds its `-Map` state from a `Map` argument instead, and 05484 drops its `contingencyMap` case, which has no equivalent without that form. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The `-Map` form with the key as the last argument comes from #123449, which is not in 26.9. 05485 builds its `-Map` state from a `Map` argument instead, and 05484 drops its `contingencyMap` case, which has no equivalent without that form. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Fix for #38857
Now, -Map combinator support syntax like that:
argMaxMap(arg, val, key)It's also somewhat faster, than using
sumMap(map(key, value)Plus
aggMapStatelooks much more user friendly:Than
This supersedes #56335 by @UnamedRus (original commits and authorship are preserved). The original branch could not be updated with the latest
masterbecause the merge touches.github/workflows, which the automation token is not allowed to push to a fork. On top of the original branch this adds a merge ofmaster(reconciling the-Mapcombinator with the-Staterollback rework) andTime64key support requested in review.Closes: #38857
Related: #56335
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
-Mapcombinator can be used with non-map columns (the key is passed as the last argument, e.g.sumMap(value, key)) and supports aggregate functions with multiple arguments, e.g.argMaxMap(arg, val, key).Documentation entry for user-facing changes
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/123449]
Version info
26.10.1.1794-master(included in26.10and later)