else if (TIME_WITH_TIME_ZONE.equals(type)) { throw new UnsupportedOperationException("H2 does not support TIME WITH TIME ZONE");
return DateTimeFormatter.ISO_LOCAL_TIME.parse(((String) value), LocalTime::from); else if (TIME_WITH_TIME_ZONE.equals(type)) {
return ISO8601_FORMATTER.print(parseTimestampWithoutTimeZone(timeZoneKey, (String) value)); if (TIME_WITH_TIME_ZONE.equals(type) || TIMESTAMP_WITH_TIME_ZONE.equals(type)) { return ISO8601_FORMATTER.print(unpackMillisUtc(parseTimestampWithTimeZone(timeZoneKey, (String) value)));
return ISO8601_FORMATTER.print(parseTimestampWithoutTimeZone(timeZoneKey, (String) value)); if (TIME_WITH_TIME_ZONE.equals(type) || TIMESTAMP_WITH_TIME_ZONE.equals(type)) { return ISO8601_FORMATTER.print(unpackMillisUtc(parseTimestampWithTimeZone(timeZoneKey, (String) value)));
else if (TIME_WITH_TIME_ZONE.equals(type)) { long millisUtc = ((SqlTimeWithTimeZone) value).getMillisUtc(); TimeZoneKey timeZoneKey = ((SqlTimeWithTimeZone) value).getTimeZoneKey();
return "float"; if (TIME_WITH_TIME_ZONE.equals(type) || TIMESTAMP_WITH_TIME_ZONE.equals(type)) { throw new PrestoException(NOT_SUPPORTED, "Unsupported column type: " + type.getDisplayName());
else if (TIME_WITH_TIME_ZONE.equals(type)) { throw new UnsupportedOperationException("H2 does not support TIME WITH TIME ZONE");
return DateTimeFormatter.ISO_LOCAL_TIME.parse(((String) value), LocalTime::from); else if (TIME_WITH_TIME_ZONE.equals(type)) {
type.writeLong(blockBuilder, millisUtc); else if (TIME_WITH_TIME_ZONE.equals(type)) { long millisUtc = ((SqlTimeWithTimeZone) value).getMillisUtc(); TimeZoneKey timeZoneKey = ((SqlTimeWithTimeZone) value).getTimeZoneKey();
return "float"; if (TIME_WITH_TIME_ZONE.equals(type) || TIMESTAMP_WITH_TIME_ZONE.equals(type)) { throw new PrestoException(NOT_SUPPORTED, "Unsupported column type: " + type.getDisplayName());