Mind map
DataFrame
Map content
DataFrame
Extends RDD & contains Row objects
can run SQL queries on SparkSession object: df = spark.sql("SELECT * FROM permcd")
- df.show() to display rows or query results
has a schema = leading to more efficient storage
to create it, we use Spark Session object
- can be created from CSV, JSON
- to make the Dataset available to SQL within the current context: df.createOrReplaceTempView("someTableName")
Transformations = select, distinct, groupBy, orderBy, sum, filter, limit
- Actions (=Lazy Execution) = show, count, collect, save, printSchema
since Spark 2.0 it's preferred data API
Information
- Description
- Big Data Mind Map on DataFrame, created by Anna Anisienia on 03/10/2018.
- Created by
- Anna Anisienia · Oct 2018
- Updated
- Oct 3, 2018
- Views
- 1
- Rating