Skip to content

Even if the query panics, it should still be possible to perform a plan replayer dump. #64835

@hawkingrei

Description

@hawkingrei

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

for example. The bug #63862 need to dump plan replayer.

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

success to dump plan replayer

3. What did you see instead (Required)

TiDB root@127.0.0.1:test> plan replayer dump explain SELECT /*+ read_from_storage(tikv[t0,t1,t2,t3]) */ COUNT(t2.c0), COUNT(*) FROM v
                       -> 1 AS t0 INNER JOIN tb1 AS t1 ON (t0.data_status = t1.c0) INNER JOIN tb0 AS t2 ON (t1.id = t2.c2) RIGHT JOIN
                       ->  (SELECT /*+ read_from_storage(tikv[t0]) */ t0.c0 AS col_0 FROM tb1 AS t0) AS t3 ON (t2.c1 = t3.col_0) WHER
                       -> E t2.c2 GROUP BY t0.id, t0.c0, t0.c2, t0.data_status HAVING (COUNT(*) < 87);
(1105, 'interface conversion: expression.Expression is nil, not *expression.ScalarFunction')

4. What is your TiDB version? (Required)

f9d957a

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions