Open kabilar opened 3 years ago
@ttngu207
The fix for this is likely the same as #916
@kabilar as it turns out this is a MariaDB specific error. MariaDB's implementation of the sql mode ONLY_FULL_GROUP_BY is incorrect when it comes to select
on fields that are functionally dependent, it wants those functionally dependent fields to also be in the group by which is unnecessary from a database perspective. MySQL does not do that with the ONLY_FULL_GROUP_BY mode enabled which is correct. The next step would be to confirm if this error persists in the current version of MariaDB.
It seems the MariaDB devs have known about this for a while but has not fixed it yet, https://jira.mariadb.org/browse/MDEV-11588
Bug Report
Description
When using the
...
argument intable1.aggr(table2, ...)
to retain all attributes fromtable1
the following error occurs:OperationalError: (1055, "'neuro_scan.scan.scanner' isn't in GROUP BY")
Reproducibility
Expected Behavior
From my understanding, the
...
argument used intable1.aggr(table2, ...)
should retain all attributes fromtable1
.Thank you!