bugGNU Core Utilities - Bugs: bug #21163, join stops on numeric field if...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #21163: join stops on numeric field if last number before double-digit is missing

Submitter:  None
Submitted:  Wed 26 Sep 2007 06:52:50 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Invalid
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Wed 26 Sep 2007 07:13:53 PM UTC, comment #1: 

Thanks for the report, but this isn't a bug.
Join requires that its inputs be sorted, and yours are not.
Compare with the output of sort (without -n).

Jim Meyering <meyering>
Group administrator
Wed 26 Sep 2007 06:52:50 PM UTC, original submission:  

tested with coreutils-5.2.1-31.4 on RHEL4, coreutils-5.97-12.1.el5 on RHEL5

Looks likes join terminates when joining on a numeric field if the last n-digit number before the n+1-digit number is missing, e.g. I have 2 sorted files with numbers 1-2000 (and then some data in other fiels). If in one file the line with "999 some data" is missing, the join output will stop at the line before. If instead  the "998 some other data" line is missing, join's output continues as expected.

# cat a       (sequence)
7
8
9
10
11
12
# cat b       (sequence with 9 missing)
7
8
10
11
12
# cat c       (sequence with 8 missing)
7
9
10
11
12


# join a b
7
8
<--- where's the rest?
# join a c
7
9
10
11
12

Anonymous

 

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

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 meyering (Posted a comment)
  •  

    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.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-09-26 meyering StatusNone Invalid
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code