Using diff
#3235
-
Given two queries like the following I would like to find a way to use diff to tell me : those two queries are identical as only constants make the difference between the 2 ... How shoul dI proceed please? |
Beta Was this translation helpful? Give feedback.
Answered by
thebruuu
Mar 27, 2024
Replies: 1 comment
-
I ended up this way: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
georgesittas
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I ended up this way:
for x in diff(ast,ast2):
if (type(x).name!="Keep") and (type(x).name!="Move"):
if(type(x.expression).name)!='Literal':
return "false"