Quantcast
Viewing all articles
Browse latest Browse all 3

Answer by Olga for Spark-csv data source: infer data types

Starting from Spark 2 we can use option 'inferSchema' like this:getSparkSession().read().option("inferSchema", "true").csv("YOUR_CSV_PATH")


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>