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

count(*) scans single region when it runs in parallel

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.2.0
    • None
    • sql-cmp
    • None
    • All

    Description

      count executes in parallel but with a lower scanning cost in single region.

      reproduce steps:
      1> CREATE TABLE TRAFODION.BULKLOAD.TEST_A
      (
      A INT NO DEFAULT NOT NULL NOT DROPPABLE NOT
      SERIALIZED
      , B INT NO DEFAULT NOT NULL NOT DROPPABLE NOT
      SERIALIZED
      , C INT NO DEFAULT NOT NULL NOT DROPPABLE NOT
      SERIALIZED
      , D INT NO DEFAULT NOT NULL NOT DROPPABLE NOT
      SERIALIZED
      , PRIMARY KEY (A ASC, B ASC, C ASC, D ASC)
      )
      SALT USING 8 PARTITIONS
      ON (A)
      ATTRIBUTES ALIGNED FORMAT
      ;
      2>explain select count from test_a <<+ cardinality 1e7>> where a = 1;

      Attachments

        Activity

          People

            Unassigned Unassigned
            fangling.he fanglinghe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: