How to create a table with the same columns of the dataframe automatically. I have a dataframe with many columns and I can't write every column one by one. Is there anyway?
//Read df from a path
var df = (spark
//Write df into a newTable but it doesn't create the table