Skip to content

feat(optimizer)!: annotate json_objectagg for mysql - #8048

Merged
geooo109 merged 1 commit into
tobymao:mainfrom
PiyaDaswadkar:piya/annotate-function-jsonobjecttagg
Aug 6, 2026
Merged

feat(optimizer)!: annotate json_objectagg for mysql#8048
geooo109 merged 1 commit into
tobymao:mainfrom
PiyaDaswadkar:piya/annotate-function-jsonobjecttagg

Conversation

@PiyaDaswadkar

Copy link
Copy Markdown
Contributor

@PiyaDaswadkar PiyaDaswadkar changed the title feat(optimizer)!: annotate jsonobjecttag for mysql feat(optimizer)!: annotate json_objecttag for mysql Aug 5, 2026
@PiyaDaswadkar PiyaDaswadkar changed the title feat(optimizer)!: annotate json_objecttag for mysql feat(optimizer)!: annotate json_objectagg for mysql Aug 5, 2026
Comment thread sqlglot/typing/mysql.py
Comment on lines +162 to +167
**{
expr_type: {"returns": exp.DType.JSON}
for expr_type in {
exp.JSONObjectAgg,
}
},

@geooo109 geooo109 Aug 6, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could avoid**{ but there are other functions like JSON_OBJECT which also return JSON so I will merge as is.

@geooo109
geooo109 merged commit c0ee97f into tobymao:main Aug 6, 2026
12 checks passed
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 this pull request may close these issues.

2 participants