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

odb incorrectly generates 0 rows in a certain scenario

Add voteWatch issue
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.4
    • None
    • db-utility-odb
    • None

    Description

      In the following scenario, odb generates 0 rows when it should generate 5 rows.

      DDL:

      create table toyodb2 (a int not null, b int, c varchar(100), d varchar(100), primary key (a));

      Map file (here named, try2OdbCrandFails.map):

      A:SEQ:0
      B:IRAND:3:12
      C:DSRAND:carMakes.txt
      D:CRAND:10

      The file carMakes.txt contains:

      Chevrolet
      Dodge
      Toyota
      Nissan
      Suzuki
      Hyundai

      odb command:

      odb64luo -u db__root -p traf123 -d traf -l src=nofile:tgt=trafodion.sch.toyodb2:max=100:map=try2OdbCrandFails.map:rows=100:truncate

      In this example, 0 rows will be generated, when 5 should have been.

      If you change the map file to the following, it will succeed in generating 5 rows:

      A:SEQ:0
      B:IRAND:3:12
      C:CRAND:10
      D:DSRAND:carMakes.txt

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            dbirdsall Dave Birdsall

            Dates

              Created:
              Updated:

              Slack

                Issue deployment