[ https://issues.apache.org/jira/browse/SPARK-25883?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xiao Li resolved SPARK-25883. ----------------------------- Resolution: Fixed Assignee: Gengliang Wang Fix Version/s: 3.0.0 > Override method `prettyName` in `from_avro`/`to_avro` > ----------------------------------------------------- > > Key: SPARK-25883 > URL: https://issues.apache.org/jira/browse/SPARK-25883 > Project: Spark > Issue Type: Sub-task > Components: SQL > Affects Versions: 3.0.0 > Reporter: Gengliang Wang > Assignee: Gengliang Wang > Priority: Minor > Fix For: 3.0.0 > > > Previously in from_avro/to_avro, we override the method `simpleString` and > `sql` for the string output. However, the override only affects the alias > naming: > ``` > Project [from_avro('col, > ... > , (mode,PERMISSIVE)) AS from_avro(col, struct<col1:bigint,col2:double>, > Map(mode -> PERMISSIVE))#11] > ``` > It only makes the alias name quite long. > We should follow `from_csv`/`from_json` here, to override the method > prettyName only, and we will get a clean alias name > ``` > ... AS from_avro(col)#11 > ``` -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org