Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use outer apply in Spark sql

I am new to spark sql. I am in a situation to convert existing sql query to spark sql. My existing sql query contains outer apply function which needs to work in spark sql. What is the alternative for Outer apply in Spark sql?

Any help much appreciated.

Thanks in advance.

like image 670
Sree Avatar asked Sep 11 '25 18:09

Sree


1 Answers

You can do a OUTER APPLY with LEFT JOIN LATERAL ( query ).

Here a link to the official documentation including examples at the bottom: JOIN (Databricks SQL)

like image 90
ice1e0 Avatar answered Sep 16 '25 08:09

ice1e0