Impala includes operators like !, ||, &&, &, |, that are not part of standard SQL. These should probably follow precedence rules similar to the languages from which they're taken, but they often don't currently.
!x = y parses as !(x = y) rather than (!x) = y
~x + y parses as
x * y | z parses as x * (y | z) rather than (x * y) | z