mirror of
https://github.com/johnkerl/miller.git
synced 2026-01-23 02:14:13 +00:00
* Fix #1462: remove limit of 1000 on dedupe field names * make dev output
This commit is contained in:
parent
e3b98cd621
commit
2f42c6f508
5 changed files with 6 additions and 7 deletions
|
|
@ -3689,5 +3689,5 @@ MILLER(1) MILLER(1)
|
|||
|
||||
|
||||
|
||||
2023-12-23 MILLER(1)
|
||||
2024-01-01 MILLER(1)
|
||||
</pre>
|
||||
|
|
|
|||
|
|
@ -3668,4 +3668,4 @@ MILLER(1) MILLER(1)
|
|||
|
||||
|
||||
|
||||
2023-12-23 MILLER(1)
|
||||
2024-01-01 MILLER(1)
|
||||
|
|
|
|||
|
|
@ -3668,4 +3668,4 @@ MILLER(1) MILLER(1)
|
|||
|
||||
|
||||
|
||||
2023-12-23 MILLER(1)
|
||||
2024-01-01 MILLER(1)
|
||||
|
|
|
|||
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: mlr
|
||||
.\" Author: [see the "AUTHOR" section]
|
||||
.\" Generator: ./mkman.rb
|
||||
.\" Date: 2023-12-23
|
||||
.\" Date: 2024-01-01
|
||||
.\" Manual: \ \&
|
||||
.\" Source: \ \&
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "MILLER" "1" "2023-12-23" "\ \&" "\ \&"
|
||||
.TH "MILLER" "1" "2024-01-01" "\ \&" "\ \&"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * Portability definitions
|
||||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ func (mlrmap *Mlrmap) PutReferenceMaybeDedupe(key string, value *Mlrval, dedupe
|
|||
return key, nil
|
||||
}
|
||||
|
||||
for i := 2; i < 1000; i++ {
|
||||
for i := 2; ; i++ {
|
||||
newKey := key + "_" + strconv.Itoa(i)
|
||||
pe := mlrmap.findEntry(newKey)
|
||||
if pe == nil {
|
||||
|
|
@ -82,7 +82,6 @@ func (mlrmap *Mlrmap) PutReferenceMaybeDedupe(key string, value *Mlrval, dedupe
|
|||
return newKey, nil
|
||||
}
|
||||
}
|
||||
return key, fmt.Errorf("record has too many input fields named \"%s\"", key)
|
||||
}
|
||||
|
||||
// PutCopy copies the key and value (deep-copying in case the value is array/map).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue