-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add serde for ColumnBasedRowsAndColumns to fix window queries without group by #16658
Add serde for ColumnBasedRowsAndColumns to fix window queries without group by #16658
Conversation
...rc/main/java/org/apache/druid/query/rowsandcols/concrete/ColumnBasedFrameRowsAndColumns.java
Outdated
Show resolved
Hide resolved
sql/src/test/resources/calcite/tests/window/wikipediaFramedAggregations.sqlTest
Show resolved
Hide resolved
...est/java/org/apache/druid/query/rowsandcols/concrete/ColumnBasedFrameRowsAndColumnsTest.java
Outdated
Show resolved
Hide resolved
processing/src/main/java/org/apache/druid/query/rowsandcols/concrete/FrameRowsAndColumns.java
Outdated
Show resolved
Hide resolved
false, | ||
ByteBuffer.allocate(Frame.compressionBufferSize((int) frame.numBytes())), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
compression
is false; meanwhile a compressionBuffer
is being allocated at every call - is that required?
if its needed - would it be possible to reuse the buffer later?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we are not trying to compress, I made the buffer null
Lets discuss on this, If compression can improve the performance, I can work on follow-up PR to do that work
processing/src/main/java/org/apache/druid/jackson/DruidDefaultSerializersModule.java
Show resolved
Hide resolved
) | ||
); | ||
|
||
ColumnBasedFrameRowsAndColumns frc = ColumnBasedFrameRowsAndColumnsTest.buildFrame(input); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking if this creation could be generailzed by adding it to RowsAndColumnsTestBase#MAKERS
- or that's not really usefull?
processing/src/main/java/org/apache/druid/query/rowsandcols/LazilyDecoratedRowsAndColumns.java
Outdated
Show resolved
Hide resolved
processing/src/main/java/org/apache/druid/query/rowsandcols/RowsAndColumns.java
Outdated
Show resolved
Hide resolved
processing/src/main/java/org/apache/druid/query/rowsandcols/RowsAndColumns.java
Outdated
Show resolved
Hide resolved
processing/src/test/java/org/apache/druid/common/semantic/SemanticCreatorUsageTest.java
Outdated
Show resolved
Hide resolved
@@ -16086,6 +16086,7 @@ public void testScanAndSortOnJoin() | |||
.run(); | |||
} | |||
|
|||
@NotYetSupported(Modes.UNSUPPORTED_DATASOURCE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm.. I wonder how did this started to happen?
its not a blocker just interested
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not very sure though, but I expected this was because we used to send empty to window operator query and that has been changed now. Let me check the actual difference and comment back.
processing/src/main/java/org/apache/druid/query/rowsandcols/concrete/FrameRowsAndColumns.java
Outdated
Show resolved
Hide resolved
… group by (apache#16658) Register a Ser-De for RowsAndColumns so that the window operator query running on leaf operators would be transferred properly on the wire. Would fix the empty response given by window queries without group by on the native engine.
… group by (apache#16658) Register a Ser-De for RowsAndColumns so that the window operator query running on leaf operators would be transferred properly on the wire. Would fix the empty response given by window queries without group by on the native engine.
… group by (apache#16658) Register a Ser-De for RowsAndColumns so that the window operator query running on leaf operators would be transferred properly on the wire. Would fix the empty response given by window queries without group by on the native engine. (cherry picked from commit bb1c3c1)
… group by (apache#16658) Register a Ser-De for RowsAndColumns so that the window operator query running on leaf operators would be transferred properly on the wire. Would fix the empty response given by window queries without group by on the native engine. (cherry picked from commit bb1c3c1)
Description
Register a Ser-De for RowsAndColumns so that the window operator query running on leaf operators would be transferred properly on the wire. Would fix the empty response given by window queries without group by on the native engine.
Key changed/added classes in this PR
RowsAndColumns
FrameRowsAndColumns
DruidDefaultSerializersModule
This PR has: