Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't set value of an arrow table #272

Open
balazskosi opened this issue Nov 15, 2024 · 0 comments
Open

Can't set value of an arrow table #272

balazskosi opened this issue Nov 15, 2024 · 0 comments

Comments

@balazskosi
Copy link

balazskosi commented Nov 15, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant