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

Index hints ignored while not producing a warning

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • IDX - Indexes

    Description

      When I run a query with a particular index hint, Asterix DB ignores the index on the hint and uses the default primary key index.

      Below is an example query:

      USE tpch;SELECT  Orders.o_custkey, Lineitem.l_extendedprice
      FROM   Orders, Lineitem
      WHERE Orders.o_orderkey /*+ indexnl(lineitem_fk_orders) */ = Lineitem.l_orderkey

      I am attaching the json query plan where you will see the"Lineitem" index is used to join with Lineitem and not "lineitem_fk_orders".

      Attachments

        Activity

          People

            vsarathy1 Vijay Sarathy
            pratyoyd Pratyoy Das
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: