An Id projection within a multivalued nested object leads to unexpected results with the Lucene backend

Description

Even though we are planning to restrict usage of id projection - we still want to allow it with that fromRoot projection. Calling currentLeafIdDocValues.advance( doc ); inside of an accumulating function leads to unpredictable projection results.

Activity

Show:

Yoann Rodière April 20, 2023 at 1:38 PM

Closing since this bug cannot be triggered anymore after gets merged.

Yoann Rodière April 20, 2023 at 8:57 AM

Regarding this specific bug, I would guess that the fromRoot projection needs to be careful to only call the inner projection once per root document.

Essentially that means some kind of knowledge of the root ID in the Values created by the fromRoot projection. I think it’s doable, let’s discuss it on Zulip.

Yoann Rodière April 20, 2023 at 8:49 AM

If that fromRoot projection is problematic, maybe we should just move that to a separate “feature” that we’ll address at a later time (maybe not even in 6.2)? This bug would become irrelevant then, since it’s not possible to trigger it without the fromRoot projection.

Regarding this specific bug, I would guess that the fromRoot projection needs to be careful to only call the inner projection once per root document.

Out of Date

Details

Assignee

Reporter

Components

Priority

Created April 20, 2023 at 8:28 AM
Updated April 20, 2023 at 1:38 PM
Resolved April 20, 2023 at 1:38 PM