Member since
07-11-2017
7
Posts
0
Kudos Received
0
Solutions
07-25-2017
08:02 PM
hi again @Sarath Subramanian i'm attaching my model and a sample data to ingest. then i'm getting the exception when i try to query: zaloni_entity where hiveInfo.name like "ad*" please let me know if you see anything wrong. thanks carlos model.txtsample.txt
... View more
07-25-2017
07:51 PM
hi @Sarath Subramanian i'm also getting this issue with attributes that are referring other entities. not just arrays. i have a built from may 2017. fyi carlos
... View more
07-25-2017
06:27 PM
hi @Sarath Subramanian sorry to bother you. 'like' seems to work with single types. but for arrays it doesn't seem to work. for example, i have an entity my_entity with a property my_attributes of typeName array<my_attribute> where my_attribute is of structDefs {
"name": "my_attribute", "typeVersion": "1.0", "attributeDefs": [ {
"name": "name", "typeName": "string", "cardinality": "SINGLE", "isIndexable": true, "isOptional": false, "isUnique": false
}, {
"name": "value", "typeName": "string", "cardinality": "SINGLE", "isIndexable": true, "isOptional": false, "isUnique": false
}
]
} if i do a DSL query: my_entity where my_attributes.name like "*lang*" i get an exception like this: 2017-07-25 14:05:48,225 ERROR - [pool-1-thread-4 - 05457522-89ab-4f1b-a8ba-3134413d1838:] ~ Error handling a request: 5d7cba60f2da2a76 (ExceptionMapperUtil:32)
org.apache.atlas.exception.AtlasBaseException: Gremlin script execution failed: L:{def r=(([]) as Set);def f1={GremlinPipeline x->x.as('a0').out('__my_entity.my_attributes').as('__res') [0..<25].select(['a0', '__res']).fill(r)};f1(g.V().has('__typeName','my_entity'));f1(g.V().has('__superTypeNames','my_entity'));r._().as('__tmp').transform({((Row)it).getColumn('a0')}).as('a0').back('__tmp').transform({((Row)it).getColumn('__res')}).as('__res').filter({it.'my_attribute.name'.matches('*lang*')}).back('a0') [0..<25].toList()}
at org.apache.atlas.repository.graphdb.titan0.Titan0Graph.executeGremlinScript(Titan0Graph.java:342)
at org.apache.atlas.repository.graphdb.titan0.Titan0Graph.executeGremlinScript(Titan0Graph.java:274)
at org.apache.atlas.discovery.EntityDiscoveryService.searchUsingDslQuery(EntityDiscoveryService.java:114)
at org.apache.atlas.web.rest.DiscoveryREST.searchUsingDSL(DiscoveryREST.java:97) do you know what i'm doing wrong here? or is this not yet supported? thanks carlos
... View more
07-24-2017
04:17 PM
hello @Sarath Subramanian that's great! thank you 😉
... View more
07-22-2017
04:26 PM
Hello @Sarath Subramanian Thanks for your response. One other question, I just saw that you made a commit on ATLAS-1807 : Enhance DSL query to support like operator for wildcard Could you please show a DSL query example of your 'like' implementation? I'd like to use it. I did a build on May 26th and I must have your commit. Thanks Carlos
... View more
07-21-2017
04:58 PM
Hello @Sarath Subramanian Thank you for your info. One question, it seems that 'referredEntities' is not needed as long as those are embedded within the 'entity' attribute, correct? , Hello @Sarath Subramanian Thank you for your info. One more question, it seems that we don't need 'referredEntities' attribute in the request as long as those entities are already present within the 'entity' attribute, correct?
... View more
07-11-2017
05:46 PM
Hello I'm able to create a new entity for the type hive_table using V1 rest api. But I'm not that clear on how to do the same using V2 API, in particular when some attributes (columns) of hive_table are referencing other types (hive_column). Any help would be appreciated. Thanks Carlos , Hello I'm trying to use Atlas V2 rest apis to create an entity for the hive_table type. I'm able to do that via V1, but it's not clear to me on how to do this via V2, in particular when some attributes (columns) of hive_table are pointing to another type (hive_column). Any help would be appreciated Thanks! Carlos
... View more
Labels:
- Labels:
-
Apache Atlas