Stack Exchange
Stack Overflow
Questions
Tags
Users
About
Stack Overflow
Public
Questions
Tags
Users
About
How to find root parent id of a child from a table in Azure Databricks using Spark/Python/SQL. Note: CONNECT BY/ RECURSIVE CTE are not supported
Asked
Jun 13 '22 at 14:06
Active
Jun 13 '22 at 14:06
Viewed
332 times
0
Source Table:
Tree Represntation of above table:
Expected Output:
sql
azure
pyspark
apache-spark-sql
azure-databricks
asked Jun 13 '22 at 14:06
Aravindhan
15
4
Could you please provide any code that you have tried?
–
Rakesh Govindula
Jun 13 '22 at 15:46
@RakeshGovindula-MT, Thanks for ur time. Just got the code from this link and its working as expected. https://stackoverflow.com/questions/52562607/recursive-cte-in-spark-sql
–
Aravindhan
Jun 13 '22 at 16:28
0 Answers
0