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
941 stars 410 forks source link

Fix Microbenchmark Test #5180

Open hongyunyan opened 2 years ago

hongyunyan commented 2 years ago

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

make bench_dbms and then run bench_dbms.

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

bench_dbms run successfully.

3. What did you see instead (Required)

image

Code: 0. DB::Exception: Unsupported function tidbRowbasedGreatest

Stack trace:

 0x1097b3360    StackTrace::StackTrace() [bench_dbms+4372067168]
 0x1096a7e30    DB::reverseGetFuncSigByFuncName(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) [bench_dbms+4370972208]
 0x1060f03d0    DB::tests::columnsToTiPBExpr(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<unsigned long, std::__1::allocator<unsigned long> > const&, std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocator<DB::ColumnWithTypeAndName> > const&, TiDB::ITiDBCollator const* const&) [bench_dbms+4314645456]
 0x1060f5424    DB::tests::buildFunction(DB::Context&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<unsigned long, std::__1::allocator<unsigned long> > const&, std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocator<DB::ColumnWithTypeAndName> > const&, TiDB::ITiDBCollator const* const&) [bench_dbms+4314666020]
 0x1060f61a8    DB::tests::executeFunction(DB::Context&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<unsigned long, std::__1::allocator<unsigned long> > const&, std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocator<DB::ColumnWithTypeAndName> > const&, TiDB::ITiDBCollator const* const&, bool) [bench_dbms+4314669480]
 0x1060f5f10    DB::tests::executeFunction(DB::Context&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocator<DB::ColumnWithTypeAndName> > const&, TiDB::ITiDBCollator const* const&, bool) [bench_dbms+4314668816]
 0x104eb7490    DB::ColumnWithTypeAndName DB::tests::executeFunction<DB::ColumnWithTypeAndName, DB::ColumnWithTypeAndName>(DB::Context&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, DB::ColumnWithTypeAndName const&, DB::ColumnWithTypeAndName const&, DB::ColumnWithTypeAndName const&) [bench_dbms+4295537808]
 0x104eb868c    DB::tests::LeastBench_benchNormal_Benchmark::BenchmarkCase(benchmark::State&) [bench_dbms+4295542412]
 0x104e32340    benchmark::Fixture::Run(benchmark::State&) [bench_dbms+4294992704]
 0x1061101cc    benchmark::internal::BenchmarkInstance::Run(unsigned long long, int, benchmark::internal::ThreadTimer*, benchmark::internal::ThreadManager*, benchmark::internal::PerfCountersMeasurement*) const [bench_dbms+4314776012]
 0x1061204cc    benchmark::internal::(anonymous namespace)::RunInThread(benchmark::internal::BenchmarkInstance const*, unsigned long long, int, benchmark::internal::ThreadManager*, benchmark::internal::PerfCountersMeasurement*) [bench_dbms+4314842316]
 0x10612000c    benchmark::internal::BenchmarkRunner::DoNIterations() [bench_dbms+4314841100]
 0x1061209ec    benchmark::internal::BenchmarkRunner::DoOneRepetition() [bench_dbms+4314843628]
 0x10610c6cc    benchmark::RunSpecifiedBenchmarks(benchmark::BenchmarkReporter*, benchmark::BenchmarkReporter*) [bench_dbms+4314760908]
 0x10511c3ac    _main [bench_dbms+4298048428]
 0x10f4890f4    <unknown symbol>

libc++abi: terminating with uncaught exception of type DB::Exception: DB::Exception

4. What is your TiFlash version? (Required)

v6.1.0

hongyunyan commented 2 years ago

/assign @ywqzzy