Skip to content

Add __table function and unit tests #304

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

Merged
merged 8 commits into from
Oct 13, 2022
Merged

Add __table function and unit tests #304

merged 8 commits into from
Oct 13, 2022

Conversation

annie
Copy link
Contributor

@annie annie commented Oct 7, 2022

This PR ports over @mbostock's __table function, as defined in https://github.com/observablehq/observablehq/pull/8300, and adds missing support for the lt and gt filter operations. Also adds unit tests.

@annie annie changed the title Support in-memory table data source Support in-memory table data sources Oct 7, 2022
@annie annie requested review from mbostock and lileeyuh October 7, 2022 19:40
@annie annie changed the title Support in-memory table data sources Add __table function and unit tests Oct 7, 2022
@annie annie requested a review from mbostock October 11, 2022 21:12
Copy link
Member

@mbostock mbostock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I have time tonight I’ll put up a PR to this PR to help this along! Thanks Annie!

@mbostock mbostock mentioned this pull request Oct 12, 2022
* tweaks to __table

* match expected schema

* “resolved” table filter operands

* test against sort mutation

* remove export
@mbostock mbostock merged commit 875bf76 into main Oct 13, 2022
@mbostock mbostock deleted the annie/__table branch October 13, 2022 22:44
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

Successfully merging this pull request may close these issues.

3 participants