i have two dataframes 1 is books1 with Schema
root
|-- asin: string (nullable = true)
|-- helpful: array (nullable = true)
| |-- element: long (containsNull = true)
|-- overall: double (nullable = true)
|-- reviewText: string (nullable = true)
|-- reviewTime: string (nullable = true)
|-- reviewerID: string (nullable = true)
|-- reviewerName: string (nullable = true)
|-- summary: string (nullable = true)
|-- unixReviewTime: long (nullable = true)
and another is label with schema
root
|-- value: integer (nullable = false)
books1 and label contains
but now when i am joining them with join command,
var bookdf = books1.join(label)
the output is not correct
value field should have contain 2,6,0 but it is containing only 2 why it is happening no. of rows in both the dataframes are same