Can we use recursive Common Table Expressions (CTEs) in Spark SQL and do the recursion in pyspark?
If not, is there a way we can do this using Python (i.e. Pandas or UDFs) in the distributed storage environment of Spark? I know a recursion-implementing solution but it uses Scala, which is not used in my project.