예제 #1
0
 @Override
 protected Type visitTimeLiteral(TimeLiteral node, AnalysisContext context) {
   Type type;
   if (timeHasTimeZone(node.getValue())) {
     type = TIME_WITH_TIME_ZONE;
   } else {
     type = TIME;
   }
   expressionTypes.put(node, type);
   return type;
 }
예제 #2
0
 @Override
 protected Long visitTimeLiteral(TimeLiteral node, ConnectorSession session) {
   return parseTime(session.getTimeZoneKey(), node.getValue());
 }
예제 #3
0
 @Override
 protected String visitTimeLiteral(TimeLiteral node, Boolean unmangleNames) {
   return "TIME '" + node.getValue() + "'";
 }