I have column in dataframe is called "INFO_CSQ". I want to delete any duplicated element in struct that make me can't use command df.select("INFO_CSQ.xxx") because ambiguous reference.
If you want more information please feel free to ask me. I will answer as soon as possible.
Edit
I saw many solutions are using rename and all of them that I looked is manually type like strSchema = "array<struct<a_renamed:string,b:bigint,c:bigint>>" and cast to new dataframe however my schema is changeable depend on input file.

