I was working with where command like below-
index=abc|where (id=1ORid=2ORid=3)
In between id field I have used OR operator and by mistake I haven't used space before and after OR.
still I get same results like below query results.
index=abc|where (id=1 OR id=2 OR id=3)
so does it not matter to have space before and after OR operator?
Experience is the best teacher. If it works and produces the correct results then using spaces is not required, but is a good idea so the query is easier to read.
Experience is the best teacher. If it works and produces the correct results then using spaces is not required, but is a good idea so the query is easier to read.