Commit Graph

7241 Commits

Author SHA1 Message Date
lyw b05e7ded50
[Feature](function) support sec_to_time (#62797) 2025-10-11 17:28:48 +08:00
Murphy 731ff88162
[Enhancement] add metric for page_cache (#63905)
Signed-off-by: Murphy <mofei@starrocks.com>
2025-10-11 08:45:57 +00:00
eyes_on_me 21207415d4
[BugFix] fix asan error from PartitionedSpillerWriter::_remove_partition (#63903)
Signed-off-by: silverbullet233 <3675229+silverbullet233@users.noreply.github.com>
2025-10-11 15:20:35 +08:00
Drake Wang 1378c139ae
[BugFix] Fix fail to get splits from morsel queue introduces crash of be (#62753)
Signed-off-by: sunny.xl <wxl24life@gmail.com>
2025-10-11 14:27:34 +08:00
satanson 78945fde78
[Enhancement] lead/lag/first_value/last_value support array type (#63547)
Signed-off-by: satanson <ranpanf@gmail.com>
2025-10-11 10:05:20 +08:00
Evgeniy Shishkin e7ea42635d
[BugFix] Fix IN runtime filter to respect FE session variable (#63081) 2025-10-10 16:41:01 +08:00
meegoo 4a3092a306
[BugFix] Fix multi statements transaction fail due to mix file bundle write (#63823)
Signed-off-by: meegoo <meegoo.sr@gmail.com>
2025-10-10 11:36:11 +08:00
eyes_on_me 6461e22e0d
[BugFix] fix partitioned spill crash when removing partition (#63825)
Signed-off-by: silverbullet233 <3675229+silverbullet233@users.noreply.github.com>
2025-10-10 10:11:18 +08:00
kangkaisen bd3b311d7b
[Tool] Support compilation on Mac 8: be code 2 (#63822) 2025-10-09 16:36:20 +08:00
Yixin Luo 53eb82341c
[Enhancement] enable pk parallel execution by default (#63821)
Signed-off-by: luohaha <18810541851@163.com>
2025-10-09 08:06:29 +00:00
kangkaisen 05a903eecc
[Tool] Support compilation on Mac 7: be code 1 (#63815) 2025-10-09 10:28:57 +08:00
Yixin Luo 4918a1fadc
[Enhancement] Primary key consistency test supports PK parallel execution (#63698)
Signed-off-by: luohaha <18810541851@163.com>
2025-10-09 10:22:07 +08:00
Gavin 1dbf05f5dd
[Enhancement] Write iceberg tables without accumulating chunks when memory is sufficient to improve the sink performance for small number of partitions. (#63802)
Signed-off-by: GavinMar <yangguansuo@starrocks.com>
2025-10-08 14:42:22 +08:00
yan zhang ece0f0d560
[Enhancement] to avoid memory stats inaccurate case (#63788)
Signed-off-by: yan zhang <dirtysalt1987@gmail.com>
2025-10-08 10:46:42 +08:00
trueeyu a41a7772b4
[Refactor] Remove poco_connection_pool_mem_tracker (#63801)
Signed-off-by: trueeyu <lxhhust350@qq.com>
2025-10-07 15:11:30 +08:00
trueeyu 60c23fcd2d
[BugFix] Fix the bug where updating the memory quota of the data cache does not task effect (#63787) 2025-10-06 21:17:01 +08:00
Gavin 3b454d6ec9
[BugFix] Fix the crash issue caused by using an unintialized column evaluator in iceberg partition writer. (#63782)
Signed-off-by: GavinMar <yangguansuo@starrocks.com>
2025-10-06 11:15:06 +08:00
trueeyu 647ed56800
[Refactor] Remove unused be conf: datacache_engine and datacache_tiered_cache_enable (#63775)
Signed-off-by: trueeyu <lxhhust350@qq.com>
2025-10-04 11:00:38 +08:00
stdpain 371134cd5e
[BugFix] Fixed potential deadlock during initialization of ExceptionStackContext (#63776)
Signed-off-by: stdpain <drfeng08@gmail.com>
2025-10-03 16:35:49 +08:00
trueeyu 6dd2c4e555
[BugFix] Fix the bug where datacache_evict_probability does not take effect in DataCacheMem (#63770)
Signed-off-by: trueeyu <lxhhust350@qq.com>
2025-10-03 10:04:14 +08:00
trueeyu 35e984856e
[Refactor] Remove some names related to ObjectCache (#63768)
Signed-off-by: trueeyu <lxhhust350@qq.com>
2025-10-02 18:05:04 +08:00
trueeyu d23e5cee79
[Refactor] refactors the cache module by reorganizing cache-related files (#63759)
Signed-off-by: trueeyu <lxhhust350@qq.com>
2025-10-01 19:05:00 +08:00
trueeyu 0094eeaa6d
[BugFix] Fix the crash caused by out-of-order instruction execution in the ARM environment (#63294)
Signed-off-by: trueeyu <lxhhust350@qq.com>
2025-10-01 05:52:45 +00:00
trueeyu df0faf1b26
[Refactor] Split the LocalCacheEngine interface into LocalMemCacheEngine and LocalDiskCacheEngine (#63734)
Signed-off-by: trueeyu <lxhhust350@qq.com>
2025-10-01 09:19:12 +08:00
IHEII b80cda36ec
[BugFix] lz4 encode/decode (#63629)
Signed-off-by: jervisli <jervisli@tencent.com>
2025-09-29 19:12:14 +08:00
Murphy e34639c27f
[BugFix] fix zonemap metrics in analyze profile (#63654)
Signed-off-by: Murphy <mofei@starrocks.com>
2025-09-29 11:10:05 +08:00
zihe.liu 4c248a560b
[BugFix] Fix cast from LARGEINT to DECIMAL128 (#63559)
Signed-off-by: zihe.liu <ziheliu1024@gmail.com>
2025-09-29 10:36:35 +08:00
eyes_on_me d597f92555
[BugFix] fix clang-tidy errors on arm (#63447)
Signed-off-by: silverbullet233 <3675229+silverbullet233@users.noreply.github.com>
2025-09-29 09:54:08 +08:00
Yixin Luo d4032438df
[Enhancement] Improved the logic for determining when to enable PK parallel execution (#63651)
Signed-off-by: luohaha <18810541851@163.com>
2025-09-28 19:13:06 +08:00
zhanghe 9ea262a3fc
[BugFix]Fixed the behavior of the regexp_extract_all function when pos equals null and added support for pos equal to 0. (#63626)
Signed-off-by: edwinhzhang <edwinhzhang@tencent.com>
2025-09-28 15:39:03 +08:00
Murphy cd4aaee776
[BugFix] fix exception-safety of json extraction (#63575) 2025-09-28 10:15:41 +08:00
Gavin a9ed6d35e4
[BugFix] Fix the thread safety issue caused by concurrent initialization of column evaluator by multiple iceberg partition writers. (#63598)
Why I'm doing:
Now we initialize the column evaluator in the partition writer, which cause the same evaluator instance may be modified by different threads.

What I'm doing:
Remove the unnecessary evaluator initialization in the iceberg partition writer because it has been initialized in partition chunk writer factory.

Also, we check the file writer and create it if needed before writing file data, because it may has been reset by the previous commit operation.

Fixes #issue

Signed-off-by: GavinMar <yangguansuo@starrocks.com>
2025-09-27 11:36:35 +08:00
Yixin Luo ee93eaef39
[Enhancement] Improve delvec file cleanup logic to properly handle pk index references (#63384)
Signed-off-by: luohaha <18810541851@163.com>
2025-09-26 12:13:16 +00:00
zhangqiang ea9de53c3b
[BugFix] Fix shutdown tablet can not gc (#63595)
Signed-off-by: sevev <qiangzh95@gmail.com>
2025-09-26 16:50:36 +08:00
Yixin Luo 50bb386d2c
[Enhancement] add more print info when PersistentIndexMemtable meet duplicate key (#63560)
Signed-off-by: luohaha <18810541851@163.com>
2025-09-26 15:53:32 +08:00
Yixin Luo da99a8093e
[BugFix] fix dcheck failure when compaction publish (#63562)
Signed-off-by: luohaha <18810541851@163.com>
2025-09-26 07:44:47 +00:00
Murphy aab55d74fa
[Enhancement] Split sumcount and distinct registration files (#63521)
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-09-26 13:45:33 +08:00
Murphy 28062f336c
[BugFix] change CHECK to DCHECK in nullablecolumn to prevent the crash (#63553)
Signed-off-by: Murphy <mofei@starrocks.com>
2025-09-25 18:47:16 +08:00
PengFei Li dfa190b48f
[UT] Fix memory leak in test LocalTabletsChannelTest::test_add_chunk_not_exist_tablet (#63218)
## Why I'm doing
- ASAN reported a memory leak in BE unit test `LocalTabletsChannelTest::test_add_chunk_not_exist_tablet`
  - Direct leak from `SecondaryReplicasWaiter::_send_replica_status_request()` allocating `ReusableClosure<PLoadReplicaStatusResult>`
```
=================================================================
==752488==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 792 byte(s) in 1 object(s) allocated from:
    #0 0x1a830f48 in operator new(unsigned long) (/root/celerdata/be/ut_build_ASAN/test/starrocks_test+0x1a830f48)
    #1 0x30153219 in starrocks::SecondaryReplicasWaiter::_send_replica_status_request(int) /root/celerdata/be/src/runtime/local_tablets_channel.cpp:1342
    #2 0x30152d52 in starrocks::SecondaryReplicasWaiter::_try_check_replica_status_on_primary(int) /root/celerdata/be/src/runtime/local_tablets_channel.cpp:1327
    #3 0x301520e3 in starrocks::SecondaryReplicasWaiter::wait() /root/celerdata/be/src/runtime/local_tablets_channel.cpp:1285
    #4 0x3013603a in starrocks::LocalTabletsChannel::add_chunk(starrocks::Chunk*, starrocks::PTabletWriterAddChunkRequest const&, starrocks::PTabletWriterAddBatchResult*, bool*) /root/celerdata/be/src/runtime/local_tablets_channel.cpp:380
    #5 0x1eefff41 in starrocks::LocalTabletsChannelTest_test_add_chunk_not_exist_tablet_Test::TestBody() /root/celerdata/be/test/runtime/local_tablets_channel_test.cpp:255
    #6 0x37d95703 in void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) googletest-release-1.10.0/googletest/src/gtest.cc:2433
    #7 0x37d95703 in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) googletest-release-1.10.0/googletest/src/gtest.cc:2469
    #8 0x37d8856d in testing::Test::Run() googletest-release-1.10.0/googletest/src/gtest.cc:2508
    #9 0x37d8856d in testing::Test::Run() googletest-release-1.10.0/googletest/src/gtest.cc:2498
    #10 0x37d886cd in testing::TestInfo::Run() googletest-release-1.10.0/googletest/src/gtest.cc:2684
    #11 0x37d886cd in testing::TestInfo::Run() googletest-release-1.10.0/googletest/src/gtest.cc:2657
    #12 0x37d887b6 in testing::TestSuite::Run() googletest-release-1.10.0/googletest/src/gtest.cc:2816
    #13 0x37d887b6 in testing::TestSuite::Run() googletest-release-1.10.0/googletest/src/gtest.cc:2795
    #14 0x37d88d13 in testing::internal::UnitTestImpl::RunAllTests() googletest-release-1.10.0/googletest/src/gtest.cc:5338
    #15 0x37d88f23 in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) googletest-release-1.10.0/googletest/src/gtest.cc:2433
    #16 0x37d88f23 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) googletest-release-1.10.0/googletest/src/gtest.cc:2469
    #17 0x37d88f23 in testing::UnitTest::Run() googletest-release-1.10.0/googletest/src/gtest.cc:4925
    #18 0x1a893ea2 in RUN_ALL_TESTS() /var/local/thirdparty/installed/include/gtest/gtest.h:2473
    #19 0x1a87d8a4 in starrocks::init_test_env(int, char**) /root/celerdata/be/src/testutil/init_test_env.h:115
    #20 0x1a87e332 in main /root/celerdata/be/test/test_main.cpp:18
    #21 0x7f5813e29d8f  (/lib/x86_64-linux-gnu/libc.so.6+0x29d8f)

```
  
- Root cause:
  - The send path does `closure->ref()` twice (one for “self-hold”, one for “RPC-hold”).
  - The test does not register a sync-point callback for `LocalTabletsChannel::rpc::get_load_replica_status` to simulate the RPC, so no one calls `closure->Run()`, and the “RPC-hold” ref is never released.
  - The waiter’s release path only dropped one ref, leaving one outstanding reference and causing the leak.

## What I'm doing
- Introduce and use a sync-point primitive `TEST_SYNC_POINT_CALLBACK_OR_DEFAULT` with a default action, so tests without a registered callback still release the “RPC-hold” reference.
- At `LocalTabletsChannel::rpc::get_load_replica_status`, switch to a callback-with-default that calls `closure->Run()` when no test callback is installed. This balances the double `ref()` even in no-callback tests, while keeping production behavior unchanged.


Signed-off-by: PengFei Li <lpengfei2016@gmail.com>
Signed-off-by: Kevin Cai <kevin.cai@celerdata.com>
2025-09-25 09:26:01 +08:00
stephen 7d81781448
[Feature] support asof join (BE Part) (#63236)
Signed-off-by: stephen <stephen5217@163.com>
2025-09-24 17:15:36 +08:00
predator4ann 80316d0e75
[Feature] Enable DCG for COLUMN_UPSERT_MODE in Lake PK tables (#61806)
Signed-off-by: predator4ann <yunlong.sun@hotmail.com>
2025-09-24 15:15:47 +08:00
predator4ann 7f5710459a
[BugFix] Fix dcg data not read correctly when switching from column mode to row mode in partial update (#61529)
Signed-off-by: predator4ann <yunlong.sun@hotmail.com>
2025-09-24 15:09:11 +08:00
PengFei Li 51cbf55797
[BugFix] Fix zone map incorrect filtering after CHAR to VARCHAR fast schema evolution in shared-data (#63377)
Signed-off-by: PengFei Li <lpengfei2016@gmail.com>
2025-09-24 09:55:00 +08:00
Yixin Luo 5ae19c32f4
[Enhancement] enable pk parallel execution when meet large import and compaction (#63219)
Signed-off-by: luohaha <18810541851@163.com>
2025-09-23 12:20:19 +00:00
Murphy 8679ef0d0f
[BugFix] remove the annoying warning log of json (#63414) 2025-09-23 18:36:52 +08:00
stephen 970daa2095
[UT] Fix floating-point precision test failures on ARM platforms (#63427)
Signed-off-by: stephen <stephen5217@163.com>
2025-09-23 15:10:35 +08:00
stephen 4da369ded4
[BugFix] Fix infinite loop when inserting decimal256 data on ARM platforms (#63406)
Signed-off-by: stephen <stephen5217@163.com>
2025-09-23 15:08:34 +08:00
srlch 5bbd2ed15a
[BugFix] Fix dcg meta inconsistency when partial update with auto increment column in column upsert mode. (#63370)
Signed-off-by: srlch <linzichao@starrocks.com>
2025-09-23 14:12:42 +08:00
nillin d93cbaf2c5
[Enhancement] Add be jvm memory metrics (#62210)
Signed-off-by: wenbinlin <wenbinlin@tencent.com>
2025-09-23 12:18:54 +08:00
meegoo 9dad29ab51
[Enhancement] Enforce request consistency for channel stream load (#63347)
Signed-off-by: meegoo <meegoo.sr@gmail.com>
2025-09-23 10:55:21 +08:00