We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31f8bd0 commit 83e2611Copy full SHA for 83e2611
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/NestedColumnAliasing.scala
@@ -242,7 +242,8 @@ object NestedColumnAliasing {
242
exprList.foreach { e =>
243
collectRootReferenceAndExtractValue(e).foreach {
244
case ev: ExtractValue =>
245
- assert(ev.references.size == 1, s"$ev should have one reference")
+ assert(ev.references.toSeq.map(_.exprId).distinct.size == 1,
246
+ s"$ev should have one reference, but found ${ev.references}")
247
nestedFieldReferences.append(ev)
248
case ar: AttributeReference => otherRootReferences.append(ar)
249
}
0 commit comments