pingcap / pingcap/tidb

runtime error: index out of range [7] with length 4

Open
#44,747 5 comments 0 reactions 0 assignees View on GitHub
affects-7.1 affects-7.5 affects-8.1 affects-8.5 fuzz/sqlancer may-affects-5.1 may-affects-5.2 may-affects-5.3 may-affects-5.4 may-affects-6.1 may-affects-6.5 severity/major 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)

```sql
CREATE TABLE t0(c0 FLOAT);
INSERT INTO t0(c0) VALUES (1);
SELECT * FROM t0 GROUP BY t0.c0, (CASE ((t0.c0)>=(t0.c0)) WHEN SIN(t0.c0) THEN NULL ELSE t0.c0 END);
```

### 2. What did you expect to see? (Required)

### 3. What did you see instead (Required)

ERROR 1105 (HY000) at line 9: runtime error: index out of range [7] with length 4

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

| Release Version: v7.1.0
Edition: Community
Git Commit Hash: 635a4362235e8a3c0043542e629532e3c7bb2756
Git Branch: heads/refs/tags/v7.1.0
UTC Build Time: 2023-05-30 10:58:57
GoVersion: go1.20.3
Race Enabled: false
TiKV Min Version: 6.2.0-alpha
Check Table Before Drop: false
Store: unistore |

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.