pingcap / pingcap/tidb

ERROR 1105 (HY000): other error for mpp stream: Code: 44, e.displayText() = DB::Exception

Open
#58,543 6 comments 0 reactions 1 assignee Claimed by @yibin87 View on GitHub
affects-8.5 may-affects-5.4 may-affects-6.1 may-affects-6.5 may-affects-7.1 may-affects-7.5 may-affects-8.1 severity/moderate sig/execution type/bug
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Bug Report

Please answer these questions before submitting your issue. Thanks!

### 1. Minimal reproduce step (Required)

```
set tidb_cost_model_version=1;
set tidb_enforce_mpp=1;
SET @json='{
"A": [0,
[1, 2, 3],
[4, 5, 6],
"seven",
0.8,
true,
false,
"eleven",
[12, [13, 14], {"key1":"value1"},[15]],
true],
"B": {"C": 1},
"D": 2
}';
create table t2 (j json);
insert into t2 values (@json);
alter table t2 set tiflash replica 1;
SELECT JSON_EXTRACT(@json, '$.A[-8][1]') from t2;
```

### 2. What did you expect to see? (Required)
Error 3143: Invalid JSON path expression. The error is around character position 4.

### 3. What did you see instead (Required)
Error 1105: other error for mpp stream: Code: 44, e.displayText() = DB::Exception: Illegal json path expression `$.A[-8][1]` of function json_extract, e.what() = DB::Exception,

[INFO] [conn.go:1184] ["command dispatched failed"] [conn=3061842034] [session_alias=] [connInfo="id:3061842034, addr:10.200.101.159:36828 status:11, collation:utf8mb4_general_ci, user:root"] [command=Query] [status="inTxn:1, autocommit:1"] [sql="SELECT JSON_EXTRACT(@json, '$.A[-8][1]') from t2;"] [txn_mode=PESSIMISTIC] [timestamp=454865995448451079] [err="other error for mpp stream: Code: 44, e.displayText() = DB::Exception: Illegal json path expression `$.A[-8][1]` of function json_extract, e.what() = DB::Exception,\ngithub.com/pingcap/tidb/pkg/executor/internal/mpp.(*localMppCoordinator).handleMPPStreamResponse\n\t/workspace/source/tidb/pkg/executor/internal/mpp/local_mpp_coordinator.go:694\ngithub.com/pingcap/tidb/pkg/executor/internal/mpp.(*localMppCoordinator).receiveResults\n\t/workspace/source/tidb/pkg/executor/internal/mpp/local_mpp_coordinator.go:565\ngithub.com/pingcap/tidb/pkg/executor/internal/mpp.(*localMppCoordinator).handleDispatchReq\n\t/workspace/source/tidb/pkg/executor/internal/mpp/local_mpp_coordinator.go:518\ngithub.com/pingcap/tidb/pkg/executor/internal/mpp.(*localMppCoordinator).dispatchAll.func2\n\t/workspace/source/tidb/pkg/executor/internal/mpp/local_mpp_coordinator.go:423\nruntime.goexit\n\t/root/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.23.4.linux-amd64/src/runtime/asm_amd64.s:1700"

### 4. What is your TiDB version? (Required)

Release Version: v8.5.0-alpha-442-g9958228a65
Edition: Community
Git Commit Hash: 9958228a65034b4e9e77cfab9754b45477b9b104
Git Branch: HEAD
UTC Build Time: 2024-12-25 16:39:47
GoVersion: go1.23.4
Race Enabled: false
Check Table Before Drop: false
Store: tikv

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.