[jira] [Commented] (SPARK-2660) Enable pretty-printing SchemaRDD Rows
[ https://issues.apache.org/jira/browse/SPARK-2660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14074760#comment-14074760 ] Michael Armbrust commented on SPARK-2660: - One way to do this would be to add "def prettyPrint(): RDD[String]" to SchemaRDD. This is the correct place to add something as you'll have access to the required schema information and the rows. > Enable pretty-printing SchemaRDD Rows > - > > Key: SPARK-2660 > URL: https://issues.apache.org/jira/browse/SPARK-2660 > Project: Spark > Issue Type: Improvement > Components: SQL >Reporter: Aaron Davidson > > Right now, "printing a Row" results in something like "[a,b,c]". It would be > cool if there was a way to pretty-print them similar to JSON, into something > like > {code} > { > Col1 : a, > Col2 : b, > Col3 : c > } > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (SPARK-2660) Enable pretty-printing SchemaRDD Rows
[ https://issues.apache.org/jira/browse/SPARK-2660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14072687#comment-14072687 ] Larry Xiao commented on SPARK-2660: --- I think this one is suitable for newbie like me, though I think it's alright the way it is now :) I'm not familiar with the code, and I found printRDDElement in pipe for RDD. Is it the correct place? > Enable pretty-printing SchemaRDD Rows > - > > Key: SPARK-2660 > URL: https://issues.apache.org/jira/browse/SPARK-2660 > Project: Spark > Issue Type: Improvement > Components: SQL >Reporter: Aaron Davidson > > Right now, "printing a Row" results in something like "[a,b,c]". It would be > cool if there was a way to pretty-print them similar to JSON, into something > like > {code} > { > Col1 : a, > Col2 : b, > Col3 : c > } > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)