Sylwester Lachiewicz created THRIFT-6343:
--------------------------------------------

             Summary: 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


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)

Reply via email to