Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-2530

Newline at the beginning of the name attribute of a hive_process and hive_column_lineage

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • trunk
    • 1.0.0, 0.8.3
    • None
    • None

    Description

      Newline at the beginning of the name attribute of a hive_process and hive_column_lineage

       

      I can reproduce this by running a hive query from sql file and adding newline before the create table statement.

      $ cat hive.query.sql
      
      create table aaaaaaaaa as select * from database11_tplds.table12;
      
      create table bbbbbbbbb as select * from database11_tplds.table12;
      
      $ /usr/hdp/current/hive-client/bin/hive -f h

       

      running the above query will create the following entity:

      {
       "referredEntities": {},
       "entity": {
       "typeName": "hive_column_lineage",
       "attributes": {
       "owner": null,
       "outputs": [{
       "guid": "d92a58c7-79d6-4575-9df9-2e6b4724e948",
       "typeName": "hive_column"
       }],
       "expression": null,
       "qualifiedName": "default.bbbbbbbbb@cl1:1522852699000:id",
       "inputs": [{
       "guid": "5f32da36-317e-48c2-9037-5c3e95f083b5",
       "typeName": "hive_column"
       }],
       "query": {
       "guid": "9a8a6bcd-3ec8-44b7-be9c-247bb07257d7",
       "typeName": "hive_process"
       },
       "name": "\n\ncreate table bbbbbbbbb as select * from database11_tplds.table12:id",
       "description": null,
       "depenendencyType": "SIMPLE"
       },
       "guid": "670afe53-55f6-4859-b969-fab4755522f7",
       "status": "ACTIVE",
       "createdBy": "hrt_qa",
       "updatedBy": "hrt_qa",
       "createTime": 1522852700903,
       "updateTime": 1522852700903,
       "version": 0,
       "classifications": []
       }
      }

       

      Attachments

        Activity

          People

            bpgergo Péter Gergő Barna
            bpgergo Péter Gergő Barna
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m