Babel parser doesn't parse IF(condition, then, else) statement because babel puts `IF` into the keyword set.
I put `IF` into the reserved function name set to fix the issue: https://issues.apache.org/jira/browse/CALCITE-4802 Welcome to comment. Here is PR: https://github.com/apache/calcite/pull/2835/files Thanks very much~