Uploaded image for project: 'Apache AsterixDB'
  1. Apache AsterixDB
  2. ASTERIXDB-2519

Compiler error caused by index selection when search expression is not constant

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • COMP - Compiler
    • None

    Description

      1. Create LineItem dataset
      2. Create index on l_suppkey
          create index idx_LineItem_suppkey on LineItem (l_suppkey) type btree;
          
      3. Run the following query
          select value count(*)
          from LineItem as c
          where
            ((c.l_suppkey < 100 + tobigint(random()/2)) and
            (c.l_suppkey > 5 + tobigint(random()/2)));
          
      4. Error:
           java.lang.Exception: ASX1079: Compilation error: Could not infer type for variable '$$44'.
           

      There's a range search on indexed field and search expressions are not a constants

      Attachments

        Activity

          People

            dlychagin-cb Dmitry Lychagin
            dlychagin-cb Dmitry Lychagin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: