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

Scala DataSet API ignores ResultTypeQueryable interface

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.3.1, 1.4.0
    • Fix Version/s: None
    • Component/s: API / DataSet, API / Scala
    • Labels:
      None

      Description

      The ResultTypeQueryable is used to specify the return type of user-defined functions. The Scala DataSet API ignores this interface. The only way to override the inferred type information is to use implicit values. However, the ResultTypeQueryable interface has the nice property that the return type is defined in the actual function, whereas implicit types are defined in the program, i.e., outside of the function.

      IMO, the Scala DataSet API should also support the ResultTypeQueryable interface.

      What do you think Aljoscha Krettek, [~till.rohrmann]?
      Was it a conscious decision to only support implicit type definitions?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              fhueske Fabian Hueske
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: