Skip to content

Commit ad85109

Browse files
committed
remove type check for macro as same with hive.
1 parent 1eb23c7 commit ad85109

File tree

1 file changed

+0
-13
lines changed
  • sql/core/src/main/scala/org/apache/spark/sql/execution/command

1 file changed

+0
-13
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/command/macros.scala

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -63,19 +63,6 @@ case class CreateMacroCommand(
6363
throw new AnalysisException(s"Cannot support Generator: ${u} " +
6464
s"for CREATE TEMPORARY MACRO $macroName")
6565
}
66-
macroFunction.transformUp {
67-
case e: Expression if !e.resolved =>
68-
if (e.checkInputDataTypes().isFailure) {
69-
e.checkInputDataTypes() match {
70-
case TypeCheckResult.TypeCheckFailure(message) =>
71-
throw new AnalysisException(s"Cannot resolve '${e.sql}' " +
72-
s"for CREATE TEMPORARY MACRO $macroName, due to data type mismatch: $message")
73-
}
74-
} else {
75-
throw new AnalysisException(s"Cannot resolve '${e.sql}' " +
76-
s"for CREATE TEMPORARY MACRO $macroName ")
77-
}
78-
}
7966

8067
val macroInfo = columns.mkString(",") + " -> " + funcWrapper.macroFunction.toString
8168
val info = new ExpressionInfo(macroInfo, macroName)

0 commit comments

Comments
 (0)