Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-32689

Insufficient validation for table.local-time-zone

    XMLWordPrintableJSON

Details

    Description

      There are still cases where timezone information is lost silently due to the interaction between java.util.TimeZone and java.time.ZoneId.

      This might be theoretical problem, but I would feel safer if we change the check to:

      if (!java.util.TimeZone.getTimeZone(zoneId).toZoneId().equals(ZoneId.of(zoneId))) {
         throw new ValidationException(errorMessage);
      }
      

      Attachments

        Issue Links

          Activity

            People

              twalthr Timo Walther
              twalthr Timo Walther
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: