Skip to content

Can't set value of an arrow table #272

Description

@balazskosi

Setting the value of an Inputs.table whose data is populated with an arrow table does not work.

Probably it's because rows.get(0) === rows.get(0) returns false.

Expected behaviour is like with json arrays.

Image

const rows = await sql`select unnest([1,2,3]) as v`
view(Inputs.table(rows, { value: [ rows.get(0) ] }));
const rows = [1,2,3].map(x => ({ v: x }));
view(Inputs.table(rows, { value: [ rows[0] ] }));

ref. observablehq/framework#1821

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions