Péter Gergő Barna created ATLAS-2530:
----------------------------------------

             Summary: Newline at the beginning of the name attribute of a 
hive_process and hive_column_lineage
                 Key: ATLAS-2530
                 URL: https://issues.apache.org/jira/browse/ATLAS-2530
             Project: Atlas
          Issue Type: Bug
    Affects Versions: trunk
            Reporter: Péter Gergő Barna
            Assignee: Péter Gergő Barna


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.
{noformat}
$ 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{noformat}
 

running the above query will create the following entity:
{code:java}
{
 "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": []
 }
}{code}
 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to