Add serde for ColumnBasedRowsAndColumns to fix window queries without group by#16658
Conversation
| false, | ||
| ByteBuffer.allocate(Frame.compressionBufferSize((int) frame.numBytes())), |
There was a problem hiding this comment.
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.
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
| ) | ||
| ); | ||
|
|
||
| ColumnBasedFrameRowsAndColumns frc = ColumnBasedFrameRowsAndColumnsTest.buildFrame(input); |
There was a problem hiding this comment.
I was thinking if this creation could be generailzed by adding it to RowsAndColumnsTestBase#MAKERS - or that's not really usefull?
| .run(); | ||
| } | ||
|
|
||
| @NotYetSupported(Modes.UNSUPPORTED_DATASOURCE) |
There was a problem hiding this comment.
hmm.. I wonder how did this started to happen?
its not a blocker just interested
There was a problem hiding this comment.
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.
… 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
RowsAndColumnsFrameRowsAndColumnsDruidDefaultSerializersModuleThis PR has: