Hello. I think you can use something like this: df.select( struct( column("site.site_id").as("id"), column("site.site_name").as("name"), column("site.site_domain").as("domain"), column("site.site_cat").as("cat"), struct( column("site.publisher.site_
Hi
How can I rename nested columns in dataframe through scala API? Like
following schema
> |-- site: struct (nullable = false)
>
> ||-- site_id: string (nullable = true)
>
> ||-- site_name: string (nullable = true)
>
> ||-- site_domain: string (nullable = true)
>
> ||-- site_cat: