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

tiflash explain analyze actRows is zero unexpectly #50455

Open
guo-shaoge opened this issue Jan 16, 2024 · 1 comment
Open

tiflash explain analyze actRows is zero unexpectly #50455

guo-shaoge opened this issue Jan 16, 2024 · 1 comment
Labels

Comments

@guo-shaoge
Copy link
Collaborator

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

  1. load tpch50 dataset(may be other smaller dataset is also ok)
  2. run sql:
set @@tidb_isolation_read_engines = 'tiflash';
explain analyze select * from lineitem inner join orders on lineitem.l_orderkey = orders.o_orderkey limit 1000;

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

actRow is not zero

3. What did you see instead (Required)

actRows of tiflash executor is zero.

image

4. What is your TiDB version? (Required)

MySQL [test]> select tidb_version();
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| tidb_version()                                                                                                                                                                                                                                                     |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Release Version: v7.6.0-alpha-602-gfbe232e3f8
Edition: Community
Git Commit Hash: fbe232e3f85d1c173ad15fe2401c09af4b1424de
Git Branch: HEAD
UTC Build Time: 2024-01-16 05:14:57
GoVersion: go1.21.0
Race Enabled: false
Check Table Before Drop: false
Store: tikv |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.044 sec)
@guo-shaoge
Copy link
Collaborator Author

looks like coord doesn't handle Limit that in tidb. check https://github.com/pingcap/tidb/blob/master/pkg/executor/internal/mpp/local_mpp_coordinator.go#L336

Only happens when limit doesn't push down to tiflash

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

No branches or pull requests

2 participants