You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@iotdb.apache.org by Zh D <dz...@gmail.com> on 2026/07/18 05:38:13 UTC
Requesting review: PR #17411 -- last_by returns a stale row after deleting all data
Hi all,
I'm Zihan Dai, a GSoC 2026 contributor working on the ThingsBoard-on-IoTDB
Table Mode integration. I have a small query-correctness fix that has been
open for a while, and I'd be grateful if a committer could take a look --
or approve the CI run so the checks can execute:
PR #17411 -- Fix last_by returning a null row after deleting all table data
(issue #16985):
https://www.google.com/url?q=https://github.com/apache/iotdb/pull/17411&source=gmail&ust=1784438979404000&sa=E
The root cause: when a value chunk is fully deleted, it was not being
marked as "modified", so the last-value cache kept serving the deleted row
and last_by returned it instead of an empty result. The fix is small and
coordinated across the delete-recognition and last-query paths, plus two
integration tests reproducing the full-delete scenario. I have just rebased
it onto current master, so it is conflict-free.
Thank you for your time!
Best regards,
Zihan Dai
Re:Requesting review: PR #17411 -- last_by returns a stale row after deleting all data
Posted by Weihao Li <18...@163.com>.
Hi Zihan,
Thanks for your contribution! I have reviewed your newest PRhttps://github.com/apache/iotdb/pull/18267 about this issue and left some comments.
Yours,
Weihao Li
At 2026-07-18 13:38:13, "Zh D" <dz...@gmail.com> wrote:
>Hi all,
>
>I'm Zihan Dai, a GSoC 2026 contributor working on the ThingsBoard-on-IoTDB
>Table Mode integration. I have a small query-correctness fix that has been
>open for a while, and I'd be grateful if a committer could take a look --
>or approve the CI run so the checks can execute:
>
>PR #17411 -- Fix last_by returning a null row after deleting all table data
>(issue #16985):
>https://www.google.com/url?q=https://github.com/apache/iotdb/pull/17411&source=gmail&ust=1784438979404000&sa=E
>
>The root cause: when a value chunk is fully deleted, it was not being
>marked as "modified", so the last-value cache kept serving the deleted row
>and last_by returned it instead of an empty result. The fix is small and
>coordinated across the delete-recognition and last-query paths, plus two
>integration tests reproducing the full-delete scenario. I have just rebased
>it onto current master, so it is conflict-free.
>
>Thank you for your time!
>
>Best regards,
>Zihan Dai
Re: Requesting review: PR #17411 -- last_by returns a stale row after deleting all data
Posted by Yuan Tian <ja...@gmail.com>.
Hi zihan,
I’ll keep an eye on it.
On Sat, Jul 18, 2026 at 13:38 Zh D <dz...@gmail.com> wrote:
> Hi all,
>
> I'm Zihan Dai, a GSoC 2026 contributor working on the ThingsBoard-on-IoTDB
> Table Mode integration. I have a small query-correctness fix that has been
> open for a while, and I'd be grateful if a committer could take a look --
> or approve the CI run so the checks can execute:
>
> PR #17411 -- Fix last_by returning a null row after deleting all table data
> (issue #16985):
>
> https://www.google.com/url?q=https://github.com/apache/iotdb/pull/17411&source=gmail&ust=1784438979404000&sa=E
>
> The root cause: when a value chunk is fully deleted, it was not being
> marked as "modified", so the last-value cache kept serving the deleted row
> and last_by returned it instead of an empty result. The fix is small and
> coordinated across the delete-recognition and last-query paths, plus two
> integration tests reproducing the full-delete scenario. I have just rebased
> it onto current master, so it is conflict-free.
>
> Thank you for your time!
>
> Best regards,
> Zihan Dai
>