Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-611 Support variables for variables for composing data flows
  3. HIVE-2165

variable to be assigned with an atomic value from a query

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsAdd voteVotersWatch issueWatchersConvert to IssueMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Query Processor
    • None

    Description

      Currently variable can only be assigned by a constant. There are cases where a query generate a single value that should be used by the second query. It would be nice to assign this value to a variable and pass it to the second query. For exmaple:

      hive> set x_avg = `select avg(x) from T`;
      hive> select my_udf(${hiveconf:x_avg}, y) from T2;
      

      Attachments

        Activity

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

          People

            Unassigned Unassigned Assign to me
            nzhang Ning Zhang

            Dates

              Created:
              Updated:

              Slack

                Issue deployment