Hi, In earlier versions of spark(< 1.4.0), we were able to specify the sampling ratio while using *sqlContext.JsonFile* or *sqlContext.JsonRDD* so that we dont inspect each and every element while inferring the schema. I see that the use of these methods is deprecated in the newer spark version and the suggested way is to use *read().json()* to load a json file and return a dataframe. Is there a way to specify the sampling ratio using these methods? Or am I doing something incorrect?
Thanks, Udit