Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-23536

Documentation of DeserializationSchema#deserialize is incorrect

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.14.0
    • Fix Version/s: None
    • Component/s: API / Core, Documentation
    • Labels:
      None

      Description

      The documentation of DeserializationSchema#deserialize states:

      @return The deserialized message as an object (null if the message cannot be deserialized).

      However, some, if not most, implementations seem to actually throw an exception instead. We should clarify whether implementors can / should throw or return null "by default", and either way update the documentation.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              airblader Ingo Bürk
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: