Uploaded image for project: 'Apache Trafodion (Retired)'
  1. Apache Trafodion (Retired)
  2. TRAFODION-321

LP Bug: 1324303 - bad cardinality estimates for metadata queries

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 0.8 (pre-incubation)
    • sql-cmp
    • None

    Description

      cardinality estimation for metadata queries is not correct. Specifically for the case of an index join and the join is on the index column. The cardinality of the join should reflect that of the left child of the join.

      Example of a metadata table that has the issue:

      prepare st1 from select T.CONSTRAINT_TYPE, o.OBJECT_NAME from trafodion."MD".table_constraints T, trafodion."MD".objects O where T.table_uid = o.object_uid;

      >>explain options 'f' st1;

      LC RC OP OPERATOR OPT DESCRIPTION CARD
      ---- ---- ---- -------------------- -------- -------------------- ---------

      3 . 4 root 5.00E+003
      2 1 3 hybrid_hash_join 5.00E+003
      . . 2 trafodion_index_scan OBJECTS 1.00E+002
      . . 1 trafodion_scan TABLE_CONSTRAINTS 1.00E+002

      — SQL operation complete.
      >>
      Assigned to LaunchPad User taoufik ben abdellatif

      Attachments

        Activity

          People

            Unassigned Unassigned
            apachetrafodion Apache Trafodion
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: