I would like to understand if I am loading csv file to a DB table, am I suppose to create table and schema in the database before I do that? Or, can we create table, schema from spark through sqlcontext? If yes, then how ? any sample code that I can refer? I tried, but all I could understand that I need to create table, and schema in the DB before I load files from Spark...
I have spark 1.6.1, and scala 2.10.5, sql server 2008
Thank you...!!