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

Feature / Use AST to translate WHERE clause #54

Merged
merged 3 commits into from
Dec 5, 2017
Merged

Feature / Use AST to translate WHERE clause #54

merged 3 commits into from
Dec 5, 2017

Conversation

haoliangyu
Copy link
Member

@haoliangyu haoliangyu commented Dec 5, 2017

This PR will parse the input WHERE clause into AST, instead of doing regex matching, and traverse the tree to generate translated clause. Not many comments are added since the implementation is very straightforwards. No regex hack :-)

From what I can tell from the test running, the speed is the same.

This PR has covered the problem at #53.

@dmfenton
Copy link
Contributor

dmfenton commented Dec 5, 2017

nice work! I'm sure it's going to work, but will you add in a test case for the specific issue that kicked this off?

@haoliangyu
Copy link
Member Author

@dmfenton Do you mean these two tests?

@dmfenton
Copy link
Contributor

dmfenton commented Dec 5, 2017

I mean a test specifically for the bug in: https://esriarlington.tpondemand.com/entity/81713

@dmfenton dmfenton merged commit cfa88c7 into koopjs:master Dec 5, 2017
@haoliangyu haoliangyu deleted the feature/ast branch December 5, 2017 22:20
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.

None yet

2 participants