You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I couldn't create a sample as I don't know how to how to create an empty array of rows. But a query like below return a null map when the subquery return no rows. I expected it to return an empty map instead.
Also, couldn't we simplify the syntax by removing the explicit array() ?
Error message/log
No response
To Reproduce
select map_from_entries(array(select row(foo.id, foo.name) from foo wherefoo.id=unrelated.id))
Expected behavior
Return an empty map instead of null
How did you deploy RisingWave?
No response
The version of RisingWave
version | PostgreSQL 13.14.0-RisingWave-2.0.4 (2d75798)
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
I couldn't create a sample as I don't know how to how to create an empty array of rows. But a query like below return a
null
map when the subquery return no rows. I expected it to return an empty map instead.Also, couldn't we simplify the syntax by removing the explicit
array()
?Error message/log
No response
To Reproduce
Expected behavior
Return an empty map instead of null
How did you deploy RisingWave?
No response
The version of RisingWave
version | PostgreSQL 13.14.0-RisingWave-2.0.4 (2d75798)
Additional context
No response
The text was updated successfully, but these errors were encountered: