Skip to content
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

.tojson() gives null as result #10264

Closed
adriancoca opened this issue Jul 2, 2024 · 2 comments
Closed

.tojson() gives null as result #10264

adriancoca opened this issue Jul 2, 2024 · 2 comments
Milestone

Comments

@adriancoca
Copy link

OrientDB Version: 3.2.22

Java Version: 1.8

OS: Linux Docker

Expected behavior

Should stringify node content

Actual behavior

array with null value [null]

Steps to reproduce

Example select

select routeDataNodes,routeDataNodes.tojson() as routeDataJSON
FROM ( select * from ( 
  select key,uuid as commandUuid,start_date,out("ON_ROUTE") as routeDataNodes  /*out("ON_ROUTE").tojson() as earlyjson   corect json calculated */
FROM task
WHERE  start_date >= '2024-02-05 00:00:00' and start_date <= '2024-07-02 23:59:59'
) where key="COMANDA" and commandUuid="16821cf6-4ed6-4ba3-9ceb-0654ad4f2277" )

order by start_date desc

image

@tglman
Copy link
Member

tglman commented Jul 15, 2024

Hi,

I fixed this in the last develop branches ( so also 3.2.x) and should be released with the 3.2.32 hotfix.

with the fix the two way of do toJson give the same result.

Regards

@tglman
Copy link
Member

tglman commented Jul 16, 2024

Hi,
3.2.32 has been released with the fix, feel free to check if it works ok also at your side

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants