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

odb export will scan full table with splitby column

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.1-incubating
    • 2.4
    • db-utility-odb
    • None

    Description

      use odb to extract data parallel with splitby column, when get min/max value from table, it will missing pwhere condition.

      step to reproduce:

      odb64luo -u db__root -p xx -d traf -e "src=cdr:pwhere=[service_id > 100]:tgt=cdr.txt:parallel=4:splitby=service_id",
      

      we can got the query to get min/max service_id,it is full table scan, the query missing the [service_id > 100] condition.

      [trafodion@esggy-poc-n012 ~]$ offender -s active
      EsgynDB Advanced Conversational Interface 2.3.0
      Copyright (c) 2015-2017 Esgyn Corporation
      >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>+>+>+>+>+>+>+>+>+>+>+>+>+>
      CURRENT_TIMESTAMP LAST_ACTIVITY_SECS QUERY_ID EXECUTE_STATE SOURCE_TEXT
      -------------------------- -------------------- --------------------------------------------------------------------------------
      
      2017-12-05 11:58:34.230648 18 MXID11003044725212379117598127226000000000206U3333308T150000000_32_SQL_CUR_13
      OPEN "SELECT MIN(SERVICE_ID), MAX(SERVICE_ID) FROM CDR
      

      Attachments

        Issue Links

          Activity

            People

              sujinpei 苏锦佩
              sujinpei 苏锦佩
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: