Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug: Group-by for belongs-to field throws error #7144

Closed
1 task done
dstala opened this issue Dec 4, 2023 · 0 comments 路 Fixed by #7146
Closed
1 task done

馃悰 Bug: Group-by for belongs-to field throws error #7144

dstala opened this issue Dec 4, 2023 · 0 comments 路 Fixed by #7146
Assignees

Comments

@dstala
Copy link
Member

dstala commented Dec 4, 2023

Please confirm if bug report does NOT exists already ?

  • I confirm there is no existing issue for this

Steps to reproduce ?

  • Country hm City
  • On city table, group-by over belongs to column
  • Try to remove group by, system crashes
[Nest] 88331  - 12/04/2023, 11:23:48鈥疉M   ERROR [GlobalExceptionFilter] Cannot read properties of null (reading 'title')
TypeError: Cannot read properties of null (reading 'title')
    at /Users/rajuudava/NocoDB/nocodb/packages/nocodb/src/db/BaseModelSqlv2.ts:4464:28
    at async BaseModelSqlv2.substituteColumnIdsWithColumnTitles (/Users/rajuudava/NocoDB/nocodb/packages/nocodb/src/db/BaseModelSqlv2.ts:4475:25)
    at async BaseModelSqlv2.execAndParse (/Users/rajuudava/NocoDB/nocodb/packages/nocodb/src/db/BaseModelSqlv2.ts:4428:14)
    at async BaseModelSqlv2.groupBy (/Users/rajuudava/NocoDB/nocodb/packages/nocodb/src/db/BaseModelSqlv2.ts:721:12)
    at async DatasService.getDataGroupBy (/Users/rajuudava/NocoDB/nocodb/packages/nocodb/src/services/datas.service.ts:246:18)
    at async DatasService.dataGroupBy (/Users/rajuudava/NocoDB/nocodb/packages/nocodb/src/services/datas.service.ts:41:12)
    at async DataAliasController.dataGroupBy (/Users/rajuudava/NocoDB/nocodb/packages/nocodb/src/controllers/data-alias.controller.ts:90:12)
TypeError: Cannot read properties of null (reading 'title')
    at /Users/rajuudava/NocoDB/nocodb/packages/nocodb/src/db/BaseModelSqlv2.ts:4464:28
[nodemon] app crashed - waiting for file changes before starting...

Desired Behavior

If we do not support groupby over belongs to, let us not show that info in group by modal

Project Details

Node: v18.14.0
Arch: arm64
Platform: darwin
Docker: false
RootDB: sqlite3
PackageVersion: 0.202.9

Attachments

No response

@dstala dstala added this to the v0.203.0 milestone Dec 4, 2023
@dstala dstala removed this from the vFeature milestone Dec 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants