Incorrect query using jsonGroupArray order clause #145
Unanswered
thinkpractice
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi @thinkpractice, unfortunately Also this should not cause a crash in our tools. An invalid query should only cause a function to throw. Perhaps you are force |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I've been trying to use
structured-queries
to group a parent tableConversationThread
with a child tablePosts
.Post
has a foreign key pointing to theConversationThread
. This foreign key can benil
/NULL
. I'm using a@Selection
struct to group the posts into one conversation:I'm using a
jsonGroupArray
to get the separatePost
objects and group them into an array. The original query looked like this:This works. However, I want to order the posts by their time, hence:
This however results in the following incorrect query:
And this query crashes. Any idea what's going wrong? Do I call
order
clause ofjsonGroupArray
correctly? I've been trying to manually correct the query in a sqlite client, but no luck so far.Beta Was this translation helpful? Give feedback.
All reactions