Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-44337

Any fields set to Any.getDefaultInstance cause exceptions.

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.1
    • 3.5.0
    • Protobuf
    • None

    Description

      Protobuf functions added support for converting `Any` fields to json strings. 

      It uses Protobuf's built in `JsonFormat` to covert to JSON.

      JsonFormat fails to handled the fields when they are set to `Any.getDefaultInstance()` in the original message. This fails only while using descriptor set, but does not fail while using Java classes. Since using descriptor files is the common case, this can be blocker. 

      Attachments

        Activity

          People

            rangadi Raghu Angadi
            rangadi Raghu Angadi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: