Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
apollodafoni opened this issue Dec 26, 2024 · 1 comment

Comments

@apollodafoni
Copy link

apollodafoni commented Dec 26, 2024

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/[email protected]/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: 9958228
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

@apollodafoni apollodafoni added the type/bug The issue is confirmed as a bug. label Dec 26, 2024
@apollodafoni
Copy link
Author

/severity major
/assign @yibin87

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants