Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-5019

Makedep hint using @ syntax sometimes ignored

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 10.0, 9.3.3
    • None
    • Query Engine
    • None
    • Workaround Exists
    • Hide

      Adding a limit to the query causes the table to be found.

      Show
      Adding a limit to the query causes the table to be found.

      I’m using Teiid version 9.2.2. In some cases, using the makedep @<table> feature results in the makedep hint being ignored.
      I use this feature to apply a makedep to only one branch of a set operation, since makedep hints are not applied when placed on the individual queries in the set operation .
      My query looks like this:

      (Select bbb from ccc
      Intersect
      select abc.yyy from (select yyy from zzz) abc
      ) option makedep @abc.zzz

      In the debug plan in the “GENERATE CANONICAL” section, I see:

      MEDIUM [Hints] Unknown group specified in OPTION MAKEDEP/MAKENOTDEP: @abc.zzz - ignoring hint

      This only occurs if the query has no limit applied to it. If I add a limit option, it does find the table and apply the hint correctly.

              rhn-engineering-shawkins Steven Hawkins
              mike.higgins@certara.com Mike Higgins (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: