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

Basic search with GET method gives incorrect result when single quote is used in the query

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • atlas-core
    • None

    Description

      Query: https://quasar-tiuhte-1.quasar-tiuhte.root.hwx.site:31443/api/atlas/v2/search/basic?typeName=hive_table&query=qualifiedName='default.avbzi_random_table@cm'

      Results:

      {queryType: "BASIC",…}approximateCount: 22entities: [{typeName: "hive_table",…}, {typeName: "hive_table",…},…]queryText: "qualifiedName='default.avbzi_random_table@cm'"queryType: "BASIC"searchParameters: {query: "qualifiedName='default.avbzi_random_table@cm'", typeName: "hive_table",…} 

      But when double quotes is used it gives the right output:

      Query:

      https://quasar-tiuhte-1.quasar-tiuhte.root.hwx.site:31443/api/atlas/v2/search/basic?typeName=hive_table&query=qualifiedName="default.avbzi_random_table@cm"

      {queryType: "BASIC",…}approximateCount: 1entities: [{typeName: "hive_table",…}]queryText: "qualifiedName=\"default.avbzi_random_table@cm\""queryType: "BASIC"searchParameters: {query: "qualifiedName="default.avbzi_random_table@cm"", typeName: "hive_table",…} 

      Attachments

        1. image-2022-02-25-15-30-31-001.png
          153 kB
          Dharshana M Krishnamoorthy
        2. image-2022-02-25-15-28-27-518.png
          155 kB
          Dharshana M Krishnamoorthy

        Activity

          People

            Unassigned Unassigned
            dharshmk Dharshana M Krishnamoorthy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: