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

SHOW FUNCTIONS / SHOW FUNCTIONS LIKE - clarify

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

Details

    Description

      According to https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-ShowFunctions the currently available functions can be listed like this:

      SHOW FUNCTIONS <pattern>;

      If the user executes this command, they will get the correct list of functions, but they will also see this on the standard output:

      SHOW FUNCTIONS is deprecated, please use SHOW FUNCTIONS LIKE instead.

      If the user uses the

      SHOW FUNCTIONS LIKE <pattern>;

      command then they will receive the exact same result (though through different codes). The only difference is that one can get all the function names with "SHOW FUNCTIONS;", while "SHOW FUNCTIONS LIKE;" returns an exception, so in this case the pattern is mandatory.

      So there should be a decision if we still accept "SHOW FUNCTIONS" without the "LIKE". My suggestion is to accept it only if there is no pattern. so "SHOW FUNCTIONS;" is ok, without deprecation message, but "SHOW FUNCTIONS <pattern>" should throw an exception.

      Whatever we decide, we should document it appropriately.

      cc Kris Hahn

      Attachments

        1. HIVE-21896.02.patch
          25 kB
          Miklos Gergely
        2. HIVE-21896.01.patch
          19 kB
          Miklos Gergely

        Activity

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

          People

            mgergely Miklos Gergely Assign to me
            mgergely Miklos Gergely
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment