Github user JoshRosen commented on a diff in the pull request:
https://github.com/apache/spark/pull/7631#discussion_r35396203
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/HiveTypeCoercion.scala
---
@@ -181,6 +181,7 @@ object HiveTypeCoercion {
planName: String,
left: LogicalPlan,
right: LogicalPlan): (LogicalPlan, LogicalPlan) = {
+ require(left.output.length == right.output.length)
--- End diff --
My patch for this was motivated by the fact that my fuzz tester was
throwing runtime errors for queries involving UNION ALL with differing numbers
of columns: if you run such a UNION ALL query and then attempt to convert the
result to a SchemaRDD you can get ArrayIndexOutOfBounds exceptions in
CatalystTypeConverters. I'll see if there's a better way to fix this issue.
---
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]