Skip to content

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

Merged
geooo109 merged 1 commit intotobymao:mainfrom
honeydew-ai:fix/databricks-iff-synonym
Apr 14, 2026
Merged

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

Conversation

@baruchoxman
Copy link
Copy Markdown
Contributor

@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
@geooo109 geooo109 self-assigned this Apr 14, 2026
@geooo109 geooo109 merged commit ecd325b into tobymao:main Apr 14, 2026
10 checks passed
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

2 participants