chore(sql): add GroupByArraySink#6237
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
de72815 to
0484a28
Compare
core/src/main/java/io/questdb/griffin/engine/groupby/GroupByArraySink.java
Outdated
Show resolved
Hide resolved
core/src/main/java/io/questdb/griffin/engine/groupby/GroupByArraySink.java
Outdated
Show resolved
Hide resolved
… of 8, as well as ask the caller to provide the type.
core/src/main/java/io/questdb/griffin/engine/groupby/GroupByArraySink.java
Outdated
Show resolved
Hide resolved
core/src/main/java/io/questdb/griffin/engine/groupby/GroupByArraySink.java
Show resolved
Hide resolved
core/src/test/java/io/questdb/test/griffin/engine/groupby/GroupByArraySinkTest.java
Outdated
Show resolved
Hide resolved
…the ArrayTypeDriver
core/src/main/java/io/questdb/griffin/engine/groupby/GroupByArraySink.java
Outdated
Show resolved
Hide resolved
core/src/test/java/io/questdb/test/griffin/engine/groupby/GroupByArraySinkTest.java
Show resolved
Hide resolved
…bleValue()) to the appendCompactPlainArray
…ew compact layout and the existing one
… This is because the previous approach using getFlatViewLength can only be trusted with a vanilla array.
core/src/test/java/io/questdb/test/griffin/engine/groupby/GroupByArraySinkTest.java
Show resolved
Hide resolved
|
Linter step is unhappy with javadoc formatting. Could you add the missing padding? |
|
The PR is almost there. Great job! |
puzpuzpuz
left a comment
There was a problem hiding this comment.
Thanks for the solid contribution!
|
Thanks for the clear and quick feedback on this PR! |
|
@puzpuzpuz thanks for the approval! Is there anything else I can do for this PR? If it gets merged, I can proceed with doing |
Nope, nothing to do here. I don't have the merge permissions and the rest of the team is pretty busy, so it'll take some time. You could create a separate PR that is dependent on this one and, once this one is merged, simply do a rebase. |
|
Got it, thanks! |
Relates to #4120.
In #4097, a specialized allocator for aggregate functions was introduced and a couple of them migrated to use it.
This PR follows-up by adding
GroupByArraySinkwhich we will then use in a subsequent PR to portlast(array).