-
Notifications
You must be signed in to change notification settings - Fork 79
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
About optimize result when query #110
Comments
Hi @hdlinh1808! In order to remove the redundant NOT you would have to modify the parse tree so that the relevant parts are no longer present (I'd suggest comparing with the same query modified to your intended result). Note that you would have to work with the deserialized version, i.e. Go structs (not JSON), returned by the Line 40 in fdbe27d
|
Hi @lfittl , how to deserialise a JSON string into a GO struct to traverse the Tree returned by |
There is currently no built-in mechanism for that, you'd have to create your own structs and deserialize using Go's JSON functions. |
When I parse this query:
select vpc_id from aws_ec2_instance where not not not vpc_id IS NULL
it returns a lot of bool operator, how I can remove redudant:
Thanks
The text was updated successfully, but these errors were encountered: