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: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • 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

              Unassigned Unassigned
              leonard Leonard Xu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: