Uploaded image for project: 'Apache Storm'
  1. Apache Storm
  2. STORM-3797

Cannot generate storm.thrift using Golang generator

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.3.0
    • None
    • storm-client

    Description

      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

       

      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?

      Attachments

        Activity

          People

            Unassigned Unassigned
            waj334 Justin A Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: