Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-4555

Invalid zero literal value is used for TIMESTAMP WITH LOCAL TIME ZONE type in RexBuilder

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.35.0
    • None

    Description

      The zero literal value for TIMESTAMP WITH LOCAL TIME ZONE type is used in `org.apache.calcite.rex.RexBuilder`

          case TIMESTAMP_WITH_LOCAL_TIME_ZONE:
            return new TimestampString(0, 0, 0, 0, 0, 0);
         //TimestampString(int year, int month, int day, int h, int m, int s)
      

      the month and day should never be zero, I think the zero value should be '1970-01-01 00:00:00'(epoch 0 second).

      Attachments

        Issue Links

          Activity

            People

              Sergey Nuyanzin Sergey Nuyanzin
              leonard Leonard Xu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: