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

Interval fractional second precision returns wrong value

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.11.0
    • None
    • None

    Description

      Unless I'm wrong, I believe SqlIntervalQualifer#getFractionalSecondPrecisionPreservingDefault() returns the wrong field:

        public int getFractionalSecondPrecision(RelDataTypeSystem typeSystem) {
          if (fractionalSecondPrecision == RelDataType.PRECISION_NOT_SPECIFIED) {
            return typeName().getDefaultScale();
          } else {
            return fractionalSecondPrecision;
          }
        }
      
        public int getFractionalSecondPrecisionPreservingDefault() {
          if (useDefaultFractionalSecondPrecision()) {
            return RelDataType.PRECISION_NOT_SPECIFIED;
          } else {
            return startPrecision;
          }
        }
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            julianhyde Julian Hyde
            laurent Laurent Goujon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment