[MDEV-25397] JSON_TABLE: Unexpected ER_MIX_OF_GROUP_FUNC_AND_FIELDS upon query with JOIN Created: 2021-04-12 Updated: 2021-04-21 Resolved: 2021-04-13 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | JSON, Optimizer |
| Affects Version/s: | N/A |
| Fix Version/s: | 10.6.0 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Elena Stepanova | Assignee: | Sergei Petrunia |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
Works on MySQL:
|
| Comments |
| Comment by Sergei Petrunia [ 2021-04-13 ] | |||||||||||||||||||
|
The error is produced here in JOIN::prepare:
select_lex->non_agg_field_used()= true, select_lex->agg_func_used()= true | |||||||||||||||||||
| Comment by Sergei Petrunia [ 2021-04-13 ] | |||||||||||||||||||
|
Ok a similar query which uses non-aggregated field outside JSON_TABLE doesn't fail because of this:
|