I have of around 41 level of nested if else in spark sql. I have programmed it using apis on dataframe. But it takes too much time.
Is there anything I can do to improve on time here?