[ 
https://issues.apache.org/jira/browse/ATLAS-4529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pinal Shah updated ATLAS-4529:
------------------------------
    Description: 
When below property is changed to 'false', order by doesn't work


{code:java}
atlas.dsl.executor.traversal=false{code}
{code:java}
curl -k -u : 
'http://<>/api/atlas/v2/search/dsl?limit=25&offset=0&query=orderby%20name%20desc&typeName=hdfs_path'
{"errorCode":"ATLAS-500-00-00A","errorMessage":"Gremlin script execution 
failed: g.V().has('__typeName', 'hdfs_path').order().by('Asset.__s_name', 
decr).dedup().limit(25).toList()","errorCause":"javax.script.ScriptException: 
groovy.lang.MissingPropertyException: No such property: decr for class: 
Script15"}
{code}
 

  was:
When below property is changed to 'false', order by doesn't work
atlas.dsl.executor.traversal=false
curl -k -u : 
'http://<>/api/atlas/v2/search/dsl?limit=25&offset=0&query=orderby%20name%20desc&typeName=hdfs_path'{"errorCode":"ATLAS-500-00-00A","errorMessage":"Gremlin
 script execution failed: g.V().has('__typeName', 
'hdfs_path').order().by('Asset.__s_name', 
decr).dedup().limit(25).toList()","errorCause":"javax.script.ScriptException: 
groovy.lang.MissingPropertyException: No such property: decr for class: 
Script15"}


> DSL Search : OrderBy does not work for ScriptEngineBasedExecutor (gremlin 
> groovy)
> ---------------------------------------------------------------------------------
>
>                 Key: ATLAS-4529
>                 URL: https://issues.apache.org/jira/browse/ATLAS-4529
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>            Reporter: Pinal Shah
>            Assignee: Pinal Shah
>            Priority: Major
>
> When below property is changed to 'false', order by doesn't work
> {code:java}
> atlas.dsl.executor.traversal=false{code}
> {code:java}
> curl -k -u : 
> 'http://<>/api/atlas/v2/search/dsl?limit=25&offset=0&query=orderby%20name%20desc&typeName=hdfs_path'
> {"errorCode":"ATLAS-500-00-00A","errorMessage":"Gremlin script execution 
> failed: g.V().has('__typeName', 'hdfs_path').order().by('Asset.__s_name', 
> decr).dedup().limit(25).toList()","errorCause":"javax.script.ScriptException: 
> groovy.lang.MissingPropertyException: No such property: decr for class: 
> Script15"}
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to