Skip to content

Commit 16063a3

Browse files
committed
improve comment
1 parent 198f3f7 commit 16063a3

File tree

1 file changed

+2
-1
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser

1 file changed

+2
-1
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1795,7 +1795,8 @@ class AstBuilder extends SqlBaseParserBaseVisitor[AnyRef] with SQLConfHelper wit
17951795
cast
17961796

17971797
case SqlBaseParser.TRY_CAST =>
1798-
// TRY_CAST can only be user-specified and we don't need to set the Tag.
1798+
// `TryCast` can only be user-specified and we don't need to set the USER_SPECIFIED_CAST
1799+
// tag, which is only used by `Cast`
17991800
TryCast(expression(ctx.expression), dataType)
18001801
}
18011802
}

0 commit comments

Comments
 (0)