-
-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can i have whole record as a json in select query and having condition on referenced table as well? #1629
Comments
Hi,
I haven't tested this, but it should apply the |
this can work, however is there any way to have conditions on where clause for example |
To be able to help with the filter you need to provide the error and stacktrace. |
I am not getting any errors, receiving simply null records. The reason query is not able to filter because of hasLocation is a list and hasLocation.is_default will not get any value for filter. So I wanted to know about any other way for filtering linked records |
also it will be helpful to get preferred properties in hasLocation.transform('asRecord') instead of all including @Rid, type etc |
You can flatten the list in a sub query and then apply the filters you like: SELECT FROM (
SELECT expand( hasLocation ) FROM Users
) WHERE is_default = true |
ArcadeDB Version:
24.1.1
OS and JDK Version:
Linux 6.5.0-1014-gcp - OpenJDK 64-Bit Server VM 11.0.22 (Temurin-11.0.22+7)
Expected behavior
To have all the properties of linked record in JSON format and to filter multiple linked records with where clause on one property of linked bucket.
Actual behavior
When we try to filter linked records with dot operator from LIST property, it simply doesn’t work without giving any error.
SQL query to produce with schema
query : select hasLocations.city from Users
*which gives all the cities associated with the linked location record. but I want to fetch all properties of Locations and I can not find any method for that.
query: select hasLoctions.city from Users where hasLocation.is_default = true.
Steps to reproduce
The text was updated successfully, but these errors were encountered: