sql-gremlin icon indicating copy to clipboard operation
sql-gremlin copied to clipboard

java.lang.IllegalStateException: The property does not exist as it has no key, value, or associated element

Open zhou5791759 opened this issue 9 years ago • 3 comments

Caused by: java.lang.IllegalStateException: The property does not exist as it has no key, value, or associated element at org.apache.tinkerpop.gremlin.structure.Property$Exceptions.propertyDoesNotExist(Property.java:151) at org.apache.tinkerpop.gremlin.structure.util.empty.EmptyVertexProperty.value(EmptyVertexProperty.java:74) at org.twilmes.sql.gremlin.processor.SingleQueryExecutor.run(SingleQueryExecutor.java:92) at org.twilmes.sql.gremlin.processor.GremlinCompiler.execute(GremlinCompiler.java:119) at org.twilmes.sql.gremlin.plugin.SqlRemoteAcceptor.submit(SqlRemoteAcceptor.java:94)

SingleQueryExecutor

/* vertex does not contain attributes that are abnormal. } else if (!(res.property(propName) instanceof EmptyProperty) */

} else if (res.properties(propName).hasNext()) {

zhou5791759 avatar Sep 22 '16 08:09 zhou5791759

Thanks for reporting Zhou. Can you provide your schema file and the SQL query you ran? Or if not the whole file, at least the portions that are relevant to the query?

twilmes avatar Sep 22 '16 13:09 twilmes

--schema.json --(pwd:/home/hadoop/conf/schema.json)

{ "tables": [ { "name": "human", "columns": [ {"name": "name", "type": "string"}, {"name": "gender", "type": "string"} ] } ], "relationships": [] }

--execute script:

graph = TitanFactory.open('conf/hbase.properties')

g = graph.traversal()

configFn = "/home/hadoop/conf/schema.json"

:remote connect sql.gremlin graph configFn

:> select * from human

--exception: Caused by: java.lang.IllegalStateException: The property does not exist as it has no key, value, or associated element at org.apache.tinkerpop.gremlin.structure.Property$Exceptions.propertyDoesNotExist(Property.java:151) at org.apache.tinkerpop.gremlin.structure.util.empty.EmptyVertexProperty.value(EmptyVertexProperty.java:74) at org.twilmes.sql.gremlin.processor.SingleQueryExecutor.run(SingleQueryExecutor.java:92) at org.twilmes.sql.gremlin.processor.GremlinCompiler.execute(GremlinCompiler.java:119) at org.twilmes.sql.gremlin.plugin.SqlRemoteAcceptor.submit(SqlRemoteAcceptor.java:94)

zhou5791759 avatar Sep 22 '16 15:09 zhou5791759

The above update is my input !!

zhou5791759 avatar Sep 26 '16 01:09 zhou5791759