Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-4085

Improve nullability support for fields of structured type

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.24.0
    • core

    Description

      As discussed in https://lists.apache.org/thread.html/r602ac95fff23dd1ef974fb396df7be061ab861384ec42f5c57ce0bc2%40%3Cdev.calcite.apache.org%3E I would like to change the way a type of a field of a record is derived at couple of locations. This helps frameworks such as Apache Flink to build support for nullable records with not null fields.

      I suggest to change:

      • SqlDotOperator#deriveType
      • SqlItemOperator#inferReturnType
      • AliasNamespace#validateImpl
      • RexBuilder#makeFieldAccessInternal
      • SqlValidatorImpl.DeriveTypeVisitor#visit(SqlIdentifier)

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            dwysakowicz Dawid Wysakowicz
            dwysakowicz Dawid Wysakowicz
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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

                Slack

                  Issue deployment