将 SQL 条件转换为 Pyspark

问题描述 投票:0回答:0

如何在 Pyspark 中实现这个查询?

我需要将我使用存在的这个子句转换成另一个数据框。

SELECT 
  c.Id, c.Description, c.Code
FROM charlie as c                                                                              
Where (
            c.Status = 'ACTIVE' or
            exists (
                select 1 from beta as b                                                     
                    where c.Id = b.Id
            )
         )
sql dataframe pyspark where-clause
© www.soinside.com 2019 - 2024. All rights reserved.