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

Support expressions in filters (without conversion) #5434

Merged
merged 6 commits into from
Oct 10, 2017

Conversation

jfirebaugh
Copy link
Contributor

Like #5193 but continue to use the old code for non-expression filters.

@jfirebaugh
Copy link
Contributor Author

https://bl.ocks.org/anonymous/raw/c15be57dd06c39b2f5b1c71b7f1dd513/

The FilterEvaluate result from this run seems to be an anomaly. There's some difference, but not that bad.

https://bl.ocks.org/anonymous/raw/0bdb3084a58885a63f316d73bccf8030/

Copy link
Contributor

@anandthakker anandthakker left a comment

Choose a reason for hiding this comment

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

I guess the slight increase in running time must be due to the extra paramter ({zoom}). Wouldn't have expected it to even show up, but anyway it's miniscule.

t.equal(f({zoom: 0}, {properties: {x: null}}), false);
t.equal(f({zoom: 0}, {properties: {x: undefined}}), false);
t.end();
});
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's add a test for the case where any and all are used as expressions

@jfirebaugh jfirebaugh merged commit 0e6fd1b into master Oct 10, 2017
@jfirebaugh jfirebaugh deleted the expressions-filter-no-convert branch October 10, 2017 20:54
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.

2 participants