Skip to content

unexpect invalid json text error when query with json_extract  #11883

@Deardrops

Description

@Deardrops

Description

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?
    If possible, provide a recipe for reproducing the error.
create table t1(f1 json);
insert into t1(f1) values ('"asd"'),('"asdf"'),('"asasas"');
select f1 from t1 where json_extract(f1,"$") in ("asd","asasas","asdf");
  1. What did you expect to see?

image

  1. What did you see instead?

image

  1. What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)?

image

SIG slack channel

#sig-exec

Score

  • 300

Mentor

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions