Uploaded image for project: 'Couchbase Lite'
  1. Couchbase Lite
  2. CBL-1840

[N1QL] Issues generated from Test Harness

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.0
    • None
    • LiteCore
    • Security Level: Public
    • None
    • Jianmin 44
    • 5

    Description

      1. SELECT orderlines[1], count AS count FROM orders where test_id = "agg_func" GROUP BY orderlines[1] ORDER BY count
      produces entries with key "*" instead of "$1"
      2. select `between`(10,5,15),`between`(10,15,25) FROM scratch
      Syntax error from the between function
      3. SELECT atan(unitPrice/10) as uP FROM product where test_id = "numberfunc" ORDER BY uP ASC limit 20
      Results incorrect, looks very suspicious (two spurious 0.0 at the beginning?)
      4. select LOWER(ccInfo) as cclo FROM customer where test_id="str_func" ORDER by firstName limit 5
      null vs missing problem again that needs analysis (or possibly an ordering problem)
      5. select REGEXP_CONTAINS("Thisisabigsubquery","query") as regex FROM scratch
      Syntax error at FROM?  Weird
      6. SELECT REPLACE('SQL SQL SQL', 'S', 'N1', -1) as negative_n, REPLACE('SQL SQL SQL', 'S', 'N1', 2) as replace_2, REPLACE('SQL SQL SQL', 'S', 'N1') as replace_all FROM scratch
      No replace function?  Syntax error at Replace
      7. select IS_ARRAY(null) FROM scratch
      Should return null, but returns false?  It seems like Server is actually expecting IS to use the 4 value logic as well UGHHHHH

      Attachments

        1. consoleText.txt
          51 kB
        2. customer.cblite2.zip
          121 kB
        3. orders.cblite2.zip
          3 kB
        4. product.cblite2.zip
          181 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jianmin.zhao Jianmin Zhao
            jianmin.zhao Jianmin Zhao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty