📜  spark中csv文件的架构-任何代码示例

📅  最后修改于: 2022-03-11 14:57:00.660000             🧑  作者: Mango

代码示例2
val pagecount = sqlContext.read.format("csv")
  .option("delimiter"," ").option("quote","")
  .option("schema","project: string ,article: string ,requests: integer ,bytes_served: long")
  .load("dbfs:/databricks-datasets/wikipedia-datasets/data-001/pagecounts/sample/pagecounts-20151124-170000")