@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;
 }
 @Override
 protected Long visitTimeLiteral(TimeLiteral node, ConnectorSession session) {
   return parseTime(session.getTimeZoneKey(), node.getValue());
 }
Beispiel #3
0
 @Override
 protected String visitTimeLiteral(TimeLiteral node, Boolean unmangleNames) {
   return "TIME '" + node.getValue() + "'";
 }