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

    https://github.com/apache/spark/pull/11596#discussion_r55484267
  
    --- Diff: 
sql/hive/src/main/scala/org/apache/spark/sql/hive/SQLBuilder.scala ---
    @@ -297,6 +303,65 @@ class SQLBuilder(logicalPlan: LogicalPlan, sqlContext: 
SQLContext) extends Loggi
         )
       }
     
    +  /* This function handles the SQL generation when generators.
    +   * sample plan :
    +   *   +- Project [mycol2#192]
    +   *     +- Generate explode(myCol#191), true, false, Some(mytable2), 
[mycol2#192]
    +   *       +- Generate explode(array(array(1, 2, 3))), true, false, 
Some(mytable), [mycol#191]
    +   *         +- MetastoreRelation default, src, None
    +   *
    +   */
    +  private def generateToSQL(plan: Generate): String = {
    +    val columnAliases = plan.generatorOutput.map(a => 
quoteIdentifier(a.name)).mkString(",")
    --- End diff --
    
    Sure. Thx


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to