Skip to content

Commit cb0648c

Browse files
committed
fix(clickhouse): type row.json() as any[] to match sibling loop
The un-cast row.json() resolved to unknown (RowJSONType for JSONCompactEachRow), tripping TS18046 on rowData[i]. Matches the already-cast sibling stream loop.
1 parent 712ebce commit cb0648c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • internal-packages/clickhouse/src/client

internal-packages/clickhouse/src/client/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ export class ClickhouseClient implements ClickhouseReader, ClickhouseWriter {
492492
}
493493

494494
for (const row of rows) {
495-
const rowData = row.json();
495+
const rowData = row.json() as any[];
496496

497497
const hydratedRow: Record<string, any> = {};
498498
for (let i = 0; i < req.columns.length; i++) {

0 commit comments

Comments
 (0)