def _read_csv(spark, inputFileName):
    """Reads CSV file into a Spark dataset

    Parameters
    ----------
    spark : Spark Context
    inputFileName : str
       directory path for the input file
    """
    dataset = spark.read.format('csv').option('header', 'true').option(
        'inferSchema', 'true').load(inputFileName).cache()
    return dataset
