You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (JIRA)" <ji...@apache.org> on 2014/02/25 21:43:19 UTC

[jira] [Commented] (THRIFT-2378) golang code which thrift generated from hbase.thrift compile error

    [ https://issues.apache.org/jira/browse/THRIFT-2378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13912026#comment-13912026 ] 

Jens Geyer commented on THRIFT-2378:
------------------------------------

Reproducible, and I still get the same errors with current trunk. Seems to be a problem of the {{binary}} type being wrongly handled as {{string}} at some places.

> golang code which thrift generated from hbase.thrift compile error
> ------------------------------------------------------------------
>
>                 Key: THRIFT-2378
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2378
>             Project: Thrift
>          Issue Type: Bug
>          Components: Go - Compiler
>    Affects Versions: 0.9.1
>         Environment: hbase-0.94.3
> thrift-0.9.1
> go version go1.1.2 linux/amd64
> ubuntu 3.5.0-23-generic
>            Reporter: sherlockhua
>              Labels: complile, error, golang, hbase
>
> go build hbase/t_h_base_service-remote
> # hbase/t_h_base_service-remote
> src/hbase/t_h_base_service-remote/t_h_base_service-remote.go:202: containerStruct1.ReadField2 undefined (type *hbase.GetMultipleArgs has no field or method ReadField2)
> src/hbase/t_h_base_service-remote/t_h_base_service-remote.go:271: cannot use value1 (type string) as type []byte in function argument
> src/hbase/t_h_base_service-remote/t_h_base_service-remote.go:271: cannot use value2 (type string) as type []byte in function argument
> src/hbase/t_h_base_service-remote/t_h_base_service-remote.go:271: cannot use value3 (type string) as type []byte in function argument
> src/hbase/t_h_base_service-remote/t_h_base_service-remote.go:271: cannot use value4 (type string) as type []byte in function argument
> src/hbase/t_h_base_service-remote/t_h_base_service-remote.go:292: containerStruct1.ReadField2 undefined (type *hbase.PutMultipleArgs has no field or method ReadField2)
> src/hbase/t_h_base_service-remote/t_h_base_service-remote.go:347: containerStruct1.ReadField2 undefined (type *hbase.DeleteMultipleArgs has no field or method ReadField2)
> src/hbase/t_h_base_service-remote/t_h_base_service-remote.go:389: cannot use value1 (type string) as type []byte in function argument
> src/hbase/t_h_base_service-remote/t_h_base_service-remote.go:389: cannot use value2 (type string) as type []byte in function argument
> src/hbase/t_h_base_service-remote/t_h_base_service-remote.go:389: cannot use value3 (type string) as type []byte in function argument
> src/hbase/t_h_base_service-remote/t_h_base_service-remote.go:389: too many errors



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)