atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hemanth Yamijala (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ATLAS-432) QuickStart lineage is broken
Date Tue, 12 Jan 2016 10:28:39 GMT

    [ https://issues.apache.org/jira/browse/ATLAS-432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15093693#comment-15093693
] 

Hemanth Yamijala commented on ATLAS-432:
----------------------------------------

[~shwethags], I used the following code to try and do what you suggested:
{code}
        JSONArray results = serviceClient.searchByDSL(String.format("%s where name='%s'",
                QuickStart.DATABASE_TYPE, dbName));
        String dbString = results.get(0).toString();
        InstanceSerialization.fromJsonReferenceable(dbString, true);
{code}

This fails with an exception as follows:
{code}
org.json4s.package$MappingException: No usable value for id
No usable value for id
Did not find value which can be converted into java.lang.String

	at org.json4s.reflect.package$.fail(package.scala:96)
{code}

What we get from the search results is different from the entity JSON that is returned from
a GET on the entity. Hence, I don't think we can really use the method you suggest. On a similar
note, look at {{HiveMetaStoreBridge.getEntityReferenceFromDSL}}. It is also dealing with JSON
objects, rather than deserializing into a Referenceable.

Please let me know if there's a different way I can do this.

> QuickStart lineage is broken
> ----------------------------
>
>                 Key: ATLAS-432
>                 URL: https://issues.apache.org/jira/browse/ATLAS-432
>             Project: Atlas
>          Issue Type: Bug
>    Affects Versions: 0.6-incubating
>            Reporter: Hemanth Yamijala
>            Assignee: Hemanth Yamijala
>         Attachments: ATLAS-432.patch
>
>
> * Run quick_start.py on the release version of 0.6.
> * Query for Table, select sales_fact table from the results
> * You will not see any lineage graph even though QuickStart adds a LoadProcess that captures
information for the lineage.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message