We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 198f3f7 commit 16063a3Copy full SHA for 16063a3
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala
@@ -1795,7 +1795,8 @@ class AstBuilder extends SqlBaseParserBaseVisitor[AnyRef] with SQLConfHelper wit
1795
cast
1796
1797
case SqlBaseParser.TRY_CAST =>
1798
- // TRY_CAST can only be user-specified and we don't need to set the Tag.
+ // `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`
1800
TryCast(expression(ctx.expression), dataType)
1801
}
1802
0 commit comments