[
https://issues.apache.org/jira/browse/ATLAS-2922?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Carol Drummond updated ATLAS-2922:
----------------------------------
Labels: release-notes (was: )
> 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
> Labels: release-notes
> Fix For: 1.2.0, 2.0.0, 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
(v8.3.4#803005)