finos / perspective

A data visualization and analytics component, especially well-suited for large and/or streaming datasets.
https://perspective.finos.org/
Apache License 2.0
7.72k stars 1.04k forks source link

`index()` ExprTK function fails during `update()` #2627

Open texodus opened 1 month ago

texodus commented 1 month ago

Bug Report

Steps to Reproduce:

const table = await worker.table({x:[1,2,3,4,5]});
const view = await table.view({
    columns: ["x", "y"],
    expressions: {"y": "index()"},
});
await table.update({"x": [6, 7]});
const json = await view.to_json();

Expected Result:

json with the results of the query.

Actual Result:

Uncaught Error: Abort(): Could not find column index for psp_pkey as it does not exist in the schema.

Environment:

Perspective 2.10.1, all languages.