I have three table each one is created from sql queries and saved:
the three tables are saved as below:
data1.registerTempTable (\'table1\') sqlContext.sql