[ https://issues.apache.org/jira/browse/ATLAS-2530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16425776#comment-16425776 ]
ASF GitHub Bot commented on ATLAS-2530: --------------------------------------- GitHub user bpgergo opened a pull request: https://github.com/apache/atlas/pull/5 ATLAS-2530 trim query string before using it as name attribute for Hi… …ve process and column lineage You can merge this pull request into a Git repository by running: $ git pull https://github.com/bpgergo/atlas ATLAS-2530 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/atlas/pull/5.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #5 ---- commit 69de58d2f82cfe46f3f24627ec0761d0d86875b1 Author: Peter Gergo Barna <pbarna@...> Date: 2018-04-04T16:06:03Z ATLAS-2530 trim query string before using it as name attribute for Hive process and column lineage ---- > 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 > Priority: Major > > 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)