You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Vikash Kumar <vi...@gmail.com> on 2016/03/02 18:33:14 UTC

How to achieve nested for loop in Spark

Can we implement nested for/while loop in spark? I have to convert some SQL
procedure code into Spark. And it has multiple loops and processing and I
want to implement this in spark. How to implement this.

   1. open cursor and fetch for personType
   2. open cursor and fetch for personGroup
   3. open cursor and fetch for personname
   4.  some processing
   5. end cursor personname
   6. end cursor personGroup
   7. end cursor personType

something like this I want to implement in spark. Please suggest