Github user andrewor14 commented on a diff in the pull request:
https://github.com/apache/spark/pull/12935#discussion_r62264492
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/DataSourceStrategy.scala
---
@@ -77,6 +78,22 @@ private[sql] object DataSourceAnalysis extends
Rule[LogicalPlan] {
}
}
+
+/**
+ * Replaces [[SimpleCatalogRelation]] with data source table if its table
property contains data
+ * source information.
+ */
+private[sql] class FindDataSourceTable(sparkSession: SparkSession) extends
Rule[LogicalPlan] {
+ override def apply(plan: LogicalPlan): LogicalPlan = plan transform {
+ case i @ logical.InsertIntoTable(s: SimpleCatalogRelation, _, _, _, _)
=>
--- End diff --
hm actually I can't find an instance of `InsertIntoTable` where we would
ever pass in a `SimpleCatalogRelation`. What command triggers this code path?
---
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]