zzwqqq commented on code in PR #4942:
URL: https://github.com/apache/calcite/pull/4942#discussion_r3292905496
##########
core/src/main/java/org/apache/calcite/rex/RexBuilder.java:
##########
@@ -928,32 +924,26 @@ public RexNode makeCast(
case TIME:
final SqlTimeLiteral timeLiteral =
SqlParserUtil.parseTimeLiteral(value, pos);
- if (!isSubMillisecondLiteral(timeLiteral, value)) {
+ if (timeLiteral.getPrec() <= 0
Review Comment:
Switched this to check PRECISION_NOT_SPECIFIED explicitly.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]