Commit Graph

22140 Commits

Author SHA1 Message Date
Cursor Agent 37f81dbc18 Fix: Preserve integer width in ColumnFilterConverter
Co-authored-by: huanmingwong <huanmingwong@gmail.com>
2025-09-29 02:15:07 +00: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
Murphy 50d0a2aa79
[Doc] encode_sort_key (#63644)
Signed-off-by: 絵空事スピリット <wanglichen@starrocks.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: 絵空事スピリット <wanglichen@starrocks.com>
2025-09-28 17:36:03 +08:00
絵空事スピリット 232867926c
[Doc] Fix fe_locks Location (#63643) 2025-09-28 17:24:27 +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
Harbor Liu 2754e0d05d
[Refactor] Refactor USE CATALOG, SET CATALOG, and DROP CATALOG statements to sql-parser (#63616) 2025-09-28 11:54:33 +08:00
絵空事スピリット 7d64a5c43e
[Doc] Rephrase Temporary Table Limitation and Minimize QR image (#63627) 2025-09-28 11:34:34 +08:00
Youngwb 364ff2e036
[BugFix] Fix profile lost sql statement and planner trace when use prepare statement (#63519) 2025-09-28 10:58:01 +08:00
Murphy cd4aaee776
[BugFix] fix exception-safety of json extraction (#63575) 2025-09-28 10:15:41 +08:00
Murphy 5f951b8c82
[Doc] sys.fe_locks (#63590)
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: 絵空事スピリット <wanglichen@starrocks.com>
2025-09-28 10:14:57 +08:00
Qian Ye 12a4130c56
Update README.md
Signed-off-by: Qian Ye <yeqian.zju@gmail.com>
2025-09-27 10:35:45 -07: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
shuming.li ee28a4b9ac
[UT] Avoid partition ttl scheduler affecting tests (#63615)
Signed-off-by: shuming.li <ming.moriarty@gmail.com>
2025-09-26 17:11:07 +08: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
shuming.li 13168ed2fc
[UT] Fix mv unstable test cases (#63608)
Signed-off-by: shuming.li <ming.moriarty@gmail.com>
2025-09-26 15:49:57 +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
satanson a9b40b9378
[BugFix] Encoded window function misses ignore nulls flag in low-cardinality optimization (#63592)
Signed-off-by: satanson <ranpanf@gmail.com>
2025-09-26 15:03:52 +08:00
yan zhang 2c0473b510
[BugFix] connect context is missing in deploy scan range threads (#63544)
Signed-off-by: yan zhang <dirtysalt1987@gmail.com>
2025-09-26 14:06:10 +08:00
before-Sunrise ca0b85e643
[BugFix] fix prepare stmt's sql is "omit" (#62988)
Signed-off-by: before-Sunrise <unclejyj@gmail.com>
2025-09-26 13:58:28 +08: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 6abc22dfa7
[BugFix] disable shared_scan (#63543) 2025-09-26 12:54:43 +08:00
shuming.li 874d1dbff8
[Feature] (IVM Part7) Support IVM refresh for aggreagte (#62699)
Signed-off-by: shuming.li <ming.moriarty@gmail.com>
2025-09-26 10:24:06 +08:00
Murphy 6e2a6a5fea
[Enhancement] add querySource in the QueryDetail & AuditEvent (#63480) 2025-09-26 02:13:50 +00:00
kangkaisen 2f11165cc1
[Tool] Support compilation and execution on Mac 2: build_thirdparty.sh (#63561) 2025-09-26 09:55:25 +08:00
絵空事スピリット 5177ff2c33
[Doc] Replace QR Code (#63549) 2025-09-25 12:53:54 +00:00
絵空事スピリット 823b305517
[Doc] Fix CN shared-data quick start (#63548) 2025-09-25 08:53:14 -04:00
stephen a736842c67
[BugFix] Fix date_trunc partition pruning with combined predicates causing EMPTYSET (#63464)
Signed-off-by: stephen <stephen5217@163.com>
2025-09-25 19:01:31 +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
satanson aec060a697
[BugFix] Lead/Lag with specified default value can not adopt low-cardinality optimization (#63554)
Signed-off-by: satanson <ranpanf@gmail.com>
2025-09-25 18:34:32 +08:00
kangkaisen 03c31659c2
[Tool] Make StarRocks support compilation and execution on Mac 1: and env_macos.sh (#63557) 2025-09-25 16:31:53 +08:00
predator4ann 07e81ae237
[Enhancement] Determine the PartialUpdateMode based on session variable and insert column count for insert statement (#62091)
Signed-off-by: predator4ann <yunlong.sun@hotmail.com>
2025-09-25 15:36:54 +08:00
SevenJ 606ac5edfe
[Enhancement] Iceberg cache revise (#63388)
Signed-off-by: SevenJ <wenjun7j@gmail.com>
2025-09-25 14:50:04 +08:00
shuming.li e9820a48e4
[Enhancement] Optimize mv relatd locks (#63481)
Signed-off-by: shuming.li <ming.moriarty@gmail.com>
2025-09-25 14:16:23 +08:00
zihe.liu f456b828db
[BugFix] Fix state IsQuery for COM_STMT_EXECUTE (#63445)
## Why I'm doing:

For **COM_STMT_EXECUTE**, `ConnectProcessor.handleExecute` sets  
`ctx.getState().setIsQuery(ctx.isQueryStmt(executeStmt))`,  
but this is later overwritten by  
`context.getState().setIsQuery(parsedStmt instanceof QueryStatement)` inside `executor.execute()`.

Signed-off-by: zihe.liu <ziheliu1024@gmail.com>
2025-09-25 11:55:48 +08:00
Harbor Liu a73849377d
[UT] Fix unstability security test case (#63520) 2025-09-25 09:58:42 +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
Qian Ye 7e2c7cf94b
Update README.md
Signed-off-by: Qian Ye <yeqian.zju@gmail.com>
2025-09-24 12:54:42 -07:00
Qian Ye ba7a520121
Update README.md
Signed-off-by: Qian Ye <yeqian.zju@gmail.com>
2025-09-24 12:53:34 -07:00
SevenJ ffa6a5f504
[Enhancement] revise some hive catalog cache code (#63459)
Signed-off-by: SevenJ <wenjun7j@gmail.com>
2025-09-24 12:29:46 +00: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
yandongxiao 23965e357e
[BugFix] Remove the deregister logic from container (#63085)
Signed-off-by: yandongxiao <yandongxiao@starrocks.com>
2025-09-24 16:37:38 +08:00
yan zhang 3b0bee9731
[UT] fix unstable distance function cases because of precision (#63502)
Signed-off-by: yan zhang <dirtysalt1987@gmail.com>
2025-09-24 16:24:04 +08:00
Seaven 55e5a292e9
[BugFix] Fix array type analyze (#63371)
Signed-off-by: Seaven <seaven_7@qq.com>
2025-09-24 16:09:27 +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
stephen b9176a4696
[UT] fix unstable sql test (#63503)
Signed-off-by: stephen <stephen5217@163.com>
2025-09-24 15:04:56 +08:00
satanson 0c45329a51
[Enhancement] Low cardinality optimization on analytic operator obove table functions (#63378)
Signed-off-by: satanson <ranpanf@gmail.com>
2025-09-24 14:43:35 +08:00