Skip to content

Commit f4580b8

Browse files
committed
fixup
1 parent 8e586a5 commit f4580b8

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

sql/api/src/main/scala/org/apache/spark/sql/internal/columnNodes.scala

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,25 @@ private[sql] case class UnresolvedAttribute(
146146
private[sql] object UnresolvedAttribute {
147147
def apply(
148148
unparsedIdentifier: String,
149-
planId: Option[Long] = None,
150-
isMetadataColumn: Boolean = false,
151-
origin: Origin = CurrentOrigin.get): UnresolvedAttribute = UnresolvedAttribute(
149+
planId: Option[Long],
150+
isMetadataColumn: Boolean,
151+
origin: Origin): UnresolvedAttribute = UnresolvedAttribute(
152152
AttributeNameParser.parseAttributeName(unparsedIdentifier),
153153
planId = planId,
154154
isMetadataColumn = isMetadataColumn,
155155
origin = origin)
156+
157+
def apply(
158+
unparsedIdentifier: String,
159+
planId: Option[Long],
160+
isMetadataColumn: Boolean): UnresolvedAttribute =
161+
apply(unparsedIdentifier, planId, isMetadataColumn, CurrentOrigin.get)
162+
163+
def apply(unparsedIdentifier: String, planId: Option[Long]): UnresolvedAttribute =
164+
apply(unparsedIdentifier, planId, false, CurrentOrigin.get)
165+
166+
def apply(unparsedIdentifier: String): UnresolvedAttribute =
167+
apply(unparsedIdentifier, None, false, CurrentOrigin.get)
156168
}
157169

158170
/**

0 commit comments

Comments
 (0)