You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@thrift.apache.org by "Sylwester Lachiewicz (Jira)" <ji...@apache.org> on 2026/09/23 06:38:00 UTC
[jira] [Updated] (THRIFT-6343) Erlang has no uuid support: the generator fails on a uuid field and the library has no uuid type
[ https://issues.apache.org/jira/browse/THRIFT-6343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sylwester Lachiewicz updated THRIFT-6343:
-----------------------------------------
Priority: Trivial (was: Minor)
> Erlang has no uuid support: the generator fails on a uuid field and the library has no uuid type
> ------------------------------------------------------------------------------------------------
>
> Key: THRIFT-6343
> URL: https://issues.apache.org/jira/browse/THRIFT-6343
> Project: Thrift
> Issue Type: Improvement
> Components: Erlang - Compiler, Erlang - Library
> Affects Versions: 0.25.0
> Reporter: Sylwester Lachiewicz
> Priority: Trivial
>
> The {{uuid}} base type ([THRIFT-5587|https://issues.apache.org/jira/browse/THRIFT-5587], 0.17.0) is not implemented for Erlang. [t_erl_generator.cc|https://github.com/apache/thrift/blob/master/compiler/cpp/src/thrift/generate/t_erl_generator.cc#L886] has no {{TYPE_UUID}} case in its type switches and fails generation, and {{lib/erl}} has no uuid in its protocol layer.
> {code}
> struct S { 1: uuid id }
> {code}
> {noformat}
> $ thrift --gen erl repro.thrift
> [FAILURE:generation:1] Error: compiler error: unsupported base type uuid
> {noformat}
> Filed so the gap is on record; the fix needs the library side too (read and write of the 16-byte value in the binary and compact protocols, and a representation, probably a 36-character binary like the other dynamic languages use). Reproduced on master at 3af0cfff1.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)