SPARK: Load Data from Dataframe or RDD to DynamoDB / dealing with null values

I believe you can just simply check for null on a.get(2) before running ddbMap.put(“Value_2”, Value2). If it is null, then skip it.