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

Relationship search API for hive storage desc throws error code 500

    XMLWordPrintableJSON

    Details

      Description

      Tried below API of ATLAS

      v2/search/relationship?limit=10&offset=0&guid=3e424245-0676-4d47-96a1-e17228b38367&relation=__hive_table.sd&sortBy=name&sortOrder=ASCENDING&excludeDeletedEntities=true

      error Response:

      {
        "errorCode": "ATLAS-500-00-001",
        "errorMessage": "Internal server error Relationship search query failed"
      }
      

       

      Cause of issue: 
      Above Request contains sortBy=name, 'name' attribute is not in hive_storagedesc definition, hence the issue.
      Also if sortBy is not passed, default attribute is 'name'

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pinal.shah Pinal
                Reporter:
                pinal.shah Pinal
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: