Skip to content

fix(databricks): support IFF as a synonym for IF [CLAUDE]#7488

Open
baruchoxman wants to merge 1 commit intotobymao:mainfrom
honeydew-ai:fix/databricks-iff-synonym
Open

fix(databricks): support IFF as a synonym for IF [CLAUDE]#7488
baruchoxman wants to merge 1 commit intotobymao:mainfrom
honeydew-ai:fix/databricks-iff-synonym

Conversation

@baruchoxman
Copy link
Copy Markdown

@baruchoxman baruchoxman commented Apr 10, 2026

Summary

  • Databricks supports IFF as a synonym for IF
  • Adds "IFF": exp.If.from_arg_list to DatabricksParser.FUNCTIONS, so IFF(cond, true, false) is parsed to exp.If and transpiles correctly to all target dialects
  • Follows the same pattern already used by the Snowflake parser

Fixes #7347

Test plan

  • test_iff in tests/dialects/test_databricks.py — verifies IFF parses from Databricks and transpiles to IF (Databricks) and IFF (Snowflake)
  • Full Databricks test suite passes (python -m unittest tests.dialects.test_databricks)

Databricks supports IFF as a synonym for the IF function. This adds
IFF to the Databricks parser's FUNCTIONS mapping so it correctly
parses to exp.If and transpiles to other dialects.

Closes tobymao#7347
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Databricks IFF function is not transpiled correctly

1 participant