py4j.protocol.Py4JJavaError when selecting nested column in dataframe using select statetment
问题 I'm trying to perform a simple task in spark dataframe (python) which is create new dataframe by selecting specific column and nested columns from another dataframe for example : df.printSchema() root |-- time_stamp: long (nullable = true) |-- country: struct (nullable = true) | |-- code: string (nullable = true) | |-- id: long (nullable = true) | |-- time_zone: string (nullable = true) |-- event_name: string (nullable = true) |-- order: struct (nullable = true) | |-- created_at: string