Github user chenghao-intel commented on a diff in the pull request:

    https://github.com/apache/spark/pull/2570#discussion_r19386550
  
    --- Diff: 
sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/CreateTableAsSelect.scala
 ---
    @@ -30,33 +32,46 @@ import org.apache.spark.sql.hive.MetastoreRelation
      * Create table and insert the query result into it.
      * @param database the database name of the new relation
      * @param tableName the table name of the new relation
    - * @param insertIntoRelation function of creating the `InsertIntoHiveTable`
    - *        by specifying the `MetaStoreRelation`, the data will be inserted 
into that table.
    - * TODO Add more table creating properties,  e.g. SerDe, StorageHandler, 
in-memory cache etc.
    + * @param query the query whose result will be insert into the new relation
    + * @param allowExisting allow continue working if it's already exists, 
otherwise
    + *                      raise exception
    + * @param extra the extra information for this Operator, it should be the
    + *              ASTNode object for extracting the CreateTableDesc.
    +
      */
     @Experimental
     case class CreateTableAsSelect(
         database: String,
         tableName: String,
    -    query: SparkPlan,
    -    insertIntoRelation: MetastoreRelation => InsertIntoHiveTable)
    -  extends LeafNode with Command {
    +    query: LogicalPlan,
    +    allowExisting: Boolean,
    +    extra: ASTNode) extends LeafNode with Command {
    --- End diff --
    
    And of course I can do the code refactor in another PR if you feel that's 
very important to keep a stable API interface.


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