Hi all,

As Generics were added in 1.18 and this is a super valuable tool, I would vote 
for going at least for that version, but I think they optimized that over the 
next versions. Current latest version is 1.26. I had claude summarize the 
biggest changes, and I’d recommend going to 1.20.

So, +1 for going to 1.20.

Chris

Von: 张磊 <[email protected]>
Datum: Freitag, 27. Februar 2026 um 11:32
An: [email protected] <[email protected]>
Betreff: [VOTE] Discussion on upgrading the IOTDB-CLIENT-GO Golang version

I propose upgrading the iotb-client-go GOLANG version and would like to 
initiate a vote with the following options:

Maintain version 1.13
Upgrade to version 1.18
Upgrade to version 1.20

Regarding the modification, for cases like where id = ? where the value type is 
uncertain, Go requires normalization for type conversion. Refer to this code 
example:

https://github.com/apache/iotdb-client-go/pull/150/changes#diff-cfadcaa82f9183622d5fc375535f66d6fe46889e64f71ec30a745b335748ca5eR323




```

func join[E any](tz *time.Location, scale TimeUnit, values []E) (string, error) 
{
    items := make([]string, len(values), len(values))
    for i := range values {
        val, err := format(tz, scale, values[i])
        if err != nil {
            return "", err
        }
        items[i] = val
    }
    return strings.Join(items, ", "), nil
}
```

Reply via email to