Github user jose-torres commented on a diff in the pull request:
https://github.com/apache/spark/pull/20933#discussion_r178303595
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/DataSourceStrategy.scala
---
@@ -213,6 +215,26 @@ case class DataSourceAnalysis(conf: SQLConf) extends
Rule[LogicalPlan] with Cast
}
}
+/**
+ * Replaces [[OrcDataSourceV2]] with [[DataSource]] if parent node is
[[InsertIntoTable]].
+ * This is because [[OrcDataSourceV2]] doesn't support writing data yet.
--- End diff --
Is this also a temporary hack, then? It seems like Spark should know it
can't write to a source which doesn't implement WriteSupport, no matter what
the shape of the query performing the write is.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]