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 III

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 III

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 III

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