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

Support variables for variables for composing data flows

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Query Processor
    • None

    Description

      This is similar to SCOPEs use of variables for composing data flows. With this capability Hive should be able to support things like

      X = select c1, c2 from T;
      Y = select X.c1 as c1, T2.c1 as c2 from X join T2 on (T2.c2 = X.c2);
      Z = select Y.c1, count(1) from Y group by Y.c1

      This can be also achieved through views though one minor difference is that the data variables X, Y and Z are local to the session whereas views are global is scope (though you can also have session specific views).

      Thoughts?

      Attachments

        Activity

          People

            athusoo Ashish Thusoo
            athusoo Ashish Thusoo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: