spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ericl <...@git.apache.org>
Subject [GitHub] spark pull request #15995: [SPARK-18566][SQL] remove OverwriteOptions
Date Mon, 12 Dec 2016 20:10:32 GMT
Github user ericl commented on a diff in the pull request:

    https://github.com/apache/spark/pull/15995#discussion_r92029569
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/DataSourceStrategy.scala
---
    @@ -128,61 +128,69 @@ case class DataSourceAnalysis(conf: CatalystConf) extends Rule[LogicalPlan]
{
         projectList
       }
     
    +  private def hasBeenPreprocessed(
    +      tableOutput: Seq[Attribute],
    +      partSchema: StructType,
    +      partSpec: Map[String, Option[String]],
    +      query: LogicalPlan): Boolean = {
    +    val partColNames = partSchema.map(_.name).toSet
    +    query.resolved && partSpec.keys.forall(partColNames.contains) &&
{
    +      val staticPartCols = partSpec.filter(_._2.isDefined).keySet
    +      val expectedColumns = tableOutput.filterNot(a => staticPartCols.contains(a.name))
    +      expectedColumns.toStructType.sameType(query.schema)
    --- End diff --
    
    similar question, when is this false?


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

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


Mime
View raw message