Hey Prashanth -
It sounds like you have a complex calculation or maybe a group which is causing the complex SQL to get generated.
I'd suggest you try and identity which calculation/group is causing the problem and temporarily remove it from your data source. Create your extract, then add the calc right back to the data source.
Thanks Christopher.... yup I identified it and infact moved it out from Tableau and included the calculation in my SQL... works fine now