bugPSPP - Bugs: bug #64044, CTABLES bug with string variable

 
 

bug #64044: CTABLES bug with string variable

Submitter:  Ben Pfaff <blp>
Submitted:  Thu 13 Apr 2023 09:50:12 PM UTC
   
 
Category:  Other Severity:  5 - Average
Status:  Fixed Assigned to:  None
Open/Closed:  Closed Release:  None
Effort:  0.00
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 17 Apr 2023 11:11:26 PM UTC, comment #1: 

I fixed this with commit 9dfbdc3c1782 ("CTABLES: Fix treatment of string variables that differ past the first byte.")

Ben Pfaff <blp>
Group administrator
Thu 13 Apr 2023 09:50:12 PM UTC, original submission:  

The following syntax:

DATA LIST LIST(',')
   /when (YMDHMS17) runner (A15) mode (A6) query (A3) cores (F4.1) events (F9) elapsed (F5.3).
BEGIN DATA.
2023-04-13 20:24:15,beam/direct,batch,q0,16,100000,2.6
2023-04-13 20:24:15,beam/direct,batch,q10,16,100000,20.2
2023-04-13 20:24:15,beam/direct,batch,q11,16,100000,3.0
2023-04-13 20:24:15,beam/direct,batch,q1,16,100000,1.4
2023-04-13 20:24:15,beam/direct,batch,q12,16,100000,2.4
2023-04-13 20:24:15,beam/direct,batch,q13,16,100000,2.8
2023-04-13 20:24:15,beam/direct,batch,q14,16,100000,3.9
2023-04-13 20:24:15,beam/direct,batch,q15,16,100000,7.7
2023-04-13 20:24:15,beam/direct,batch,q16,16,100000,43.2
2023-04-13 20:24:15,beam/direct,batch,q2,16,100000,1.0
2023-04-13 20:24:15,beam/direct,batch,q3,16,100000,1.6
2023-04-13 20:24:15,beam/direct,batch,q4,16,100000,10.7
2023-04-13 20:24:15,beam/direct,batch,q5,16,100000,48.7
2023-04-13 20:24:15,beam/direct,batch,q6,16,100000,11.4
2023-04-13 20:24:15,beam/direct,batch,q7,16,100000,12.5
2023-04-13 20:24:15,beam/direct,batch,q8,16,100000,8.9
2023-04-13 20:24:15,beam/direct,batch,q9,16,100000,7.2
2023-04-13 20:29:53,dbsp,batch,q0,16,100000,.04561900000000000000
2023-04-13 20:29:53,dbsp,batch,q1,16,100000,.03736800000000000000
2023-04-13 20:29:53,dbsp,batch,q2,16,100000,.03659400000000000000
2023-04-13 20:29:53,dbsp,batch,q3,16,100000,.03664200000000000000
2023-04-13 20:29:53,dbsp,batch,q4,16,100000,.03801000000000000000
2023-04-13 20:29:53,dbsp,batch,q5,16,100000,.03785200000000000000
2023-04-13 20:29:53,dbsp,batch,q6,16,100000,.04235900000000000000
2023-04-13 20:29:53,dbsp,batch,q7,16,100000,.03007600000000000000
2023-04-13 20:29:53,dbsp,batch,q8,16,100000,.03585900000000000000
2023-04-13 20:29:53,dbsp,batch,q9,16,100000,.05244400000000000000
2023-04-13 20:29:53,dbsp,batch,q12,16,100000,.03639100000000000000
2023-04-13 20:29:53,dbsp,batch,q13,16,100000,.03862200000000000000
2023-04-13 20:29:53,dbsp,batch,q14,16,100000,.04010800000000000000
2023-04-13 20:29:53,dbsp,batch,q15,16,100000,.04001400000000000000
2023-04-13 20:29:53,dbsp,batch,q16,16,100000,.03917800000000000000
2023-04-13 20:29:53,dbsp,batch,q17,16,100000,.04058000000000000000
2023-04-13 20:29:53,dbsp,batch,q18,16,100000,.03727600000000000000
2023-04-13 20:29:53,dbsp,batch,q19,16,100000,.04085900000000000000
2023-04-13 20:29:53,dbsp,batch,q20,16,100000,.04220000000000000000
2023-04-13 20:29:53,dbsp,batch,q21,16,100000,.03940000000000000000
2023-04-13 20:29:53,dbsp,batch,q22,16,100000,.03528700000000000000
END DATA.
VARIABLE LEVEL cores events elapsed (SCALE) query (NOMINAL).
CTABLES/TABLE=query BY runner > elapsed[MINIMUM].

yields output that shows only q0 even though query has many more values:

         Custom Tables
╭────────┬───────────────────╮
│        │       runner      │
│        ├───────────┬───────┤
│        │beam/direct│  dbsp │
│        ├───────────┼───────┤
│        │  elapsed  │elapsed│
│        ├───────────┼───────┤
│        │  Minimum  │Minimum│
├────────┼───────────┼───────┤
│query q0│      1.400│   .035│
╰────────┴───────────┴───────╯


When I changed query to be numeric the problem went away.

Ben Pfaff <blp>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by blp (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-04-17 blp StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code