[ https://issues.apache.org/jira/browse/SPARK-26994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16783425#comment-16783425 ]
Murali Aakula commented on SPARK-26994: --------------------------------------- We could have defined that format conversion in the setter methods. There are multiple alternatives to solve our problem. I'm sure that everyone may have implemented in one or the other alternatives. Also, there will be performance issues while converting form Raw to User defined object (mentioned in the spark documentation). So I thought that, it will actually make sense, if the parsers/readers (Json, CSV, ..) can handle this conversion. StructField just holds the values(patterns) just like column name and the column datatype. The conversion logic will be in the parsers/readers. Hope this makesense. > Enhance StructField to accept number format or date format > ---------------------------------------------------------- > > Key: SPARK-26994 > URL: https://issues.apache.org/jira/browse/SPARK-26994 > Project: Spark > Issue Type: Improvement > Components: SQL > Affects Versions: 2.4.0 > Reporter: Murali Aakula > Priority: Major > > Enhance StructField to accept number format or date format and Enahcne > reader/steramreader and writer/streamwriter to use these formats. -- 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