Skip to content

Commit 770508a

Browse files
committed
fix: DistinctOperator colArrays type — use DecodedValue[] (includes Float32Array)
1 parent fdbdf6f commit 770508a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/operators.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ export class DistinctOperator implements Operator {
11031103
const kept: number[] = [];
11041104
const cols = this.columns.length > 0 ? this.columns : (this._resolvedCols ??= Array.from(batch.columns.keys()));
11051105
// Pre-extract column arrays to avoid Map.get per column per row
1106-
const colArrays: ((number | bigint | string | boolean | null)[] | undefined)[] = new Array(cols.length);
1106+
const colArrays: (DecodedValue[] | undefined)[] = new Array(cols.length);
11071107
for (let g = 0; g < cols.length; g++) colArrays[g] = batch.columns.get(cols[g]) ?? undefined;
11081108

11091109
for (let ii = 0; ii < indices.length; ii++) {

0 commit comments

Comments
 (0)