On Oct 20, 2021, at 7:21 AM, Adrian Williamson <adrian.williamson@rationalcommerce.com> wrote:You've (re)discovered issue II-5204 / 1083817. Your SQL is correct. Unfortunately, Star is assuming that user query constants always
...
In the star database:
register table gt
as link from grouptest1
with node = 'nodey', database = 'number2';\g
select date_trunc('month',dt) , count(*) from gt group by 1;\g
+-------------------------+-------------+
|col1 |col2 | +-------------------------+-------------+
|01-nov-2020 | 2|
|01-nov-2020 | 2|
|01-jul-2020 | 2|
|01-jul-2020 | 2|
|01-jan-2020 | 3|
|01-jan-2020 | 3|
|01-jan-2020 | 3| +-------------------------+-------------+
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 65 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 11:02:43 |
| Calls: | 862 |
| Files: | 1,311 |
| D/L today: |
3 files (7,546K bytes) |
| Messages: | 265,264 |