Open hdlinh1808 opened 6 months ago
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 Parse
(not ParseToJSON
), modify it and then call Deparse
:
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