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

Struct types with one field are not mapped correctly to Java Classes

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      There are various places in the code where given a RelDataType we need to obtain the respective Java Class/Type. This is done mainly through JavaTypeFactory#getJavaClass. For the Calcite runtime it passes through PhysType#fieldClass and PhysType#getJavaFieldType. 

      However, when the RelDataType is a struct of one field the returned Class/Type is not the correct one since the struct type is simplified to the type of its component. 

      Attachments

        Issue Links

        Activity

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

          People

            zabetak Stamatis Zampetakis
            zabetak Stamatis Zampetakis
            Votes:
            0 Vote for this issue
            Watchers:
            4 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