TAJO-919: Implement LAG and LEAD window functions#351
TAJO-919: Implement LAG and LEAD window functions#351sirpkt wants to merge 5 commits intoapache:masterfrom
Conversation
There was a problem hiding this comment.
It should be 'nth next row' instead of 'nth previous ...'.
|
I'll review it soon. This feature is very desired in many applications. It would be great if we add this feature to 0.10. |
|
According to https://wiki.postgresql.org/wiki/SQL2008_windowing_queries, the offset is a positive integer (offset > 0). So, your assumption would be right. If offset or default value is omitted, default offset will be 1 and default value will be null. |
Do you mean a LinkedList in LeadContext? It does not seem to keep all rows in the same partition. |
|
Thank you for the review, @hyunsik. Yes, I mean that LinkedList. |
|
I just fixed the wrong description of lead functions. |
|
Thank you @sirpkt for your description and your fixes. I'm also sorry for late response. I took flight, and I just get back into harness. I just wondered that you mentioned 'all rows' because in my view LinkedList seems to keep all column values. |
|
Sorry for making you confused. |
|
Thank you for correcting that. I'll finish the review as soon as possible. |
|
+1 ship it. The patch looks good to me. |
|
@sirpkt Could you add this patch to both master and 0.10.0 branch? |
|
Thank you for the review, @hyunsik |
|
Hi, @hyunsik, @sirpkt. |
This patch contains following changes
There are some arguable points
Any idea about above points and about other parts of the patch, please.
I checked 'mvn clean install'