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