COOL icon indicating copy to clipboard operation
COOL copied to clipboard

No explicit warining or exeception throwed when traverse the fields of dataChunk multipe times.

Open NLGithubWP opened this issue 2 years ago • 1 comments

In the readStore, if we traverse one field multiple times, it reads the wrong value and does not throw expectations or warnings.

For example, in RLEInputVector readStore, if we traverse it multiple times with get, the end-offset will prevent the traverse and only return the value in the last offset, which results in a wrong read.

We should either explicitly throws exceptions to prevent multiple traverses, or allow it by removing such constraint or adding reset methods to reset the offset.

NLGithubWP avatar Jul 10 '22 17:07 NLGithubWP