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

Lineage information not set properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.1.0, 2.1.1
    • 2.2.0
    • None
    • None

    Description

      I am trying to fetch column level lineage after a CTAS query in a Post Execution hook in Hive. Below are the queries:

      create table t1(id int, name string);
      create table t2 as select * from t1;
      

      The lineage information is retrieved using the following sample piece of code:

      lInfo = hookContext.getLinfo()
      for(Map.Entry<LineageInfo.DependencyKey, LineageInfo.Dependency> e : lInfo.entrySet()) {
          System.out.println("Col Lineage Key : " + e.getKey());
          System.out.println("Col Lineage Value: " + e.getValue());
      }
      

      The Dependency field(i.e Col Lineage Value) is coming in as null.

      Attachments

        1. HIVE-14706.01.patch
          0.9 kB
          Pengcheng Xiong

        Issue Links

          Activity

            People

              pxiong Pengcheng Xiong
              svimal2106 Vimal Sharma
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: