if i use this spark sql statement:
df = spark.sql('SELECT col_name FROM table_name')
it will return a spark dataframe object. How can i convert this to an rdd? is there a way to read a table directly using sql but generating an rdd instead of a dataframe?
Thanks in advance