You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@storm.apache.org by "Justin A Wilson (Jira)" <ji...@apache.org> on 2021/09/24 20:23:00 UTC
[jira] [Created] (STORM-3797) Cannot generate storm.thrift using
Golang generator
Justin A Wilson created STORM-3797:
--------------------------------------
Summary: Cannot generate storm.thrift using Golang generator
Key: STORM-3797
URL: https://issues.apache.org/jira/browse/STORM-3797
Project: Apache Storm
Issue Type: Bug
Components: storm-client
Affects Versions: 2.3.0
Reporter: Justin A Wilson
Generating Go code from storm.thrift fails with the following message:
[FAILURE:generation:1] Error: Cannot produce a valid type for a Go map key: []int64 - aborting.
The offending lines:
[https://github.com/apache/storm/blob/b5252eda18e76c4f42af58d7481ea66cf3ec8471/storm-client/src/storm.thrift#L517-L518|https://github.com/apache/storm/blob/b5252eda18e76c4f42af58d7481ea66cf3ec8471/storm-client/src/storm.thrift#L518]
Golang does not allow slices to be used as a key for a map since they are not comparable using the equality operator. Otherwise the rest of it will generate just fine if those maps are commented out.
What is the significance of those maps?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)