Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Yohahaha committed Dec 11, 2023
1 parent 6b95491 commit 324acb0
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,6 @@ object ConverterUtils extends Logging {
if (caseSensitive) name else name.toLowerCase(Locale.ROOT)
}

def getAttributeName(attr: Attribute): String = {
normalizeColName(attr.name)
}

def getShortAttributeName(attr: Attribute): String = {
val name = normalizeColName(attr.name)
val subIndex = name.indexOf("(")
Expand Down Expand Up @@ -127,7 +123,7 @@ object ConverterUtils extends Logging {
// TODO: This is used only by `BasicScanExecTransformer`,
// perhaps we can remove this in the future and use `withExprId` version consistently.
def collectAttributeNamesWithoutExprId(attributes: Seq[Attribute]): JList[String] = {
collectAttributeNamesDFS(attributes)(getAttributeName)
collectAttributeNamesDFS(attributes)(attr => normalizeColName(attr.name))
}

private def collectAttributeNamesDFS(attributes: Seq[Attribute])(
Expand Down

0 comments on commit 324acb0

Please sign in to comment.