Skip to content

Commit c549de1

Browse files
张文领zhangwl9
authored andcommitted
Optimize code
1 parent 6777ea2 commit c549de1

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

amoro-format-mixed/amoro-mixed-spark/v3.4/amoro-mixed-spark-3.4/src/main/scala/org/apache/spark/sql/amoro/parser/MixedFormatSqlExtendAstBuilder.scala

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -522,9 +522,7 @@ class MixedFormatSqlExtendAstBuilder()
522522
// Create the attributes.
523523
val (attributes, schemaLess) = if (transformClause.colTypeList != null) {
524524
// Typed return columns.
525-
val schema = createSchema(transformClause.colTypeList)
526-
val replacedSchema = CharVarcharUtils.replaceCharVarcharWithStringInSchema(schema)
527-
(schema.toAttributes, false)
525+
(createSchema(transformClause.colTypeList).toAttributes, false)
528526
} else if (transformClause.identifierSeq != null) {
529527
// Untyped return columns.
530528
val attrs = visitIdentifierSeq(transformClause.identifierSeq).map { name =>
@@ -593,7 +591,7 @@ class MixedFormatSqlExtendAstBuilder()
593591
selectClause.hints.asScala.foldRight(plan)(withHints)
594592
}
595593

596-
private def visitCommonSelectQueryClausePlan(
594+
def visitCommonSelectQueryClausePlan(
597595
relation: LogicalPlan,
598596
expressions: Seq[Expression],
599597
lateralView: java.util.List[LateralViewContext],

amoro-format-mixed/amoro-mixed-spark/v3.4/amoro-mixed-spark-runtime-3.4/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@
7878
<include>org.apache.iceberg:iceberg-orc</include>
7979
<include>org.apache.iceberg:iceberg-parquet</include>
8080
<include>org.apache.iceberg:iceberg-aws</include>
81-
<include>org.apache.iceberg:iceberg-aliyun</include>
8281
<include>org.apache.parquet:parquet-column</include>
8382
<include>org.apache.parquet:parquet-hadoop</include>
8483
<include>org.apache.parquet:parquet-common</include>

0 commit comments

Comments
 (0)