[Spark By Example] Read CSV – Array Type

The following sample code (by Python and C#) shows how to read CSV file with a column of array.

CSV does not support complex objects such as an array. To make it work, you need to pass a JSON array in CSV and parse it. You will learn this trick here.

JSON array format is like this.

["Ford", "Toyota", "BMW", "Fiat"]
Continue reading “[Spark By Example] Read CSV – Array Type”