From: | Zhihong Yu <zyu(at)yugabyte(dot)com> |
---|---|
To: | Krasiyan Andreev <krasiyan(at)gmail(dot)com> |
Cc: | David Fetter <david(at)fetter(dot)org>, Vik Fearing <vik(at)postgresfriends(dot)org>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Implement <null treatment> for window functions |
Date: | 2021-01-01 21:21:10 |
Message-ID: | CALNJ-vQEVZ=yyfAPzgoFOLEXVNJVOt-Lj_nQT2fU9YTi45ZKqA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Krasiyan:
Happy New Year.
For WinGetFuncArgInPartition():
+ if (target > 0)
+ step = 1;
+ else if (target < 0)
+ step = -1;
+ else
+ step = 0;
When would the last else statement execute ? Since the above code is
for WINDOW_SEEK_CURRENT, I wonder why step should be 0.
Similar question for the last else statement below
in WinGetFuncArgInFrame():
+ else if (seektype == WINDOW_SEEK_TAIL)
+ step = -1;
+ else
+ step = 0;
Thanks
On Fri, Jan 1, 2021 at 12:59 PM Krasiyan Andreev <krasiyan(at)gmail(dot)com> wrote:
> Hi, it looks like cfbot.cputube.org didn't recognize and can't apply a
> patch, so I resend it now with a different format, no other changes.
>
> На ср, 30.12.2020 г. в 22:16 ч. Krasiyan Andreev <krasiyan(at)gmail(dot)com>
> написа:
>
>> It works - now it compiles clean and all checks are passed, thank you. I
>> will continue with more complex tests.
>>
>> На ср, 30.12.2020 г. в 21:50 ч. David Fetter <david(at)fetter(dot)org> написа:
>>
>>> On Wed, Dec 30, 2020 at 09:32:26PM +0200, Krasiyan Andreev wrote:
>>> > Hi, after latest committed patches about multirange datatypes, I get a
>>> > compilation error,
>>>
>>> Oh, right. I'd been meaning to send a patch to fix that. Here it is.
>>>
>>> Best,
>>> David.
>>> --
>>> David Fetter <david(at)fetter(dot)org> http://fetter.org/
>>> Phone: +1 415 235 3778
>>>
>>> Remember to vote!
>>> Consider donating to Postgres: http://www.postgresql.org/about/donate
>>>
>>
From | Date | Subject | |
---|---|---|---|
Next Message | Justin Pryzby | 2021-01-01 21:49:30 | Re: adding wait_start column to pg_locks |
Previous Message | Krasiyan Andreev | 2021-01-01 20:58:36 | Re: Implement <null treatment> for window functions |