Github user dilipbiswal commented on a diff in the pull request:
https://github.com/apache/spark/pull/20579#discussion_r175154988
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/DataSource.scala
---
@@ -542,6 +542,11 @@ case class DataSource(
throw new AnalysisException("Cannot save interval data type into
external storage.")
}
+ if (data.schema.size == 0) {
--- End diff --
@gatorsmile @cloud-fan OK.. sounds reasonable to me. I will rollback the
latest change in this PR and we can discuss if we want to introduce the
behaviour change in a future jira/pr.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]