Created
August 15, 2018 08:35
-
-
Save YordanGeorgiev/dfcadd7db9ada924706b8a2152146219 to your computer and use it in GitHub Desktop.
[create-empty-dataframe] how-to create empty data frame #scala #dataframe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val rowsSeq: Seq[Row] = Seq() | |
val rowsRDD: RDD[Row] = spark.sparkContext.parallelize(rowsSeq) | |
spark.createDataFrame(rowsRDD, schema) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment