Kirankumar D G created ATLAS-3236:
-------------------------------------
Summary: Relationship traversal through DSL search queries
Key: ATLAS-3236
URL: https://issues.apache.org/jira/browse/ATLAS-3236
Project: Atlas
Issue Type: New Feature
Components: atlas-core
Affects Versions: trunk
Reporter: Kirankumar D G
Assignee: Kirankumar D G
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(
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)