Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-36577

Applying N1QL "format" on more complex statements can indent incorrectly

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 6.5.0
    • 7.0.0
    • UI
    • Untriaged
    • Unknown

    Description

      When applying the new 6.5 "format" feature in the N1QL query editor complex queries are sometimes not indented correctly to the proper level.

      The two example N1QL files ( indents_fine.n1ql and indents_bad.n1ql ) are almost identical.

      BUT the format differently WRT indenting see attached image where the last three lines are incorrectly indented and additional level.

      Attachments

        1. indents_bad.n1ql
          1.0 kB
        2. indents_fine.n1ql
          1 kB
        3. issue_pic.JPG
          issue_pic.JPG
          131 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          jon.strabala Jon Strabala created issue -
          raju Raju Suravarjjala made changes -
          Field Original Value New Value
          Affects Version/s Mad-Hatter [ 15037 ]
          eben Eben Haber made changes -
          Assignee Kamini Jagtiani [ kamini.jagtiani ] Eben Haber [ eben ]
          eben Eben Haber made changes -
          Component/s query [ 10718 ]
          raju Raju Suravarjjala made changes -
          Fix Version/s Cheshire-Cat [ 15915 ]
          raju Raju Suravarjjala made changes -
          Labels deferred-from-Mad-Hatter
          dfinlay Dave Finlay made changes -
          Link This issue blocks MB-37192 [ MB-37192 ]
          eben Eben Haber made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          deepika.verma Deepika Verma (Inactive) made changes -
          VERIFICATION STEPS Verified on 7.0.0 4075
          long query visible in correct format.
          Status Resolved [ 5 ] Closed [ 6 ]
          lynn.straus Lynn Straus made changes -
          Fix Version/s 7.0.0 [ 17233 ]
          lynn.straus Lynn Straus made changes -
          Fix Version/s Cheshire-Cat [ 15915 ]

          People

            eben Eben Haber
            jon.strabala Jon Strabala
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty