Skip to content

DataFrame incorrectly sets column value for index higher than Buffer.MaxCapacity #6847

@asmirnov82

Description

@asmirnov82

DataFrame incorrectly sets column value for index higher than Buffer.MaxCapacity.

Steps to reproduce

Run the code:

var length = DataFrameBuffer<T>.MaxCapacity + 5;
var column = new PrimitiveDataFrameColumn<byte>("LargeColumn", length);
var index = length - 1;
column[index] = 33;

var value1 = column[index];
var value2 = column[index %  DataFrameBuffer<T>.MaxCapacity];

Expected result:

value1 == 33
value2 == null;

Actual result:

value1 == null
value2 == 0;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions