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

Parsing Issue with Interval

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.5.0
    • core
    • None

    Description

      There are two issues with Interval type

      1. A case which should be blocked at parsing:
      The negative sign is not supposed to be outside of quotes. For example,

      INTERVAL -'1' hour
      

      Calcite should have blocked it.

      2. The sign is not set correctly in parsing if there is a negative sign in quotes. For example,

      INTERVAL '-1' hour
      

      If you set a break point at the constructor of IntervalValue (, which will be called during parsing), you can see that, in the case above, sign is set to be +1.

      Attachments

        Issue Links

          Activity

            People

              seanhychu Sean Hsuan-Yi Chu
              seanhychu Sean Hsuan-Yi Chu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: