From 324acb07a27d3e7f72caacc9168bff1265c33afd Mon Sep 17 00:00:00 2001 From: yangchuan Date: Mon, 11 Dec 2023 09:49:04 +0800 Subject: [PATCH] fix --- .../scala/io/glutenproject/expression/ConverterUtils.scala | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gluten-core/src/main/scala/io/glutenproject/expression/ConverterUtils.scala b/gluten-core/src/main/scala/io/glutenproject/expression/ConverterUtils.scala index 6da593c7f8145..018484c7c1fa5 100644 --- a/gluten-core/src/main/scala/io/glutenproject/expression/ConverterUtils.scala +++ b/gluten-core/src/main/scala/io/glutenproject/expression/ConverterUtils.scala @@ -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("(") @@ -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])(