Skip to main content
Preview Spark generator functions in SparkSQL and Databricks compatibility modes. Both modes share these functions. Support is one of: Supported, With limitations, or Not supported. Supported means every example in the Spark reference returns what Spark returns; a note under With limitations quotes a call that differs.

Limitations

  • A generator in the select list, such as SELECT explode(arr) FROM t, is not supported. Call it in the FROM clause instead.
  • LATERAL VIEW and LATERAL table functions, such as FROM t, LATERAL explode(t.arr), are not supported, so a generator cannot read a column of another table in the same FROM clause.
  • IDENTIFIER('t') in a FROM clause names a table, as in Spark.