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

Relationship traversal through DSL search queries

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • trunk
    • None
    • atlas-core
    • None

    Description

      Enhance Atlas DSL grammar to support relationship traversal.

       

      Examples:

      from hive_db as db where db.name="hive_db_g_test_2" hasr hive_table as tb where tb.name="hive_table_g_test_2" hasr hive_column as c where  c.name="hive_column_g_test_2" and c is realm

       

      query should be transformed into gremlin query as below

      g.V().has('_typeName', 'hive_db').as('db').has('Asset.name', eq("hive_db_g_test_2")).bothE().bothV().has('typeName','hive_table').as('tb').has('Asset.name', eq("hive_table_g_test_2")).bothE().bothV().has('typeName','hive_column').as('c').and(.has('Asset.name', eq("hive_column_g_test_2")),.outE('classifiedAs').has('_name', within('realm')).outV()).dedup().limit(25).toList(

       

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            kirankumardg Kirankumar D G
            kirankumardg Kirankumar D G

            Dates

              Created:
              Updated:

              Slack

                Issue deployment