atlas-dev mailing list archives

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


Hemanth Yamijala commented on ATLAS-432:

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

This fails with an exception as follows:
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)

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:
>             Project: Atlas
>          Issue Type: Bug
>    Affects Versions: 0.6-incubating
>            Reporter: Hemanth Yamijala
>            Assignee: Hemanth Yamijala
>         Attachments: ATLAS-432.patch
> * Run 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

View raw message