You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@iotdb.apache.org by 张磊 <16...@163.com> on 2026/02/27 10:28:50 UTC

[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
}
```

Re: [VOTE] Discussion on upgrading the IOTDB-CLIENT-GO Golang version

Posted by wenwei shu <s1...@gmail.com>.
+1 (Upgrade to 1.18)

Go 1.13 was released in September 2019 and has long reached end-of-life. It
no longer receives security fixes or official support. Since *Go 1.18*
introduced generics and other major features, many open source and
enterprise projects have made 1.18 the minimum supported compiler.


张磊 <16...@163.com> 于2026年2月27日周五 18:31写道:

> 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
> }
> ```
>

AW: [VOTE] Discussion on upgrading the IOTDB-CLIENT-GO Golang version

Posted by Christofer Dutz <ch...@c-ware.de>.
As mentioned,
In 1.18 generics were added … in the AI generated summary 1.19 an 1.20 were summarized as refining of 1.18. I remember that with the introduction not everything was perfect initially and they fine tuned that quite a bit.

But that doesn’t quite mean in go it’s like in java. In Go, if you use a library, the dependency is pulled as source and compiled inside the using project. But I think you can’t use a library in a project that uses a lower library than the code requires.

Chris

Von: Yuan Tian <ja...@gmail.com>
Datum: Sonntag, 1. März 2026 um 01:23
An: dev@iotdb.apache.org <de...@iotdb.apache.org>
Betreff: Re: [VOTE] Discussion on upgrading the IOTDB-CLIENT-GO Golang version

Hi lei,

Thanks for initiating this discussion and vote.

I am not very familiar with the Go language, so I'd appreciate it if you
could provide a brief summary of the main differences and improvements
between Go 1.18 and Go 1.20. This would help me make a more informed
decision for my vote.

Thanks,

Yuan

On Fri, Feb 27, 2026 at 6:32 PM 张磊 <16...@163.com> wrote:

> 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
> }
> ```
>

Re: [VOTE] Discussion on upgrading the IOTDB-CLIENT-GO Golang version

Posted by Yuan Tian <ja...@gmail.com>.
Hi lei,

Thanks for initiating this discussion and vote.

I am not very familiar with the Go language, so I'd appreciate it if you
could provide a brief summary of the main differences and improvements
between Go 1.18 and Go 1.20. This would help me make a more informed
decision for my vote.

Thanks,

Yuan

On Fri, Feb 27, 2026 at 6:32 PM 张磊 <16...@163.com> wrote:

> 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
> }
> ```
>

AW: [VOTE] Discussion on upgrading the IOTDB-CLIENT-GO Golang version

Posted by Christofer Dutz <ch...@c-ware.de>.
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: 张磊 <16...@163.com>
Datum: Freitag, 27. Februar 2026 um 11:32
An: dev@iotdb.apache.org <de...@iotdb.apache.org>
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
}
```

Re: [VOTE] Discussion on upgrading the IOTDB-CLIENT-GO Golang version

Posted by Yuan Tian <ja...@gmail.com>.
+1 for 1.20


On Fri, Feb 27, 2026 at 18:32 张磊 <16...@163.com> wrote:

> 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
> }
> ```
>