当前位置: 动力学知识库 > 问答 > 编程问答 >

Spark xml dataframe

问题描述:

A follow up question to : How to manipulate fields (not Columns) in a dataframe? I have a vey complex nested xml and when I use Databricks XML, I am getting a Dataframe with 9 columns and 50 odd inner Struct arrays. That is fine except for the need to trim certain field names. Is there a way to achieve that without exploding the dataframe, as I need to construct the same structure again?

分享给朋友:
您可能感兴趣的文章:
随机阅读: