July 2018
Intermediate to advanced
334 pages
8h 20m
English
Let's create a schema for the past sales order dataset:
val salesOrderSchema: StructType = StructType(Array( StructField("sCustomerId", IntegerType,false), StructField("sCustomerName", StringType,false), StructField("sItemId", IntegerType,true), StructField("sItemName", StringType,true), StructField("sItemUnitPrice",DoubleType,true), StructField("sOrderSize", DoubleType,true), StructField("sAmountPaid", DoubleType,true)))
Next, let's create a schema for weapon sales leads.
Read now
Unlock full access