Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-24745

Document rules for implicit type conversions

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsAdd voteVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Query Processor
    • None

    Description

      Although there is some documentation about implicit type conversions that are allowed in Hive there is no specification defining how conversions should work when the types are not the same (which type should be converted to which type).

      This makes query results hard to interpret and may lead to clients complaining about wrong results even when the behavior is expected. Moreover, the absence of a specification makes potential fixes harder to land since it is difficult to agree on what is the expected behavior.

      It would really help if there was a document such as the one provided by SQLServer clearly stating what should be the result of a conversion between two types.

      Attachments

        Activity

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

          People

            Unassigned Unassigned Assign to me
            zabetak Stamatis Zampetakis

            Dates

              Created:
              Updated:

              Slack

                Issue deployment