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

Replace case class Null(type) in Table API

Agile BoardRank to TopRank to BottomAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Release Note:
      Null literals in the Table API need to be defined with `nullOf(type)` instead of `Null(type)` from now on. The old approach is deprecated.

      Description

      FLINK-11449 has shown parts of the API that have not been designed properly. Especially, direct usages of case classes that will be only in the planner module should not be exposed through the API.

      Using null for representing a null literal is currently not supported in the Table API as a general NULL type and/or proper type inference is missing. Therefore, nulls must be typed using Null(Type.STRING). However, this encourages users to use case classes instead of the Scala DSL.

      We could implement a implicit object for Null, however, all functions and literals currently start with a lower case except for this object. I would recommend to introduce nullOf(type) instead. This would allow us to have nullOf(type) and null in the future.

        Attachments

        Issue Links

          Activity

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

            • Assignee:
              twalthr Timo Walther
              Reporter:
              twalthr Timo Walther

              Dates

              • Created:
                Updated:
                Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0h
              0h
              Logged:
              Time Spent - 20m
              20m

                Issue deployment