I wrote a code which will directly load the data from mysql to dataset format
Dataset<Row> sourceDataView = spark.read().format("jdbc")
.option("url", url).option("driver", driver)
.option("dbtable", "t_data_master").load()
.where(jnCond).select(srcColSel)
I am able to get the resultant output of query in ResultSet form but not in Dataset form. How to acheive the resultant output of query in dataset type?