// DEMO Example with inner nodes that should be shown as an inner nested tree of this node
val lines = Seq("SaveIntoDataSourceCommand").toDF("line")
// NOTE: There are two CreatableRelationProviders: jdbc and kafka // jdbc is simpler to use in spark-shell as it does not need --packages val url = "jdbc:derby:memory:;databaseName=/tmp/test;create=true" val requiredOpts = Map("url" -> url, "dbtable" -> "lines") // Use overwrite SaveMode to make the demo reproducible import org.apache.spark.sql.SaveMode.Overwrite lines.write.options(requiredOpts).format("jdbc").mode(Overwrite).save
// Go to web UI's SQL tab and see the last executed query¶
[[simpleString]] SaveIntoDataSourceCommandredacts the <> for the <>.