Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
252 commits
Select commit Hold shift + click to select a range
7921705
[fix](Nereids): split INNER and OUTER into different rules. (#12646)
jackwener Sep 16, 2022
2e37c85
[Improvement](Nereids) Restrict the condition to apply MergeConsecuti…
wangshuo128 Sep 16, 2022
8a9f230
[Bug](vec) Fix avg overflow in clickbench (#12621)
HappenLee Sep 16, 2022
cfa6d91
[fix](nereids) generate invalid slot when translate predicates in fil…
englefly Sep 16, 2022
95a5227
[enhancement](test) add tpcds_sf100 to p2 cases (#12296)
dataroaring Sep 16, 2022
9f6a07f
[enhancement](Nereids) eliminate all unessential cross join in TPC-H …
morrySnow Sep 16, 2022
c4a0575
[fix](Broker load): fix bug for broker label has already been used (#…
yongjinhou Sep 16, 2022
ef1eee1
[doc](variables) fix forward_to_master doc bug #12659
JNSimba Sep 16, 2022
e1dcc4b
[Bugfix](stack_over_flow) fix be may core dump because of stack-buffe…
yangzhg Sep 16, 2022
5de7d09
[feature](Nereids) Add scalar function code generator and some functi…
924060929 Sep 16, 2022
9f08efe
remove gc and fix print (#12682)
xinyiZzz Sep 16, 2022
fb5e739
[fix](memory) Fix BE OOM when load -238 fail (#12666)
xinyiZzz Sep 16, 2022
f6c0ee9
[feature](light-schema-change) fix light-schema-change and add more c…
Lchangliang Sep 17, 2022
421eb15
[fix](memtracker) Process physical mem check does not include tc/jema…
xinyiZzz Sep 17, 2022
a1ea38a
[fix](load) fix stream load fail when setting strict mode (#12684)
luozenglin Sep 17, 2022
14fb472
[Opt](hash) Speed up insert from dict data map and not datetime (#12670)
HappenLee Sep 17, 2022
5d3294a
[feature-wip](unique-key-merge-on-write) fix calculate delete bitmap …
liaoxin01 Sep 17, 2022
4204351
update tpch regression test (#12687)
morrySnow Sep 17, 2022
8560fc3
Fix memory leak by calling in mem hook (#12708)
xinyiZzz Sep 18, 2022
12800a5
[enhancement](regression-test) add ssb_sf100 to p2 cases (#12286)
dataroaring Sep 18, 2022
4403d5c
[enhancement](regression-test) add some p0 cases (#12243)
dataroaring Sep 18, 2022
fe4def8
[enhancement](tracing) Support forward to master tracing (#12290)
Yukang-Lian Sep 18, 2022
b739456
[fix](tracing) Fix opentelemetry log output to be.out (#11856)
luozenglin Sep 18, 2022
3ec488a
[fix](broker-load) Correction of kerberos authentication time determi…
whutpencil Sep 18, 2022
f46a17c
[fix](colocation) fix decommission failure with 2 BEs and colocation …
morningman Sep 19, 2022
2e5b532
[fix](inpredicate)always use PredicateColumn<TYPE_STRING> for CHAR, V…
starocean999 Sep 19, 2022
bbecbc2
[enhancement](test) add yandex_metrica cases to p2 (#12692)
dataroaring Sep 19, 2022
54de7c7
[enhancement](test) add opensky cases to p2 (#12693)
dataroaring Sep 19, 2022
a26ff31
[improvement](new-scan) graceful quit scanner scheduler (#12715)
morningman Sep 19, 2022
0d2f5a2
[enhancement](compaction) prevent quick_compaction&auto_compaction co…
yixiutt Sep 19, 2022
ce1cec6
[fix](array-type) fix the invalid format load for stream load (#12424)
carlvinhust2012 Sep 19, 2022
65aac6f
[regression](left join)Add left join, the left table is empty, the qu…
caoliang-web Sep 19, 2022
38b3583
[fix](compile)compile error: open_telemetry_scop_wrapper.hpp cannot f…
englefly Sep 19, 2022
37667a8
[enhancement](test) add tpch_sf100_unique p2 test (#12697)
dataroaring Sep 19, 2022
05b3457
[test](time_add or sub)add time_add and time_sub funcation case #12641
LemonLiTree Sep 19, 2022
f16261b
[fix](vstream load) Fix bug when load json with jsonpath (#12660)
yinzhijian Sep 19, 2022
78ccf64
[enhancement](pred column) improve predicate column insert performanc…
yiguolei Sep 19, 2022
2abb56d
[improve](Nereids) Add all slots used by onClause to project when reo…
jackwener Sep 19, 2022
374e26f
[fix](intersect) fix intersect query failed in row storage code (#12712)
luozenglin Sep 19, 2022
26cd845
[refactor](file scanner)Refactor file scanner. (#12602)
Jibing-Li Sep 19, 2022
64122d6
[improve](Nereids) improve join cost model (#12657)
jackwener Sep 19, 2022
f966eeb
[feature](statistics) Internal-query, execute SQL query statement int…
weizhengte Sep 19, 2022
ba82c7a
[refactor](Nereids) rename transform to applyExploration UT helper cl…
jackwener Sep 19, 2022
aa188f7
[fix](statistics) remove statistical task multiple times in one loop …
weizhengte Sep 19, 2022
adf5a19
[test](Nereids) runtime filter unit cases not rely on NereidPlanner t…
sohardforaname Sep 19, 2022
18c4681
[typo](docs) Add docs of math function (#12532)
TaoZex Sep 19, 2022
4b5fc3c
[docs](function) add a series of date function documents (#12713)
luozenglin Sep 19, 2022
d1bf22b
[feature](statistics) template for building internal query SQL statem…
weizhengte Sep 19, 2022
da189da
[chore](regression-test) add order by in test_rollup_agg_date.groovy …
mrhhsg Sep 20, 2022
b99fd0b
[feature-wip](unique-key-merge-on-write) fix that incremental clone m…
liaoxin01 Sep 20, 2022
59e04f3
[fix](inlineview)the inlineview's slots' nullability property is not …
starocean999 Sep 20, 2022
4ae27e6
[fix](agg)the output of window function's nullability should be cons…
starocean999 Sep 20, 2022
93c5537
[feature-wip](parquet-reader) add page index row range (#12652)
wsjz Sep 20, 2022
a565b6d
[enhancement](Nereids) compare LogicalProperties with output set inst…
morrySnow Sep 20, 2022
829fbba
[enhancement](nereids) use Literal promotion to avoid unnecessary cas…
englefly Sep 20, 2022
cd3167c
[feature](Nereids) Push down not slot references expression of on cla…
sohardforaname Sep 20, 2022
143a40b
[feature-wip](parquet-reader) filter rows by page index (#12664)
AshinGau Sep 20, 2022
f23d97d
[refactor](SimpleScheduler) refactor code for getting available backe…
caiconghui Sep 20, 2022
e861676
[Bugfix](mem) Fix memory limit check may overflow (#12776)
yangzhg Sep 20, 2022
5413330
fix thirdparty builder (#12768)
pengxiangyu Sep 20, 2022
7270a3e
[Bug](date) Fix wrong type in TimestampArithmeticExpr (#12727)
Gabriel39 Sep 20, 2022
243e1a5
[Bug](date) Fix wrong result produced by date function (#12720)
Gabriel39 Sep 20, 2022
70d70b3
[chore](regression-test) add order by column in tpch_sf1_p1/tpch_sf1/…
mrhhsg Sep 20, 2022
ab5f331
[chore](build) add an option to disable strip thridparty libs (#12772)
yangzhg Sep 21, 2022
0d7ea88
[typo](docs) vectorization needs to be turned off to use native udf #…
lsy3993 Sep 21, 2022
0dc27a9
[fix](lateral_view) fix lateral view explode_split with temp table (#…
cambyzju Sep 21, 2022
c102f91
[Bugfix](string_functions) rearrange code to avoid global buffer over…
ByteYue Sep 21, 2022
0565287
[BugFix](VExprContext) capture error status to prevent incorrect func…
ByteYue Sep 21, 2022
ee532a2
[fix](memtracker) Fix thread mem tracker try consume accuracy #12782
xinyiZzz Sep 21, 2022
00205b9
[feature-wip](unique-key-merge-on-write) fix calculate delete bitmap …
liaoxin01 Sep 21, 2022
7e2cd03
[Improvement](sort) Use heap sort to optimize sort node (#12700)
Gabriel39 Sep 21, 2022
0e0f468
[Bug](datetimev2) Fix lost precision for datetimev2 (#12723)
Gabriel39 Sep 21, 2022
966a8c8
[fix](outfile) select OBJECT and HLL columns into outfile as null. (#…
luozenglin Sep 21, 2022
bdf82b0
[improve](Nereids): add check validator during post. (#12702)
jackwener Sep 21, 2022
d013a17
[typo](docs)rename doc file name (#12783)
ChPi Sep 21, 2022
1a20071
[enhancement](Nereids) add all necessary PhysicalDistribute on Join's…
morrySnow Sep 21, 2022
36daa94
[feature-wip](new-scan)Refactor VFileScanner, support broker load, re…
Jibing-Li Sep 21, 2022
3a18416
[Enhancement](load) optimize flush policy to avoid small segments #12706
zhannngchen Sep 21, 2022
0976c4e
[improvement](agg) iterate aggregation data in memory written order (…
mrhhsg Sep 21, 2022
f29a5c4
[fix](memtracker) Introduce orphan mem tracker to verify memory track…
xinyiZzz Sep 21, 2022
4af1b25
[fix](memtracker) Refactor load channel mem tracker to improve accura…
xinyiZzz Sep 21, 2022
e226a19
[feature-wip](new-scan)Add load counter for VFileScanner (#12812)
Jibing-Li Sep 21, 2022
356432f
[fix](Nereids) GroupExpression never be optimize if it run with explo…
morrySnow Sep 21, 2022
435aec2
[typo](docs) fix get-starting doc err (#12777)
zy-kkk Sep 21, 2022
d0604c9
[typo](docs)Changing the Jump Address of BrokerLoad in SparkLoad (#12…
yuanyuan8983 Sep 21, 2022
4de7150
[Improvement](dateformat) Improve efficiency for function `date_forma…
Gabriel39 Sep 21, 2022
9337363
[feature](Nereids): eliminate filter true and add checker. (#12821)
jackwener Sep 21, 2022
6c8c89c
[enhancement](Nereids) turn on all reorder rule that needed by zig-za…
morrySnow Sep 21, 2022
3b5af80
[fix](LOAD statement): fix bug for `toSql` func of LoadStmt. (#12648)
dutyu Sep 22, 2022
1a097a8
[fix](Nereids) anti join could not be reorder (#12827)
jackwener Sep 22, 2022
b08d9c0
[feature-wip](parquet-reader) refactor some arguments for parquet rea…
wsjz Sep 22, 2022
c986f07
[feature-wip](file-scanner)Get column type from parquet schema (#12833)
Jibing-Li Sep 22, 2022
f160295
[bugfix](fe) Fix test_materialized_view_hll case npt. (#12829)
swjtu-zhanglei Sep 22, 2022
26726a5
[bugfix](predicate column) data maybe wrong if not a single page (#12…
yiguolei Sep 22, 2022
31769ab
[enhancement](like)pass data to like function in block not in row (#1…
starocean999 Sep 22, 2022
e3ef65d
(brpc) donot use pooled brpc (#12754)
dataroaring Sep 22, 2022
d955f42
[feature](http) refactor version info and add new http api for get ve…
nextdreamblue Sep 22, 2022
cb8b9cd
[feature-wip](statistics) collect statistics by sql task (#12765)
weizhengte Sep 22, 2022
4ccec10
[feature-wip](statistics) add statistics module related syntax (#12766)
weizhengte Sep 22, 2022
92171d8
[chore](build) add option to disable -frecord-gcc-switches (#12846)
yangzhg Sep 22, 2022
2940e61
[Bug](view) Show create view support comment #12838
stalary Sep 23, 2022
086d7ee
[regressiontest](test_with)add with_case test (#12814)
LemonLiTree Sep 23, 2022
a030b15
[Refactor](parquet) refactor parquet write to uniform and consistent …
zhangstar333 Sep 23, 2022
9b025a5
[typo](docs) Changing the Jump Address of SparkLoad in BrokerLoad (#1…
yuanyuan8983 Sep 23, 2022
0f607eb
[feature-wip](MTMV) Support showing and dropping materialized view fo…
adonis0147 Sep 23, 2022
9b80ad3
[test](Nereids) add TPC-H Q2 as regression test case (#12840)
morrySnow Sep 23, 2022
b52ee3d
[Improvement](statistics) collect statistics in parallel and add test…
weizhengte Sep 23, 2022
b7d16f9
[fix](test) fix a test failure problem after merging (#12902)
weizhengte Sep 23, 2022
9edbbce
[enhancement](Nereids) remove unnecessary ExchangeNode under AssertNu…
morrySnow Sep 23, 2022
e5d7d09
[feature](Nereids) enable bucket shuffle join on fragment without sca…
morrySnow Sep 23, 2022
5389a75
[fix](streamload&sink) release and allocate memory in the same tracke…
dataroaring Sep 23, 2022
a5320fd
[Opt](Vectorized) Support push down no grouping agg (#12803)
HappenLee Sep 23, 2022
de7d8b7
[feature-wip](parquet-reader) add parquet reader profile (#12797)
AshinGau Sep 23, 2022
81c0cdc
[fix](Nereids): add stats in plan. (#12790)
jackwener Sep 23, 2022
1ad51bd
[fix](streamload) set coord for streamLoad (#12744)
dataroaring Sep 23, 2022
4db9313
[fix](frontend) fix peerDependencies error (#12373)
jeffreys-cat Sep 23, 2022
e8a12d6
build extension docs failed fix (#12915)
hf200012 Sep 23, 2022
b22ca9c
fix transfer to tracker (#12932)
xinyiZzz Sep 24, 2022
12dcda7
[Bug](bucket shuffle) fix error bucket shuffle join plan in two same …
HappenLee Sep 24, 2022
a9dbd4c
[bugfix](scanner) olap scanner compute is wrong (#12857)
yiguolei Sep 24, 2022
1c1e688
[Enhancement](load) Refine the load channel flush policy on mem limit…
zhannngchen Sep 24, 2022
ffbc0fd
[fix](new-scan)Fix new scanner load job bugs (#12903)
Jibing-Li Sep 24, 2022
a9e0fe3
[fix](function)fix string split function buffer overflow (#12834)
starocean999 Sep 24, 2022
00bb5b5
[fix](load) print detailed error message (#12938)
zhannngchen Sep 25, 2022
5080a7e
[feature](JSON datatype)Support JSON datatype (#10322)
freesinger Sep 25, 2022
13158ff
[Improvement](predicate) Replace for-loop by memcpy (#12867)
Gabriel39 Sep 25, 2022
676b0ef
[Improvement](dict) optimize dictionary column (#12852)
Gabriel39 Sep 25, 2022
b7526d4
[Refactor](datev2) Update comments for datev2/datetimev2 (#12823)
Gabriel39 Sep 25, 2022
2bf1a8f
[feature-wip](parquet-reader) pre read page data in advance to avoid …
AshinGau Sep 25, 2022
4f63501
[enhancement](test) add github events cases to p2 (#12696)
dataroaring Sep 25, 2022
36c95a3
[enhancement](test) add brown cases to p2 (#12694)
dataroaring Sep 25, 2022
81ee1f9
[Enhancement](debugging) Add more debug info for clang build (#12845)
adonis0147 Sep 26, 2022
879194c
[chore](config) increase minimum thread num of some thread pool (#12917)
mrhhsg Sep 26, 2022
b4d9b18
[feature-wip](new-scan)Add new odbc scanner and new odbc scan node (#…
BePPPower Sep 26, 2022
07f2692
[typo](docs)Optimized date function doc order and add partial functio…
zy-kkk Sep 26, 2022
7119cc2
[typo](docs)Optimized string and date function doc (#12949)
zy-kkk Sep 26, 2022
4a5df2b
[fix](log)Audit log status is incorrect (#12824)
hf200012 Sep 26, 2022
dbbf465
[fix](parquet) fix write error data as parquet format. (#12864)
luozenglin Sep 26, 2022
e459733
[feature](nereids) extract single table expression for push down (#12…
englefly Sep 26, 2022
a5795c9
Spark load import kerberos parameter modification (#12924)
caoliang-web Sep 26, 2022
539b5f7
Optimized materialized view documentation (#12798)
zy-kkk Sep 26, 2022
ad2b5ae
[fix](memtracker) Remove mem tracker record mem pool actual memory us…
xinyiZzz Sep 26, 2022
bc01a93
[function](hash) add support of murmur_hash3_64 (#12923)
jacktengg Sep 26, 2022
cdf5481
[refactor](fe-core src test catalog): refactor and replace use NIO #1…
dinggege1024 Sep 26, 2022
36f54ed
[feature](Nereids) constant expression folding (#12151)
qzsee Sep 26, 2022
cf6f45b
[fix](column)fix get_shrinked_column misspell (#12961)
freesinger Sep 26, 2022
4cd93d3
fix doc typos (#12967)
zxealous Sep 26, 2022
c1ceeea
[Chore](clang) fix some build fail on clang15 (#12882)
BiteTheDDDDt Sep 26, 2022
421d875
[fix](transfer_thread) fix the loss of notification. (#12988)
Xiaoccer Sep 27, 2022
8df82a7
[Bug](function) fix substr return null on row-based engine #12906
BiteTheDDDDt Sep 27, 2022
aacc264
[enhancement](AuditLoaderPlugin): add audit queue capacity configurat…
dutyu Sep 27, 2022
c391f11
[regression-case](improve) improve regression test case (#12979)
jacktengg Sep 27, 2022
32d83ce
[enhancement](memory) Trigger load channel flush based on process phy…
xinyiZzz Sep 27, 2022
8067692
[enhancement](workflow) Enable the shellcheck workflow to comment the…
adonis0147 Sep 27, 2022
60c7a7f
[fix](remote)fix bug for delete s3 dir and list s3 dir (#12918)
pengxiangyu Sep 27, 2022
57177f8
[fix](like)prevent null pointer by unimplemented like_vec functions (…
starocean999 Sep 27, 2022
97ef895
[feature-wip](unique-key-merge-on-write) fix thread safe issue in Bet…
zhannngchen Sep 27, 2022
241d075
[chore](build) Support building from source on ubuntu-22.04 (aarch64)…
adonis0147 Sep 27, 2022
236c951
[fix](projection)sort node's unmaterialized slots should be removed f…
starocean999 Sep 27, 2022
3a0be13
[function](bitmap) support bitmap_hash64 (#12992)
jacktengg Sep 27, 2022
e593f47
[chore](build) Fix compilation errors reported by clang-15 (#13000)
adonis0147 Sep 27, 2022
56e092f
[typo](docs)Add bitmap_count doc And Adjustment function list (#12978)
LemonLiTree Sep 27, 2022
a90c06c
[regression-test](join)add join case5 #12854
zy-kkk Sep 27, 2022
fd2ca59
[test](join)add join case5 #12854
zy-kkk Sep 27, 2022
ae19e05
[Enhancement](optimize) optimize for insert_indices_from (#12807)
BiteTheDDDDt Sep 27, 2022
ad346a9
[enhancement](test) add tpch_sf10 cases to p2 (#12698)
dataroaring Sep 27, 2022
2ac37a2
[enhancement](test) add tpcds_sf1000 to p2 (#12695)
dataroaring Sep 27, 2022
4fb064c
[feature-wip](statistics) step6: statistics is available (#8864)
weizhengte Sep 27, 2022
47e1180
[Feature](serialize) move block_data_version to fe heart beat (#12667)
BiteTheDDDDt Sep 27, 2022
47abda4
[feature](Nereids) Set pre-aggregation status for OLAP table scan (#1…
wangshuo128 Sep 27, 2022
e9de1d3
[feature](Nereids) Eliminate outer join (#12985)
jackwener Sep 27, 2022
9fafd1d
fix_md5sum_and_sm3sum (#13009)
yongjinhou Sep 27, 2022
51b293c
[feature-wip](new-scan) support more load situation (#12953)
morningman Sep 27, 2022
cc9e5c6
[enhancement](load) avoid duplicate reduce on same TabletsChannel #12975
zhannngchen Sep 27, 2022
2986ad5
[chore](third-party) Fix compilation errors reported by clang-15 (#13…
adonis0147 Sep 27, 2022
d7779d9
[Bug](function) core dump on substr #13007
BiteTheDDDDt Sep 28, 2022
eca9250
[fix](join)report 'natural join is not supported' instead of getting …
starocean999 Sep 28, 2022
779841b
[Improvement](sort) Reuse memory in sort node (#12921)
Gabriel39 Sep 28, 2022
dcf2e60
[feature](Nereids) use one stage aggregation if available (#12849)
morrySnow Sep 28, 2022
061d003
[improvement](test) cache data from s3 to cacheDataPath (#13018)
dataroaring Sep 28, 2022
84a210a
[chore](regression-test) add default group(p0) for regression-test (#…
mrhhsg Sep 28, 2022
d47b005
[enhancement](memory) Jemalloc performance optimization and compatibi…
xinyiZzz Sep 28, 2022
f58706e
[optimization](array-type) optimize error prompts when sql parser rep…
carlvinhust2012 Sep 28, 2022
99a500d
[DOC](datev2) Add documents for DateV2 (#12976)
Gabriel39 Sep 28, 2022
edc15e3
[improvement](memory) set TCMALLOC_HEAP_LIMIT_MB to control memory co…
dataroaring Sep 28, 2022
b1f9e44
[fix](planner) fix push down no grouping agg (#12983)
luozenglin Sep 28, 2022
72f9e26
[improvement](scan) remove concurrency limit if scan has predicate (#…
morningman Sep 28, 2022
0432ea7
[enhancement](Nereids) let BinaryArithmetic's dataType and nullable m…
morrySnow Sep 28, 2022
ee4a3c7
[enhancement](Nereids) optimization for star-schema join reorder (#12…
englefly Sep 28, 2022
9ff326f
[feature-wip](parquet-reader) refactor parquet_predicate (#12896)
wsjz Sep 28, 2022
ad18890
[feature](Nereids) implicit cast StringLiteral to another side type o…
morrySnow Sep 28, 2022
06c06a0
[Bug](aarch64) Fix the mmap errors which make BE down during starting…
adonis0147 Sep 29, 2022
114f57d
[Opt](Vec) Support const column check nullable and remove nullable (#…
HappenLee Sep 29, 2022
7a915c4
[fix](like)the dictionary column should call get_shrink_value to get …
starocean999 Sep 29, 2022
ee134a9
[enhancement](test) add more p0 cases (#12285)
dataroaring Sep 29, 2022
03ccb63
[Bug](Datax)Fix bug that the dataxwriter will drop column when conver…
Wilson-BT Sep 29, 2022
f7e18fc
[Improvement](outfile) Support output null in parquet writer (#12970)
Gabriel39 Sep 29, 2022
627e39a
[Enhancement](fe-core) make UT-SelectRollupTest more stable (#13030)
dinggege1024 Sep 29, 2022
8849fda
[optimization](array-type) optimize the help docs of array type (#13001)
carlvinhust2012 Sep 29, 2022
979d6f3
[Improvement](string) Optimize scanning for string #12911
Gabriel39 Sep 29, 2022
e0f8176
[enhancement](Nereids) planner performance speed up (#12858)
sohardforaname Sep 29, 2022
3e50b36
[enhancement](Nereids) push filter into join otherJoinCondition (#12842)
jackwener Sep 29, 2022
da7cc84
[Fix](Nereids) Fix exception message when can't bind slot. (#13048)
wangshuo128 Sep 29, 2022
1f657da
[Bug](datev2) Fix compatible error between datev2 and date (#13024)
Gabriel39 Sep 29, 2022
7feb85f
[fix](comment) sparkload comment mislead which file types it support …
dinggege1024 Sep 29, 2022
46af63f
[fix](planner) Add default execution interval time for stats framewor…
Kikyou1997 Sep 29, 2022
32acc02
[enhancement](Nereids) remove unnecessary exchange between global and…
morrySnow Sep 29, 2022
6f486ce
[fix](array-type) fix the be core dump when use string to insert arra…
carlvinhust2012 Sep 30, 2022
ca52f66
[chore](be-ut) Remove useless lines which cause compilation errors (#…
adonis0147 Sep 30, 2022
b196bdd
[Improvement](datev2) fix some compatible problems for datev2 (#13079)
Gabriel39 Sep 30, 2022
5fcd3ec
[fix](planner) throw NPE when all group by expr is constant and no ag…
morrySnow Sep 30, 2022
0ddafde
[Doc](ReadME) Update the slack links (#13089)
luzhijing Sep 30, 2022
eee3cd7
[enhancement](test) add some cases from trino to p0 (#12699)
dataroaring Sep 30, 2022
3fd12f2
[fix](alter-load) fix bug that tablet version may be wrong when doing…
morningman Sep 30, 2022
689a90b
[fix](test) add tpch_sf100 and fix results of tpcds_sf100 (#13098)
dataroaring Oct 1, 2022
5508c91
[fix](test) add sync for some cases and adjust data path for tpch_uni…
dataroaring Oct 1, 2022
e00a7a8
[fix](compaction) don't log cumu policy name for quick compaction (#1…
dataroaring Oct 1, 2022
dfd045e
[feature-wip](parquet-reader) add detail profile for parquet reader (…
AshinGau Oct 2, 2022
21ebc8f
not allow alter mow property (#13108)
zhannngchen Oct 3, 2022
a8591c4
[fix](test) add sync and drop table for insert.groovy and test_array_…
dataroaring Oct 4, 2022
536222f
[Enhancement](optimize) optimize for function multiply on decimalv2 (…
BiteTheDDDDt Oct 4, 2022
c4be388
[fix](test) try to let cases run in parallel (#13114)
dataroaring Oct 4, 2022
f887212
[doc] Add python env for Mac M1 (#12792)
EmmyMiao87 Oct 4, 2022
0a69772
[fix](jdbc) fix insert into date type to oracle using wrong type (#12…
zhangstar333 Oct 4, 2022
abf943a
[fix](parquet) fix parquet write setting property is not effective (#…
zhangstar333 Oct 4, 2022
f2aa829
[typo](doc) replace unuse parameter max_base_compaction_concurrency (…
dataalive Oct 4, 2022
ccd449a
[typo](doc) Modify the comment of light schema change (#13061)
Lchangliang Oct 4, 2022
3c90bdf
[Regression](load) Add broker load regression test. (#13062)
Jibing-Li Oct 4, 2022
43a0308
[improvement](ResourceTag) support upper case in tag name (#13063)
yangzhg Oct 4, 2022
d931f09
[fix](decimal) retain Decimal trailing zero when select on fe (#13065)
nextdreamblue Oct 4, 2022
91ee66e
[fix](fe-test) TestWithFeService do not clean up dorisHome (#13073)
dinggege1024 Oct 4, 2022
c9c5f25
[enhancement](memory) Fix `USE_MEM_TRACKER=OFF` compile (#13085)
xinyiZzz Oct 5, 2022
514a17e
[fix](BE) fix the stream load error when upgrade BE from 1.1.2 to mas…
Lchangliang Oct 5, 2022
fdefef3
[typo](docs)Metadata Operations and Maintenance link error (#13090)
hf200012 Oct 5, 2022
3b45513
[fix](spark-load) no need to filter row group when doing spark load (…
morningman Oct 5, 2022
6a7fafe
[fix](string) allocate memory according to actual size instead of max…
dataroaring Oct 6, 2022
78dc800
(runtimefilter) shorter time prepare consumes (#13127)
dataroaring Oct 6, 2022
0588356
[doc](typo): fix typo (#13130)
bigcatpan Oct 6, 2022
ec81bcc
fix slack link (#13128)
hf200012 Oct 6, 2022
7863f89
[feature-wip](new-scan)Add new jdbc scanner and new jdbc scan node (#…
BePPPower Oct 7, 2022
e75d8c7
[Fix](doc) Remove unsupported parameter (#13081)
Oct 7, 2022
e949743
fix bug that last line of data lost for stream load when line delimit…
weizuo93 Oct 7, 2022
b171807
[docs](unique-key-merge-on-write) add document for unique key merge o…
zhannngchen Oct 7, 2022
512ebf9
fix data cache sidebar error (#13137)
zy-kkk Oct 7, 2022
828bfe9
[fix](test) resolve tpch_sf100_unique_p2 and tpch_sf10_unique_p2 to r…
dataroaring Oct 8, 2022
1b8ffac
[improvement](load) config flush_thread_num_per_store to be 6 by defa…
dataroaring Oct 8, 2022
c10a5b6
[feature](Nereids): support Alias join reorder and fix bug. (#12890)
jackwener Oct 8, 2022
c759531
[fix](file-scanner) fix some logic about broker load with parquet wit…
morningman Oct 8, 2022
8123098
fix doc
FreeOnePlus Oct 8, 2022
1cbc1e0
fix doc
FreeOnePlus Oct 8, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 13 additions & 0 deletions .github/actions/patches/action-sh-checker.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/entrypoint.sh b/entrypoint.sh
index d3399e3..5c8ee7b 100755
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -202,7 +202,7 @@ if ((CHECKBASHISMS_ENABLE == 1)); then
fi

if ((shellcheck_code != 0 || shfmt_code != 0)); then
- if [ "$GITHUB_EVENT_NAME" == "pull_request" ] && ((SH_CHECKER_COMMENT == 1)); then
+ if [[ "$GITHUB_EVENT_NAME" == "pull_request" || "$GITHUB_EVENT_NAME" == "pull_request_target" ]] && ((SH_CHECKER_COMMENT == 1)); then
_comment_on_github "$shellcheck_error" "$shfmt_error"
fi
fi
1 change: 1 addition & 0 deletions .github/workflows/build-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ jobs:
rm -rf website/i18n/zh-CN/docusaurus-plugin-content-docs-community/*
mkdir website/i18n/zh-CN/docusaurus-plugin-content-docs-community/current
cp -R docs/zh-CN/community/* website/i18n/zh-CN/docusaurus-plugin-content-docs-community/current/
cp -R docs/sidebarsCommunity.json website/
cp -R docs/sidebars.json website/
cp -R docs/images website/static/
sed '2,3d' website/versions.json > website/versions.json1
Expand Down
16 changes: 15 additions & 1 deletion .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,32 @@

name: ShellCheck

on: [push, pull_request]
on: [push, pull_request_target]

jobs:
shellcheck:
name: ShellCheck
runs-on: ubuntu-latest
steps:
- name: Checkout ${{ github.ref }} ( ${{ github.sha }} )
if: ${{ github.event_name != 'pull_request_target' }}
uses: actions/checkout@v3
with:
submodules: recursive

- name: Checkout ${{ github.ref }} ( ${{ github.event.pull_request.head.sha }} )
if: ${{ github.event_name == 'pull_request_target' }}
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
submodules: recursive

- name: Patch
run: |
pushd .github/actions/action-sh-checker >/dev/null
git apply ../patches/action-sh-checker.patch
popd >/dev/null

- name: Run ShellCheck
uses: ./.github/actions/action-sh-checker
env:
Expand Down
7 changes: 7 additions & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ header:
- "be/src/util/coding.h"
- "be/src/util/condition_variable.cpp"
- "be/src/util/condition_variable.h"
- "be/src/util/jsonb_document.h"
- "be/src/util/jsonb_error.h"
- "be/src/util/jsonb_parser.h"
- "be/src/util/jsonb_stream.h"
- "be/src/util/jsonb_updater.h"
- "be/src/util/jsonb_utils.h"
- "be/src/util/jsonb_writer.h"
- "be/src/util/murmur_hash3.cpp"
- "be/src/util/murmur_hash3.h"
- "be/src/util/mustache/mustache.cc"
Expand Down
11 changes: 11 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -747,3 +747,14 @@ The above copyright notice and this permission notice shall be included in all c

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
----------------------------------------------------------------------------------

be/src/util/jsonb*: BSD-style license

Copyright (c) 2014, Facebook, Inc.
All rights reserved.

This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree. An additional grant
of patent rights can be found in the PATENTS file in the same directory.

----------------------------------------------------------------------------------
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ under the License.
[![Jenkins Vec](https://img.shields.io/jenkins/tests?compact_message&jobUrl=https://ci-builds.apache.org/job/Doris/job/doris_daily_disable_vectorized&label=OriginEngine)](https://ci-builds.apache.org/job/Doris/job/doris_daily_disable_vectorized)
[![Jenkins Ori](https://img.shields.io/jenkins/tests?compact_message&jobUrl=https://ci-builds.apache.org/job/Doris/job/doris_daily_enable_vectorized&label=VectorizedEngine)](https://ci-builds.apache.org/job/Doris/job/doris_daily_enable_vectorized)
[![Total Lines](https://tokei.rs/b1/github/apache/doris?category=lines)](https://github.com/apache/doris)
[![Join the Doris Community at Slack](https://img.shields.io/badge/chat-slack-brightgreen)](https://join.slack.com/t/apachedoriscommunity/shared_invite/zt-11jb8gesh-7IukzSrdea6mqoG0HB4gZg)
[![Join the Doris Community at Slack](https://img.shields.io/badge/chat-slack-brightgreen)](https://join.slack.com/t/apachedoriscommunity/shared_invite/zt-1h153f1ar-sTJB_QahY1SHvZdtPFoIOQ)
[![Join the chat at https://gitter.im/apache-doris/Lobby](https://badges.gitter.im/apache-doris/Lobby.svg)](https://gitter.im/apache-doris/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![EN doc](https://img.shields.io/badge/Docs-English-blue.svg)](https://doris.apache.org/docs/get-starting/)
[![CN doc](https://img.shields.io/badge/文档-中文版-blue.svg)](https://doris.apache.org/zh-CN/docs/get-starting/)
Expand Down Expand Up @@ -222,7 +222,7 @@ Contact us through the following mailing list.

* Apache Doris Official Website - [https://doris.apache.org](https://doris.apache.org)
* Developer Mailing list - <dev@doris.apache.org>. Mail to <dev-subscribe@doris.apache.org>, follow the reply to subscribe the mail list.
* Slack channel - [Join the Slack](https://join.slack.com/t/apachedoriscommunity/shared_invite/zt-18u6vjopj-Th15vTVfmCzVfhhL5rz26A)
* Slack channel - [Join the Slack](https://join.slack.com/t/apachedoriscommunity/shared_invite/zt-1h153f1ar-sTJB_QahY1SHvZdtPFoIOQ)
* Twitter - [Follow @doris_apache](https://twitter.com/doris_apache)


Expand Down
15 changes: 12 additions & 3 deletions be/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,10 @@ add_library(leveldb STATIC IMPORTED)
set_target_properties(leveldb PROPERTIES IMPORTED_LOCATION ${THIRDPARTY_DIR}/lib/libleveldb.a)

add_library(jemalloc STATIC IMPORTED)
set_target_properties(jemalloc PROPERTIES IMPORTED_LOCATION ${THIRDPARTY_DIR}/lib64/libjemalloc.a)
set_target_properties(jemalloc PROPERTIES IMPORTED_LOCATION ${THIRDPARTY_DIR}/lib/libjemalloc_doris.a)

add_library(jemalloc_arrow STATIC IMPORTED)
set_target_properties(jemalloc_arrow PROPERTIES IMPORTED_LOCATION ${THIRDPARTY_DIR}/lib64/libjemalloc.a)

add_library(brotlicommon STATIC IMPORTED)
set_target_properties(brotlicommon PROPERTIES IMPORTED_LOCATION ${THIRDPARTY_DIR}/lib64/libbrotlicommon.a)
Expand Down Expand Up @@ -410,14 +413,18 @@ check_function_exists(sched_getcpu HAVE_SCHED_GETCPU)
# -pthread: enable multithreaded malloc
# -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG: enable nanosecond precision for boost
# -fno-omit-frame-pointers: Keep frame pointer for functions in register
set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} -frecord-gcc-switches -Wall -Wno-sign-compare -pthread -Werror")
set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} -Wall -Wno-sign-compare -pthread -Werror")
set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} -fstrict-aliasing -fno-omit-frame-pointer")
set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} -std=gnu++17 -D__STDC_FORMAT_MACROS")
set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG")
set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} -DBOOST_SYSTEM_NO_DEPRECATED")
# Enable the cpu and heap profile of brpc
set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} -DBRPC_ENABLE_CPU_PROFILER")

if (RECORD_COMPILER_SWITCHES)
set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} -frecord-gcc-switches")
endif()

function(TRY_TO_CHANGE_LINKER LINKER_COMMAND LINKER_NAME)
if (CUSTUM_LINKER_COMMAND STREQUAL "ld")
execute_process(COMMAND ${CMAKE_C_COMPILER} -fuse-ld=${LINKER_COMMAND} -Wl,--version ERROR_QUIET OUTPUT_VARIABLE LD_VERSION)
Expand All @@ -432,6 +439,7 @@ endfunction()
set(CUSTUM_LINKER_COMMAND "ld")
# TODO: mold will link fail on thirdparty brpc now, waiting for investigation.
# TRY_TO_CHANGE_LINKER("mold" "mold")

TRY_TO_CHANGE_LINKER("lld" "LLD")
TRY_TO_CHANGE_LINKER("gold" "GNU gold")
if (NOT CUSTUM_LINKER_COMMAND STREQUAL "ld")
Expand All @@ -452,7 +460,7 @@ if (COMPILER_GCC)
endif ()

if (COMPILER_CLANG)
add_compile_options (-fcolor-diagnostics)
add_compile_options(-fcolor-diagnostics -fno-limit-debug-info)
if(MAKE_TEST STREQUAL "OFF")
add_compile_options(-Qunused-arguments)
endif()
Expand Down Expand Up @@ -676,6 +684,7 @@ set(COMMON_THIRDPARTY
roaring
fmt
jemalloc
jemalloc_arrow
brotlicommon
brotlidec
brotlienc
Expand Down
16 changes: 16 additions & 0 deletions be/src/agent/heartbeat_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ using apache::thrift::TProcessor;

namespace doris {

// When we have some breaking change for execute engine, we should update be_exec_version.
// 0: not contain be_exec_version.
// 1: remove ColumnString's terminating zero.
const int HeartbeatServer::max_be_exec_version = 1;
const int HeartbeatServer::min_be_exec_version = 0;

// For support rolling upgrade, we send data as second newest version.
int HeartbeatServer::be_exec_version = max_be_exec_version - 1;

HeartbeatServer::HeartbeatServer(TMasterInfo* master_info)
: _master_info(master_info), _fe_epoch(0) {
_olap_engine = StorageEngine::instance();
Expand Down Expand Up @@ -161,6 +170,13 @@ Status HeartbeatServer::_heartbeat(const TMasterInfo& master_info) {
_master_info->__set_backend_id(master_info.backend_id);
}

if (master_info.__isset.be_exec_version && check_be_exec_version(master_info.be_exec_version) &&
be_exec_version != master_info.be_exec_version) {
LOG(INFO) << fmt::format("be_exec_version changed from {} to {}", be_exec_version,
master_info.be_exec_version);
be_exec_version = master_info.be_exec_version;
}

if (need_report) {
LOG(INFO) << "Master FE is changed or restarted. report tablet and disk info immediately";
_olap_engine->notify_listeners();
Expand Down
21 changes: 19 additions & 2 deletions be/src/agent/heartbeat_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class ThriftServer;
class HeartbeatServer : public HeartbeatServiceIf {
public:
explicit HeartbeatServer(TMasterInfo* master_info);
virtual ~HeartbeatServer() {};
~HeartbeatServer() override = default;

virtual void init_cluster_id();

Expand All @@ -45,7 +45,24 @@ class HeartbeatServer : public HeartbeatServiceIf {
//
// Output parameters:
// * heartbeat_result: The result of heartbeat set
virtual void heartbeat(THeartbeatResult& heartbeat_result, const TMasterInfo& master_info);
void heartbeat(THeartbeatResult& heartbeat_result, const TMasterInfo& master_info) override;

static const int max_be_exec_version;
static const int min_be_exec_version;
static int be_exec_version;

static bool check_be_exec_version(int be_exec_version) {
if (be_exec_version > max_be_exec_version || be_exec_version < min_be_exec_version) {
LOG(WARNING) << fmt::format(
"Received be_exec_version is not supported, be_exec_version={}, "
"min_be_exec_version={}, max_be_exec_version={}, maybe due to FE version not "
"match "
"with BE.",
be_exec_version, min_be_exec_version, max_be_exec_version);
return false;
}
return true;
}

private:
Status _heartbeat(const TMasterInfo& master_info);
Expand Down
10 changes: 8 additions & 2 deletions be/src/agent/task_worker_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -722,14 +722,12 @@ void TaskWorkerPool::_publish_version_worker_thread_callback() {
.error(status);
finish_task_request.__set_error_tablet_ids(error_tablet_ids);
} else {
int submit_tablets = 0;
if (config::enable_quick_compaction && config::quick_compaction_batch_size > 0) {
for (int i = 0; i < succ_tablet_ids.size(); i++) {
TabletSharedPtr tablet =
StorageEngine::instance()->tablet_manager()->get_tablet(
succ_tablet_ids[i]);
if (tablet != nullptr) {
submit_tablets++;
tablet->publised_count++;
if (tablet->publised_count % config::quick_compaction_batch_size == 0) {
StorageEngine::instance()->submit_quick_compaction_task(tablet);
Expand Down Expand Up @@ -856,6 +854,14 @@ void TaskWorkerPool::_update_tablet_meta_worker_thread_callback() {
if (tablet_meta_info.storage_policy.empty()) {
tablet->tablet_meta()->mutable_tablet_schema()->set_is_in_memory(
tablet_meta_info.is_in_memory);
// The field is_in_memory should not be in the tablet_schema.
// it should be in the tablet_meta.
for (auto rowset_meta : tablet->tablet_meta()->all_mutable_rs_metas()) {
rowset_meta->tablet_schema()->set_is_in_memory(
tablet_meta_info.is_in_memory);
}
tablet->get_max_version_schema(wrlock)->set_is_in_memory(
tablet_meta_info.is_in_memory);
} else {
LOG(INFO) << "set tablet cooldown resource "
<< tablet_meta_info.storage_policy;
Expand Down
33 changes: 24 additions & 9 deletions be/src/common/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,6 @@ CONF_Bool(enable_vectorized_compaction, "true");
// whether enable vectorized schema change/material-view/rollup task.
CONF_Bool(enable_vectorized_alter_table, "true");

// serialize data version
CONF_mInt32(block_data_version, "-1");

// check the configuration of auto compaction in seconds when auto compaction disabled
CONF_mInt32(check_auto_compaction_interval_seconds, "5");

Expand Down Expand Up @@ -520,6 +517,13 @@ CONF_mInt64(memtable_max_buffer_size, "419430400");
CONF_Int64(load_process_max_memory_limit_bytes, "107374182400"); // 100GB
CONF_Int32(load_process_max_memory_limit_percent, "50"); // 50%

// If the memory consumption of load jobs exceed load_process_max_memory_limit,
// all load jobs will hang there to wait for memtable flush. We should have a
// soft limit which can trigger the memtable flush for the load channel who
// consumes lagest memory size before we reach the hard limit. The soft limit
// might avoid all load jobs hang at the same time.
CONF_Int32(load_process_soft_mem_limit_percent, "50");

// result buffer cancelled time (unit: second)
CONF_mInt32(result_buffer_cancelled_interval_time, "300");

Expand Down Expand Up @@ -581,7 +585,7 @@ CONF_mInt32(storage_flood_stage_usage_percent, "90"); // 90%
// The min bytes that should be left of a data dir
CONF_mInt64(storage_flood_stage_left_capacity_bytes, "1073741824"); // 1GB
// number of thread for flushing memtable per store
CONF_Int32(flush_thread_num_per_store, "2");
CONF_Int32(flush_thread_num_per_store, "6");
// number of thread for flushing memtable per store, for high priority load task
CONF_Int32(high_priority_flush_thread_num_per_store, "1");

Expand Down Expand Up @@ -725,7 +729,7 @@ CONF_mInt32(max_segment_num_per_rowset, "200");
// The connection timeout when connecting to external table such as odbc table.
CONF_mInt32(external_table_connect_timeout_sec, "30");

// The capacity of lur cache in segment loader.
// The capacity of lru cache in segment loader.
// Althought it is called "segment cache", but it caches segments in rowset granularity.
// So the value of this config should corresponding to the number of rowsets on this BE.
CONF_mInt32(segment_cache_capacity, "1000000");
Expand Down Expand Up @@ -804,15 +808,23 @@ CONF_mInt32(string_type_length_soft_limit_bytes, "1048576");
CONF_Validator(string_type_length_soft_limit_bytes,
[](const int config) -> bool { return config > 0 && config <= 2147483643; });

CONF_mInt32(jsonb_type_length_soft_limit_bytes, "1048576");

CONF_Validator(jsonb_type_length_soft_limit_bytes,
[](const int config) -> bool { return config > 0 && config <= 2147483643; });

// used for olap scanner to save memory, when the size of unused_object_pool
// is greater than object_pool_buffer_size, release the object in the unused_object_pool.
CONF_Int32(object_pool_buffer_size, "100");

// ParquetReaderWrap prefetch buffer size
CONF_Int32(parquet_reader_max_buffer_size, "50");
CONF_Bool(parquet_predicate_push_down, "true");
CONF_Int32(parquet_header_max_size, "8388608");
CONF_Bool(parquet_reader_using_internal, "false");
// Max size of parquet page header in bytes
CONF_mInt32(parquet_header_max_size_mb, "1");
// Max buffer size for parquet row group
CONF_mInt32(parquet_rowgroup_max_buffer_mb, "128");
// Max buffer size for parquet chunk column
CONF_mInt32(parquet_column_max_buffer_mb, "8");

// When the rows number reached this limit, will check the filter rate the of bloomfilter
// if it is lower than a specific threshold, the predicate will be disabled.
Expand Down Expand Up @@ -870,7 +882,10 @@ CONF_mInt64(nodechannel_pending_queue_max_bytes, "67108864");
CONF_mInt32(max_fragment_start_wait_time_seconds, "30");

// Temp config. True to use new file scan node to do load job. Will remove after fully test.
CONF_Bool(enable_new_load_scan_node, "false");
CONF_mBool(enable_new_load_scan_node, "false");

// Temp config. True to use new file scanner. Will remove after fully test.
CONF_mBool(enable_new_file_scanner, "false");

#ifdef BE_TEST
// test s3
Expand Down
3 changes: 3 additions & 0 deletions be/src/common/daemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ namespace doris {
bool k_doris_exit = false;

void Daemon::tcmalloc_gc_thread() {
// TODO All cache GC wish to be supported
while (!_stop_background_threads_latch.wait_for(std::chrono::seconds(10))) {
size_t used_size = 0;
size_t free_size = 0;
Expand All @@ -76,6 +77,8 @@ void Daemon::tcmalloc_gc_thread() {
&used_size);
MallocExtension::instance()->GetNumericProperty("tcmalloc.pageheap_free_bytes", &free_size);
size_t alloc_size = used_size + free_size;
LOG(INFO) << "tcmalloc.pageheap_free_bytes " << free_size
<< ", generic.current_allocated_bytes " << used_size;

if (alloc_size > config::tc_use_memory_min) {
size_t max_free_size = alloc_size * config::tc_free_memory_rate / 100;
Expand Down
Loading