Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

how can i write exception handling in spark sql using python???

how can i write exception handling in spark sql using python???

sqlDF = spark.sql("SELECT * FROM people")
sqlDF.show() 
before executing this query i have to use try catch block if table doesn't  exists it should say throw       exception while executing spark action

please help me how to do this  ??

Thanks in advances
swathi 
Don't have an account?
Coming from Hortonworks? Activate your account here