Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-24403 Improve behaviour of CAST
  3. FLINK-24423

Cast from TIME to TIMESTAMP currently uses Epoch Date

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      .from(TIME(5), LocalTime.parse("12:34:56.1234567")).resultsIn(LocalDateTime.of(1970, 1, 1, 12, 34, 56, 0))

       

      PostgreSQL doesn't allow such a cast, whereas Oracle uses the current system Date of the server.

       

      Should we keep it as is, or zero out the year? so end up with: 

      LocalDateTime.of(0, 1, 1, 12, 34, 56, 0))

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            matriv Marios Trivyzas
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: