Table Summarizer Bug on PostgreSQL
So I have a table column defined as such:
I had asked yesterday how do to this price * quantity calculation but I was getting this error:
The query that is generated is
Clearly it's the last line
I haven't really looked at the source code for any of the Filament query stuff before it I changed the line to
The above code now works. I'm not saying the table alias needs to be 'test' but I just needed a name to try. I'm not really sure what the best practice (naming) for this would be but I might also cross post this as a GitHub issue.
Just wasn't sure if there was something else on the 'user' side (me, the dev) that I need to do to get this working? (since it also seems like a postgres quirk)
I had asked yesterday how do to this price * quantity calculation but I was getting this error:
SQLSTATE[42601]: Syntax error: 7 ERROR: zero-length delimited identifier at or near """"The query that is generated is
Clearly it's the last line
) AS "". I dug into the Summarizer.php file on line 108. $query = DB::table($query->toBase());I haven't really looked at the source code for any of the Filament query stuff before it I changed the line to
$query = DB::table($query->toBase(), 'test');The above code now works. I'm not saying the table alias needs to be 'test' but I just needed a name to try. I'm not really sure what the best practice (naming) for this would be but I might also cross post this as a GitHub issue.
Just wasn't sure if there was something else on the 'user' side (me, the dev) that I need to do to get this working? (since it also seems like a postgres quirk)
