cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

right semi join

PB-Data
New Contributor II

Hi All,

I am having issue running a simple right semi join in my community databricks edition.

select * from Y right semi join X on Y.y = X.a;
Error : [PARSE_SYNTAX_ERROR] Syntax error at or near 'semi': extra input 'semi'.
 
Not sure what is the issue with the syntax. The left semi works fine.
Help appreciated.
2 REPLIES 2

szymon_dybczak
Contributor

Hi @PB-Data ,

Spark doesn't support right semi and right anti joins. Take a look on below documentation entry to find out all allowed kinds of join:

https://learn.microsoft.com/en-us/azure/databricks/sql/language-manual/sql-ref-syntax-qry-select-joi...

PB-Data
New Contributor II

Thanks @szymon_dybczak 👍

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group