pingcap / tiflash

The analytical engine for TiDB and TiDB Cloud. Try free: https://tidbcloud.com/free-trial
https://docs.pingcap.com/tidb/stable/tiflash-overview
Apache License 2.0
944 stars 410 forks source link

Storages: Fix returned column types may not match in late-materialization (#9176) #9181

Closed ti-chi-bot closed 2 months ago

ti-chi-bot commented 3 months ago

This is an automated cherry-pick of #9176

What problem does this PR solve?

Issue Number: close #9175

Problem Summary: #9175

What is changed and how it works?

+------------------------+---------+--------------+---------------+--------------------------------------------------------------------+
| id                     | estRows | task         | access object | operator info                                                      |
+------------------------+---------+--------------+---------------+--------------------------------------------------------------------+
| TableReader_13         | 128.00  | root         |               | MppVersion: 2, data:ExchangeSender_12                              |
| └─ExchangeSender_12    | 128.00  | mpp[tiflash] |               | ExchangeType: PassThrough                                          |
|   └─Projection_5       | 128.00  | mpp[tiflash] |               | hour(test.t.a)->Column#4, test.t.i                                 |
|     └─TableFullScan_10 | 128.00  | mpp[tiflash] | table:t       | pushed down filter:eq(test.t.a, 24:11:11.123500), keep order:false |
+------------------------+---------+--------------+---------------+--------------------------------------------------------------------+

Check List

Tests

Side effects

Documentation

Release note

Fix the issue of column types that may not match in late-materialization.
JinheLin commented 2 months ago

/run-all-tests

ti-chi-bot[bot] commented 2 months ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JinheLin, Lloyd-Pottiger

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/pingcap/tiflash/blob/release-7.5/OWNERS)~~ [JinheLin,Lloyd-Pottiger] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
ti-chi-bot[bot] commented 2 months ago

[LGTM Timeline notifier]

Timeline:

JinheLin commented 2 months ago

/run-all-tests

JinheLin commented 2 months ago
[2024-07-09T08:02:16.126Z] rg1_cpu_time 2249
[2024-07-09T08:02:16.126Z] rg2_cpu_time 1826
[2024-07-09T08:02:16.126Z] rate 0.811916
[2024-07-09T08:02:16.126Z] /home/jenkins/agent/workspace/tiflash-build-common/tiflash/dbms/src/Flash/Pipeline/Schedule/TaskQueues/tests/gtest_resource_control_queue.cpp:483: Failure
[2024-07-09T08:02:16.126Z] Value of: rate > 1
[2024-07-09T08:02:16.126Z]   Actual: false
[2024-07-09T08:02:16.126Z] Expected: true
[2024-07-09T08:02:16.126Z] [  FAILED  ] TestResourceControlQueue.SmallRULargeCPUDynamicTokenBucket (5876 ms)
[2024-07-09T08:02:16.126Z] [----------] 1 test from TestResourceControlQueue (5876 ms total)
[2024-07-09T08:02:16.126Z] 
[2024-07-09T08:02:16.126Z] [----------] Global test environment tear-down
[2024-07-09T08:02:16.126Z] [==========] 1 test from 1 test case ran. (5877 ms total)
[2024-07-09T08:02:16.126Z] [  PASSED  ] 0 tests.
[2024-07-09T08:02:16.126Z] [  FAILED  ] 1 test, listed below:
[2024-07-09T08:02:16.126Z] [  FAILED  ] TestResourceControlQueue.SmallRULargeCPUDynamicTokenBucket
[2024-07-09T08:02:16.126Z] 
[2024-07-09T08:02:16.126Z]  1 FAILED TEST
JinheLin commented 2 months ago

/run-unit-test

JinheLin commented 2 months ago
[2024-07-09T10:13:07.575Z] /home/jenkins/agent/workspace/tiflash-build-common/tiflash/dbms/src/Storages/KVStore/tests/gtest_raftstore_v2.cpp:361: Failure
[2024-07-09T10:13:07.575Z] Expected equality of these values:
[2024-07-09T10:13:07.575Z]   res.stats.parallels
[2024-07-09T10:13:07.575Z]     Which is: 0
[2024-07-09T10:13:07.575Z]   4
[2024-07-09T10:13:07.575Z] [2024/07/09 18:13:06.285 +08:00] [ERROR] [Exception.cpp:96] ["std::exception. Code: 1001, type: testing::AssertionException, e.what() = /home/jenkins/agent/workspace/tiflash-build-common/tiflash/dbms/src/Storages/KVStore/tests/gtest_raftstore_v2.cpp:361: Failure\nExpected equality of these values:\n  res.stats.parallels\n    Which is: 0\n  4"] [source="virtual void DB::tests::RegionKVStoreTest_KVStoreSingleSnap4_Test::TestBody()"] [thread_id=1]
[2024-07-09T10:13:07.575Z] /home/jenkins/agent/workspace/tiflash-build-common/tiflash/dbms/src/Storages/KVStore/tests/gtest_raftstore_v2.cpp:374: Failure
[2024-07-09T10:13:07.575Z] Failed
[2024-07-09T10:13:07.575Z] [  FAILED  ] RegionKVStoreTest.KVStoreSingleSnap4 (75 ms)
[2024-07-09T10:13:07.575Z] [----------] 1 test from RegionKVStoreTest (75 ms total)
[2024-07-09T10:13:07.575Z] 
[2024-07-09T10:13:07.575Z] [----------] Global test environment tear-down
[2024-07-09T10:13:07.576Z] [==========] 1 test from 1 test case ran. (77 ms total)
[2024-07-09T10:13:07.576Z] [  PASSED  ] 0 tests.
[2024-07-09T10:13:07.576Z] [  FAILED  ] 1 test, listed below:
[2024-07-09T10:13:07.576Z] [  FAILED  ] RegionKVStoreTest.KVStoreSingleSnap4
[2024-07-09T10:13:07.576Z] 
[2024-07-09T10:13:07.576Z]  1 FAILED TEST
JinheLin commented 2 months ago

/run-unit-test