Skip to content

[Bug]: wrong result with '->' #23935

@Ariznawlll

Description

@Ariznawlll

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

main

Commit ID

413bff6

Other Environment Information

- Hardware parameters:
- OS type:
- Others:

Actual Behavior

drop table if exists jt_diff;
create table jt_diff(id int primary key, doc json);

insert into jt_diff values (1, '{"status": "active", "score": 90}');
insert into jt_diff values (2, '{"status": "inactive", "score": 60}');
insert into jt_diff values (3, '{"status": "active", "score": 85}');

select id from jt_diff where doc -> '$.status' = '"active"' order by id;

Image

Expected Behavior

No response

Steps to Reproduce

as above

Additional information

No response

Metadata

Metadata

Assignees

Labels

kind/bugSomething isn't workingseverity/s0Extreme impact: Cause the application to break down and seriously affect the use

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions