Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: 1105 - other error: invalid data type: invalid range,range.start should be smaller than

[TiDB Usage Environment] Production Environment / Testing
[TiDB Version] tidb v6.5
[Reproduction Path] SQL Query
SELECT
MAX(d_time) AS d_time,
MAX(CASE WHEN c_time > '2011-01-01 00:00:00' THEN c_time ELSE NULL END) AS c_time,
MAX(CASE WHEN b_time > '2011-01-01 00:00:00' THEN b_time ELSE NULL END) AS b_time,
MAX(CASE WHEN a_time > '2011-01-01 00:00:00' THEN a_time ELSE NULL END) AS a_time
FROM
tab_a AS t
JOIN tab_b AS o ON t._code = o.code
AND o.p_code = '99999990'
AND o.valid = 10
AND o.s_code = 20
WHERE
t.e_time >= '2023-03-22 16:57:03.0'
AND t.e_time <= '2023-03-22 16:57:03.0'
[Encountered Problem: Problem Phenomenon and Impact]
1105 - other error: invalid data type: invalid range, range.start should be smaller than range.end, but got [[116, 128, 0, 0, 0, 0, 0, 20, 125, 95, 105, 128, 0, 0, 0, 0, 0, 0, 21, 1, 55, 53, 53, 55, 48, 48, 52, 55, 255, 57, 0, 0, 0, 0, 0, 0, 0, 248, 4, 25, 175, 173, 14, 67, 0, 0, 0], [116, 128, 0, 0, 0, 0, 0, 20, 125, 95, 105, 128, 0, 0, 0, 0, 0, 0, 21, 1, 55, 53, 53, 55, 48, 48, 52, 55, 255, 57, 0, 0, 0, 0, 0, 0, 0, 248, 4, 25, 175, 172, 142, 67, 0, 0, 1]]
Time: 0.147s
[Resource Configuration]
[Attachments: Screenshots/Logs/Monitoring]