Skip to content

[Bug]: Getting error if using json_extract in a MySQL query: Cannot invoke "Object.getClass()" because "columnValue" is null #27645

Closed
@patrioticcow

Description

Is there an existing issue for this?

  • I have searched the existing issues

Description

Getting error if using json_extract in a MySQL query, or just querying a field that is of json type.

SELECT
	id,
	createdAt as date,
	json_extract(details, '$.editor') AS editor
FROM
	`User`
ORDER BY
	id DESC
LIMIT 10

Steps To Reproduce

  1. Run a MuSQL query on a table that has a json type field

Workaround

#27645 (comment)

Public Sample App

No response

Environment

Production

Issue video log

No response

Version

self host, V1.9.37.1

Metadata

Assignees

Labels

BugSomething isn't workingCommunity Reportedissues reported by community membersHighThis issue blocks a user from building or impacts a lot of usersIntegrations ProductIssues related to a specific integrationMySQLIssues related to MySQL pluginNeeds TriagingNeeds attention from maintainers to triageQANeeds QA attentionQuery & JS PodIssues related to the query & JS Pod

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions