atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashutosh Mestry (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ATLAS-2922) REST API: Fetch Lineage with Schema Results in Error
Date Tue, 16 Oct 2018 04:21:00 GMT

     [ https://issues.apache.org/jira/browse/ATLAS-2922?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ashutosh Mestry updated ATLAS-2922:
-----------------------------------
    Attachment:     (was: ATLAS-2922-Multiplicity-computation-updated-for-SET-.patch)

> REST API: Fetch Lineage with Schema Results in Error
> ----------------------------------------------------
>
>                 Key: ATLAS-2922
>                 URL: https://issues.apache.org/jira/browse/ATLAS-2922
>             Project: Atlas
>          Issue Type: Bug
>          Components: atlas-intg
>    Affects Versions: trunk
>            Reporter: Ashutosh Mestry
>            Assignee: Ashutosh Mestry
>            Priority: Major
>             Fix For: trunk
>
>         Attachments: ATLAS-2922-Multiplicity-computation-updated-for-SET-.patch
>
>
> *Pre-requisites*
> From beeline create the table and view.
> _create table daily (c1 string, c2 string, c3 string, c4 string);_
> _create view daily_rpt as select * from daily;_
> Hive-specific entities get created.
> Get the GUID of the column entity.
> *Steps to duplicate*
> Use the following CURL call:
> {code:java}
> curl -X GET -u admin:admin123 -H "Content-Type: application/json" -H "Cache-Control:
no-cache" http://localhost:21000/api/atlas/lineage/<guid from above>/schema
> {code}
> _Expected output:_ REST API executes correctly and lineage schema is displayed.
> _Actual output:_ Following error is displayed
> _transfer closed with outstanding read data remaining_
> Part of JSON output is displayed.
> Server logs show serialization error:
> {code:java}
> com.fasterxml.jackson.core.JsonGenerationException: Can not write a field name, expecting
a value
>       at com.fasterxml.jackson.core.JsonGenerator._reportError(JsonGenerator.java:1961)
>       at com.fasterxml.jackson.core.json.UTF8JsonGenerator.writeFieldName(UTF8JsonGenerator.java:238)
>       at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:725)
>       at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:719)
>       at com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:155)
>       at com.fasterxml.jackson.databind.ser.impl.IndexedListSerializer.serializeContents(IndexedListSerializer.java:119)
>       at
> {code}



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

Mime
View raw message