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 b1a7646 commit 38e8a99Copy full SHA for 38e8a99
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/BoundAttribute.scala
@@ -98,7 +98,7 @@ object BindReferences extends Logging {
98
}
99
expression.transform { case a: AttributeReference =>
100
attachTree(a, "Binding attribute") {
101
- val ordinal = inputToOrdinal.getOrDefault(a.exprId, -1)
+ val ordinal = Option(inputToOrdinal.get(a.exprId)).getOrElse(-1)
102
if (ordinal == -1) {
103
if (allowFailures) {
104
a
0 commit comments