Github user mateiz commented on a diff in the pull request:

    https://github.com/apache/spark/pull/999#discussion_r13783210
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/SchemaRDDLike.scala 
---
    @@ -122,4 +122,9 @@ private[sql] trait SchemaRDDLike {
       @Experimental
       def saveAsTable(tableName: String): Unit =
         sqlContext.executePlan(InsertIntoCreatedTable(None, tableName, 
logicalPlan)).toRdd
    +
    +  /**
    +   * Print the schema of this SchemaRDD.
    +   */
    +  def printSchema(): Unit = queryExecution.analyzed.printSchema()
    --- End diff --
    
    We should also add another method to return this as a string instead of 
printing it out


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to