diff --git a/web/client-api/src/main/java/io/deephaven/web/client/api/JsPartitionedTable.java b/web/client-api/src/main/java/io/deephaven/web/client/api/JsPartitionedTable.java index 5a3fc4a6b72..5eca478264d 100644 --- a/web/client-api/src/main/java/io/deephaven/web/client/api/JsPartitionedTable.java +++ b/web/client-api/src/main/java/io/deephaven/web/client/api/JsPartitionedTable.java @@ -172,12 +172,15 @@ public Promise getTable(Object key) { // key doesn't even exist, just hand back a null table return Promise.resolve((JsTable) null); } + final String[] columnNames = descriptor.getKeyColumnNamesList().asArray(new String[0]); + final String[] columnTypes = keyColumnTypes.toArray(new String[0]); + final Object[][] keysData = keyList.stream().map(item -> new Object[] {item}).toArray(Object[][]::new); final ClientTableState entry = connection.newState((c, cts, metadata) -> { // TODO deephaven-core#2529 parallelize this connection.newTable( - descriptor.getKeyColumnNamesList().asArray(new String[0]), - keyColumnTypes.toArray(new String[0]), - keyList.stream().map(item -> new Object[] {item}).toArray(Object[][]::new), + columnNames, + columnTypes, + keysData, null, this) .then(table -> {