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

    https://github.com/apache/spark/pull/4446#discussion_r24389458
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala ---
    @@ -608,21 +637,82 @@ trait DataFrame extends RDDApi[Row] {
       def saveAsTable(
           tableName: String,
           dataSourceName: String,
    +      mode: SaveMode,
           options: java.util.Map[String, String]): Unit
     
    +  /**
    +   * :: Experimental ::
    +   * (Scala-specific)
    +   * Creates a table from the the contents of this DataFrame based on a 
given data source,
    +   * [[SaveMode]] specified by mode, and a set of options.
    +   *
    +   * Note that this currently only works with DataFrames that are created 
from a HiveContext as
    +   * there is no notion of a persisted catalog in a standard SQL context.  
Instead you can write
    +   * an RDD out to a parquet file, and then register that file as a table. 
 This "table" can then
    +   * be the target of an `insertInto`.
    +   */
    +  @Experimental
    +  def saveAsTable(
    --- End diff --
    
    i think u can implement all other versions of saveAsTable here in this 
interface; then the only one u need to implement is saveAsTable in 
DataFrameImpl and IncomputableColumn


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to