【发布时间】:2020-02-24 20:02:07
【问题描述】:
当我尝试从 HDFS 读取镶木地板文件时,我得到了所有混合大小写的架构。有什么方法可以将其转换为全部小写?
df=spark.read.parquet(hdfs_location)
df.printSchema();
root
|-- RecordType: string (nullable = true)
|-- InvestmtAccnt: string (nullable = true)
|-- InvestmentAccntId: string (nullable = true)
|-- FinanceSummaryID: string (nullable = true)
|-- BusinDate: string (nullable = true)
What i need is like below
root
|-- recordtype: string (nullable = true)
|-- investmtaccnt: string (nullable = true)
|-- investmentaccntid: string (nullable = true)
|-- financesummaryid: string (nullable = true)
|-- busindate: string (nullable = true)
【问题讨论】: