Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-2922

REST API: Fetch Lineage with Schema Results in Error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • trunk
    • 1.2.0, 2.0.0, trunk
    • atlas-intg
    • None

    Description

      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:

      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
      

      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:

      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
      

      Attachments

        Issue Links

          Activity

            People

              amestry Ashutosh Mestry
              amestry Ashutosh Mestry
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: