Unable to get property values based on the alias column names from java code #10397
Unanswered
arpitdd123
asked this question in
General
Replies: 1 comment
-
HI, This seems like a regression, and is seems related to the I will investigate a bit more, but I'm not 100% sure I can correct this for now, it may cause a regression on the case where I want the original record from the toElement |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am facing an issue while getting data for a query based on alias, when executed from java code.
Query which I am trying to execute is
"SELECT EmbdListOfString AS COL0,EmbdListOfDouble AS COL1,@class AS COL2,IntTest AS COL3,EmbdMapOfBoolean AS COL4,EmbdSetOfInt AS COL5,StringTest AS COL6,EmbdSetOfBoolean AS COL7,DateTime AS COL8,BooleanTest AS COL9,@rid,EmbdSetOfString AS COL11,EmbdListOfInt AS COL12,DateTest AS COL13,EmbdSetOfDouble AS COL14,FloatTest AS COL15,EmbdMapOfDouble AS COL16,@version AS COL17,EmbdMapOfString AS COL18,EmbdMapOfInt AS COL19,EmbdListOfBoolean AS COL20,
NameAS COL21,DoubleTest AS COL22 FROM JUNIT_VERTEX WHERE StringTest = 'StringTest'"
API used for execution of query:
OResultSet ors = oDatabaseDocument.command(query);
API for getting attributes based on alias:
When I execute this code of database created on Orientdb version 3.2.37, null values are getting returned for "COL1" and "COL2". This is getting observed above orientdb version 3.2.33.
This issue looks like mostly when query has attribute without alias, like in above query "@Rid". but same query works from Orientdb studio but not through java code.
Is this a issue, as query works from studio UI and not though java code.
Beta Was this translation helpful? Give feedback.
All reactions