Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from datafuselabs:main #44

Merged
merged 1,429 commits into from
Apr 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1429 commits
Select commit Hold shift + click to select a range
98652d1
refactor: Use CrudMgr to impl ConnectionMgr (#15003)
drmingdrmer Mar 19, 2024
7171319
fix: fix incorrect agg spill in new agg hashtable (#14995)
Freejww Mar 19, 2024
e44d212
chore: max_running_queries from 8 to 0, disable the max running queri…
BohuTANG Mar 19, 2024
a892f0a
refactor(query): add copy into location physical plan (#15010)
zhang2014 Mar 19, 2024
657cfdd
chore: tweak deletion batch size & log messages (#15005)
dantengsky Mar 19, 2024
623b536
refactor(query): csv reader support prefetch (#14983)
youngsofun Mar 19, 2024
d924b68
chore: rollback partial tests (#15015)
JackTan25 Mar 19, 2024
917df09
chore: add benchmark for loading data on cloud (#15017)
everpcpc Mar 19, 2024
25dbf81
chore: add a setting for inlist to join (#15024)
xudong963 Mar 19, 2024
31cdf38
chore: unify TIdent key format (#15025)
drmingdrmer Mar 19, 2024
c85eec1
chore: the fist http resp wait longer to tolerant old bendsql clients…
youngsofun Mar 19, 2024
ed740cb
refactor: alter view only need to modify table option (#15012)
TCeason Mar 19, 2024
9b47de7
chore: add log about presign elapsed (#14990)
flaneur2020 Mar 19, 2024
2f64773
chore(query): support domain contains in string type (#15023)
sundy-li Mar 20, 2024
1416a9c
chore: fix sql seq for benchmark report (#15030)
everpcpc Mar 20, 2024
0505274
chore: print query detail for bench & fix prepare database for load b…
everpcpc Mar 20, 2024
74d540a
feat(query): check view's inner table privilege when create or alter …
TCeason Mar 20, 2024
03a6257
chore: default enalbe merge into (#15034)
BohuTANG Mar 20, 2024
fec4dab
refactor: truncate support build pipeline (#15027)
zhyass Mar 20, 2024
444e052
refactor: move id-generator from crate meta-api to meta-app (#15036)
drmingdrmer Mar 20, 2024
9334956
refactor: remove innecessary serde (#15037)
drmingdrmer Mar 20, 2024
d97ffa0
chore: run load test with new label (#15035)
everpcpc Mar 20, 2024
ac27ee7
refactor(query): use scan table physical plan for copy into table fro…
zhang2014 Mar 20, 2024
4c852e2
refactor: remove innecessary serde (#15040)
drmingdrmer Mar 20, 2024
31a63b1
feat: add buffer for spiller (#15021)
xudong963 Mar 20, 2024
89cdf6b
refactor: remove innecessary serde (#15042)
drmingdrmer Mar 20, 2024
8b51fa8
chore(query): add spill profile for join (#15044)
zhang2014 Mar 20, 2024
f281dc3
chore(http): tune log on getting /v1/query/:id/kill (#14987)
flaneur2020 Mar 20, 2024
22362e6
refactor: spead up csv reader. (#15043)
youngsofun Mar 20, 2024
722ae22
fix: wrong row id (#15018)
youngsofun Mar 20, 2024
4a55ea4
chore: default enable aggregate/sort/join spill (#15038)
BohuTANG Mar 20, 2024
83c68ae
chore: do not drop database first for bench (#15041)
everpcpc Mar 20, 2024
c4dcf91
feat: add show views & desc view (#14926)
blackstar-baba Mar 20, 2024
341fb34
feat: support pagination on task_history (#15047)
ZhiHanZ Mar 21, 2024
bcee197
chore(query): improve group (#15031)
sundy-li Mar 21, 2024
89d8135
chore(planner): fix invalid aggregate physical plan (#15046)
Dousir9 Mar 21, 2024
83eb08c
feat(ast): add parser for template sql (#15026)
andylokandy Mar 21, 2024
b13785d
chore: adjust the default value for table lock timeout (#15055)
zhyass Mar 21, 2024
d31c14b
refactor(query): remove metrics if moved to the profile (#15054)
zhang2014 Mar 21, 2024
cc44990
fix: trim leading '/'s for files specified in copy opt (#15056)
dantengsky Mar 21, 2024
beb5d38
chore: use Tenant::new_literal() and new_nonempty() to avoid creating…
drmingdrmer Mar 21, 2024
42375d6
refactor: reduce hash join probe spilled files (#14942)
xudong963 Mar 21, 2024
6485d5c
refactor: separate key and value: add `BackgroundTaskCreator` (#15063)
drmingdrmer Mar 22, 2024
a5913cf
refactor: SHOW GRANTS should not display drop on table/database (#14931)
TCeason Mar 22, 2024
e061245
refactor: remove serde from CatalogId and CatalogNameIdent (#15068)
drmingdrmer Mar 22, 2024
046ba6d
refactor: remove serde from kvapi::Key types (#15070)
drmingdrmer Mar 22, 2024
57de821
fix: stream get wrong result if change tracking is changed (#15072)
zhyass Mar 22, 2024
935f57f
feat(query): Support query match inverted index (#14997)
b41sh Mar 23, 2024
18167a1
fix(ast): fix incorrect display for ast (part 1) (#15069)
andylokandy Mar 23, 2024
171ada8
fix: privilege check for insert statement (#15075)
SkyFan2002 Mar 23, 2024
9399794
fix(query): fix attach_query_str (#15066)
sundy-li Mar 23, 2024
fb730d4
refactor: use type `Tenant` for `BackgroundJobIdent.tenant` (#15074)
drmingdrmer Mar 23, 2024
ebaf2ba
fix: fix plan_sql error can not write query_log (#15077)
BohuTANG Mar 23, 2024
eeed57b
refactor: BackgroundTaskIdent use Tenant (#15080)
drmingdrmer Mar 23, 2024
707396d
refactor: make the block pruning more clear (#15079)
BohuTANG Mar 24, 2024
c3b148d
refactor: change PartInfo is_lazy to LazyLevel (#15081)
BohuTANG Mar 24, 2024
3a50f2c
fix: improve error hints when select * from xx.yy (#14663)
zhenglin-charlie-li Mar 24, 2024
00130fb
fix: Support udf for copy table (#15078)
JackTan25 Mar 25, 2024
4cd499d
feat: Implement concurrent stat (#15083)
Xuanwo Mar 25, 2024
43fb298
feat(metasrv): add network metrics rpc_delay_ms (#15084)
everpcpc Mar 25, 2024
350ebbc
chore(ci): fix benchmark job dependency (#15087)
everpcpc Mar 25, 2024
f19fd74
chore: remove rebinding merge into for insert-only (#15086)
xudong963 Mar 25, 2024
ae2b68d
fix(ast): fix incorrect display for ast (part 2) (#15076)
andylokandy Mar 26, 2024
fcf5ba8
fix: make block data type be consistent with hash method (#15089)
xudong963 Mar 26, 2024
40d2b84
feat: create stream at navigation point (#15062)
zhyass Mar 26, 2024
2e37385
fix: add prql description (#15091)
ncuwaln Mar 26, 2024
9c50ece
feat(query): implement st_makeline() function (#15059)
kkk25641463 Mar 26, 2024
8e730a7
fix: sqllogicaltest datatype mismatch in `expr_in_window.test` (#15090)
c8ef Mar 26, 2024
a9461c0
chore: clean z3 and meta dir (#15098)
zhyass Mar 27, 2024
e1f225a
refactor: `QueryFragmentsPlanPacket` should include just setting chan…
drmingdrmer Mar 27, 2024
e842a64
fix: schema mismatch in `named_window_basic.test` (#15099)
c8ef Mar 27, 2024
350d24f
feat(planner): improve push down filter join (#14872)
Dousir9 Mar 27, 2024
1f75650
refactor(executor): refactor queries executor to prepare (#14965)
dqhl76 Mar 27, 2024
1861718
feat: support otel context propagation for databend-query (#15096)
ZhiHanZ Mar 27, 2024
d4ff2f0
fix: test duplicate in `window_basic.test` (#15100)
c8ef Mar 27, 2024
3d52b3e
feat(query): add query_result_cache_min_execute_secs (#15101)
sundy-li Mar 27, 2024
826e531
refactor: show grants support display ObjectId (#15064)
TCeason Mar 27, 2024
78d26b2
feat(query): Support hook refresh inverted index after insert (#15094)
b41sh Mar 28, 2024
9c33113
fix(query): verify_privilege need check privilege one by one (#15105)
TCeason Mar 28, 2024
1541158
refactor: replace `NonEmptyString` with `Tenant` (#15103)
drmingdrmer Mar 28, 2024
470dad8
chore(executor): remove duplicate profile statistics (#15115)
zhang2014 Mar 28, 2024
742dfef
refactor: replace String with Tenant (#15119)
drmingdrmer Mar 29, 2024
df95857
feat: time travel support at stream (#15116)
zhyass Mar 29, 2024
b65a10d
chore(query): errorcode use snake shape format (#15122)
TCeason Mar 29, 2024
982c219
chore: treat seq as place holder when navigate (#15124)
zhyass Mar 29, 2024
87713d1
chore(planner): make optimize function async (#15121)
Dousir9 Mar 29, 2024
29f6bde
feat(query): implement st_geometryfromewkb function (#15118)
kkk25641463 Mar 29, 2024
7452ffc
feat: refactor ndjson input format. (#14943)
youngsofun Mar 29, 2024
fa252c8
feat(script): add script compiler (#15113)
andylokandy Mar 29, 2024
9c5f249
chore: adjust stack size of flaky ut (#15130)
SkyFan2002 Mar 29, 2024
e5efdb7
refactor: use TIdent to unify kvapi key def for MaskPolicyTableIdList…
drmingdrmer Mar 30, 2024
b721dd0
chore: to avoid UT stackoverflow, disable async_backtrace of `TypeChe…
dantengsky Mar 30, 2024
88a884e
refactor: remove count-table for tenant. It is not used at all (#15134)
drmingdrmer Mar 30, 2024
e48ca07
feat: support multi-table insert (#15002)
SkyFan2002 Mar 30, 2024
dac261a
refactor: use Tenat in VirtualColumnNameIdent (#15135)
drmingdrmer Mar 30, 2024
f8494c8
chore(query): refactor new transform partition bucket for new aggrega…
Freejww Mar 30, 2024
79d8329
feat(query): to_timestamp support parser string to ts without timezon…
TCeason Mar 30, 2024
9d996c5
refactor(query): record physical plan level metrics into profiling lo…
zhang2014 Mar 30, 2024
34ce8e3
feat: Enhance show views (#15109)
blackstar-baba Mar 31, 2024
ccf25ae
refactor: define ShareEndpointIdent with TIdent (#15136)
drmingdrmer Mar 31, 2024
7d3b367
fix(query):user option DEFAULT_ROLE ignore ascii_case (#15137)
TCeason Mar 31, 2024
3f47a2a
refactor: add peer info to network error context (#15139)
drmingdrmer Mar 31, 2024
4e894ae
fix(query): tuple field name can not contain special char (#15126)
TCeason Mar 31, 2024
cab23ee
refactor: add Tenant to ShareConsumer (#15142)
drmingdrmer Mar 31, 2024
e402065
fix(query): new agg hashtable hung with little data on singleton (#15…
Freejww Apr 1, 2024
d8f0758
chore: enable inlist to join in cluster (#15108)
xudong963 Apr 1, 2024
7891778
chore: remove no longer used message encoding benchmark (#15148)
dantengsky Apr 1, 2024
f5478ff
chore(query): fix order for scalar cmp with null (#15145)
sundy-li Apr 1, 2024
ec9a2af
chore: client should not depend on the final response. (#15146)
youngsofun Apr 2, 2024
fdc4e53
chore: fix typos (#15153)
Dousir9 Apr 2, 2024
da87e6e
chore(query): use i64 min max value as histogram bucket min max limit…
zhang2014 Apr 2, 2024
4107bcf
refactor(executor): globalize `QueriesPipelineExecutor` creation meth…
dqhl76 Apr 2, 2024
648b1bd
refactor(planner): remove statistics collection from bind phase (#15112)
Dousir9 Apr 2, 2024
ca8c20b
refactor(query): only intercept dml and queries in queries queue (#15…
zhang2014 Apr 2, 2024
f1fd67a
feat: support expr in values clause of multi table insert (#15147)
SkyFan2002 Apr 2, 2024
a91361d
refactor: user can execute show grants query itself (#15149)
TCeason Apr 3, 2024
7e9b835
chore(query): turn on new agg hashtable (#15155)
Freejww Apr 3, 2024
3267415
chore(query): row-fetcher-cache (#15159)
sundy-li Apr 3, 2024
aee76ef
chore: add CopyInto to query queue (#15160)
BohuTANG Apr 3, 2024
c16a16b
feat(query): implement ST_GEOMFROMGEOHASH (#15156)
kkk25641463 Apr 3, 2024
79fb0d1
chore: refine the query/02_function to query/functions (#15161)
BohuTANG Apr 3, 2024
fecea50
refactor: generate inverted indexs for each blocks (#15150)
b41sh Apr 3, 2024
676f337
fix(query): show query with name consider quote (#15138)
TCeason Apr 3, 2024
069f34d
chore: refine the query queue is_heavy_action func (#15166)
BohuTANG Apr 3, 2024
b8f445b
chore: fix window plan in lazy topn (#15165)
sundy-li Apr 3, 2024
b047b10
Update audit.toml: RUSTSEC-2024-0332
BohuTANG Apr 5, 2024
efadb34
feat(query): show create table support display inverted index (#15169)
b41sh Apr 5, 2024
c68d2fb
chore(deps): bump h2 from 0.3.24 to 0.3.26 (#15172)
dependabot[bot] Apr 5, 2024
94788f8
feat(query): support CHANGES clause (#15163)
zhyass Apr 7, 2024
d1cc550
chore(query): fix boolean type comparison (#15171)
Dousir9 Apr 7, 2024
7ab8c27
fix: forbid end at stream syntax (#15173)
zhyass Apr 7, 2024
1ca93c8
refactor: remove dependency on parquet2: Part I (#15158)
SkyFan2002 Apr 7, 2024
7442f6a
refactor: use `Tenant` for `ListBackgroundTasksReq` (#15176)
drmingdrmer Apr 8, 2024
199dc35
feat: add inverted index pruning status (#15175)
BohuTANG Apr 8, 2024
33ea94f
feat: Support to add random seed on random engine (#15167)
blackstar-baba Apr 8, 2024
31dfd65
feat(planner): push down not in filter expression (#15168)
Dousir9 Apr 8, 2024
3aeb2d0
refactor: move TIdent into separate files (#15179)
drmingdrmer Apr 8, 2024
b331056
chore: return inserted rows for each table in multi table insert (#15…
SkyFan2002 Apr 8, 2024
955b390
fix(storage): Don't return empty credential while loading failed (#15…
Xuanwo Apr 8, 2024
b26e3e2
feat: time travel support at offset (#15177)
zhyass Apr 8, 2024
4b8cd16
fix(query): Signature not match while query has upper cases (#15183)
Xuanwo Apr 8, 2024
7a4cb49
Update README.md
BohuTANG Apr 8, 2024
e6bd558
feat(query): implement ST_GEOMPOINTFROMGEOHASH (#15182)
kkk25641463 Apr 9, 2024
55a5e03
chore(executor): add time limit daemon for queries executor (#15174)
dqhl76 Apr 9, 2024
3e5e310
refactor(query): remove useless code (system.tracing) (#15185)
zhang2014 Apr 9, 2024
6c66f01
chore(query): max_running_queries from 0 to 8, enable the max running…
zhang2014 Apr 9, 2024
993ba75
chore(query): add session_running_acquired_queries metric (#15193)
zhang2014 Apr 9, 2024
23ea5bd
refactor: explain merge into (#15195)
xudong963 Apr 9, 2024
d72f6aa
feat(rbac): drop role will transfer role owns object to account_admin…
TCeason Apr 9, 2024
c2e3ee6
fix(query): set setting case insensitive (#15199)
TCeason Apr 9, 2024
614c0bc
fix(query): show grants panic when role/user has immute db/table priv…
TCeason Apr 10, 2024
5d6069a
chore(executor): add end_of_stream flag for executor stream (#15202)
zhang2014 Apr 10, 2024
02e930d
chore(planner): refine explain read size (#15204)
Dousir9 Apr 10, 2024
24c14ff
feat(query): implement ST_MAKEPOLYGON (#15194)
kkk25641463 Apr 10, 2024
515f99e
refactor: simplify `DatabaseFactory`, just static dispatch (#15203)
drmingdrmer Apr 10, 2024
a883bc0
feat: distinguish early close from kill/cancel with new LogType::Clos…
youngsofun Apr 10, 2024
14ff386
fix: geos-sys compile error #15200 (#15209)
drmingdrmer Apr 11, 2024
0a00792
refactor(query): move api and metrics to servers mod (#15210)
zhang2014 Apr 11, 2024
4c27f29
chore: change parquet_fast_read_bytes setting from 0 to 16MB (#15212)
BohuTANG Apr 11, 2024
80778f0
chore(planner): fix decorrelate exists subquery (#15208)
Dousir9 Apr 11, 2024
e557a7d
refactor: add view system tables (#15184)
TCeason Apr 11, 2024
a2bb0b5
fix(query): alter modify col comment need modify when type not modify…
TCeason Apr 11, 2024
bb4464b
chore: old op LogicalGet modify to new op name Scan (#15222)
TracyZYJ Apr 11, 2024
41ba9d1
feat: add EXECUTE IMMEDIATE statement (#15144)
andylokandy Apr 11, 2024
270b2f9
chore(query): parser error need to log error (#15219)
sundy-li Apr 12, 2024
a4de86c
refactor: introduce `UninitTenant` and `TIdentRaw` (#15207)
drmingdrmer Apr 12, 2024
d8e8220
fix(query): fix negative session_running_acquired_queries (#15223)
zhang2014 Apr 12, 2024
9925143
chore: vacuum drop table for external location table (#15220)
BohuTANG Apr 12, 2024
9b1887a
chore(query): fix nullable array domain (#15224)
sundy-li Apr 12, 2024
2a4febd
feat(http): get client ip from headers (#15205)
flaneur2020 Apr 12, 2024
2071b02
chore(query): add query queued duration for query log (#15225)
zhang2014 Apr 12, 2024
6453c48
feat(query): support alter table comment (#15227)
TCeason Apr 13, 2024
13afda7
fix: fix map get return double nested nullable (#15230)
ariesdevil Apr 14, 2024
e8f88e7
refactor: define DatabaseNameIdent with TIdent (#15235)
drmingdrmer Apr 15, 2024
a359fe3
refactor: ScalarVisitor refactor push_down_prewhere (#15215)
TCeason Apr 15, 2024
3305810
refactor: replace String with Tenant in xxxPlan (#15240)
drmingdrmer Apr 16, 2024
1c5286b
feat(query): match function support multiple fields with boost (#15196)
b41sh Apr 16, 2024
9299b9b
feat: support insert with cte (#15241)
xudong963 Apr 16, 2024
1b5fa9d
feat: add setting `script_max_steps` (#15244)
andylokandy Apr 16, 2024
a4fb4f7
feat: atomic CTAS (#15186)
dantengsky Apr 16, 2024
68a51c4
refactor: avoid using PREFIX directly. use method to build list-prefi…
drmingdrmer Apr 17, 2024
38b4fb7
chore(query): remove useless function map:get (#15245)
sundy-li Apr 17, 2024
939f602
refactor: remove unused `list_all_tables()` (#15251)
drmingdrmer Apr 17, 2024
8083914
fix: show locks in current tenant (#15252)
zhyass Apr 17, 2024
3427565
refactor: remove kvapi::Key impl for String (#15253)
drmingdrmer Apr 17, 2024
f0cdb98
feat(query): integrate "like" to filter execution (#15233)
Dousir9 Apr 17, 2024
d3a89f7
feat(query): add user option: disabled (#15249)
TCeason Apr 17, 2024
239a592
chore: update sqllogictests crate to 0.19.1 (#15242)
finchxx Apr 18, 2024
d14cb55
feat(query): Inverted index support set filters and index record opti…
b41sh Apr 18, 2024
1e82de9
fix: solve some inconsistencies between code and comments (#15229)
YichiZhang0613 Apr 18, 2024
f9d2b79
feat: add sequence meta api (#15247)
lichuang Apr 19, 2024
2777837
feat(query): add new setting parse_datetime_ignore_remainder. (#15260)
TCeason Apr 19, 2024
ab82cf8
feat: http handler response add field `has_result_set` and state `Sta…
youngsofun Apr 19, 2024
034a37e
chore(query): support like push down not (#15268)
Dousir9 Apr 19, 2024
1c46372
chore(executor): add node level error tracking (#15239)
dqhl76 Apr 19, 2024
4b7d767
refactor: grant_ownership retry logic (#15275)
TCeason Apr 19, 2024
701b1d9
feat: support cte in update selection (#15276)
xudong963 Apr 19, 2024
d440030
refactor: Extract `kvapi::KeyCodec` trait from `kvapi::Key` (#15262)
drmingdrmer Apr 19, 2024
68b7d2a
refactor: Introduce generic parameter `N` to `TIdent` (#15271)
drmingdrmer Apr 20, 2024
9e0532a
refactor: define `ShareConsumer` with `TIdent` (#15280)
drmingdrmer Apr 20, 2024
1544347
fix: fix delete from subquery and one more condition bug (#15279)
lichuang Apr 20, 2024
b1b622d
feat: impl create dynamic table sql parser and planner (#15250)
zhyass Apr 20, 2024
988d0f3
chore(query): refine set sql_dialect error message (#15282)
Dousir9 Apr 21, 2024
ea95d11
chore(query): bump arrow-udf to extra lib (#15283)
sundy-li Apr 21, 2024
36329df
feat: support cte in delete (#15284)
xudong963 Apr 22, 2024
1125138
refactor: define VirtualColumnNameIdent with TIdent (#15285)
drmingdrmer Apr 22, 2024
7945a6b
refactor: define DbIdListKey with TIdent, and rename it to DatabaseId…
drmingdrmer Apr 22, 2024
bd857db
chore(planner): improve delete explain (#15290)
Dousir9 Apr 22, 2024
d21a3b9
feat(query): implement ST_ASGEOJSON (#15214)
kkk25641463 Apr 22, 2024
316b635
feat(query): support `map_keys` and `map_values` function (#15291)
b41sh Apr 22, 2024
0c916a5
chore: Enhance Flexibility of Dynamic Table Creation by Allowing Opti…
zhyass Apr 23, 2024
f8b6190
chore: add license to cargo.toml (#15299)
BohuTANG Apr 23, 2024
e5e2d5c
fix(query): fix udf name with upper case letters (#15300)
b41sh Apr 23, 2024
0d819e4
refactor: define TenantQuotaIdent with TIdent (#15289)
drmingdrmer Apr 23, 2024
1815241
chore(planner): fix can_filter_null (#15298)
Dousir9 Apr 23, 2024
c60f157
chore: improve distributed plan (#15296)
xudong963 Apr 23, 2024
1877668
chore(query): simplify stage list (#15303)
sundy-li Apr 23, 2024
006c7bc
chore: enable distributed optimization for subquery in delete (#15288)
xudong963 Apr 23, 2024
bf12072
feat(query): implement TO_GEOMETRY/TRY_TO_GEOMETRY function (#15302)
kkk25641463 Apr 23, 2024
0d8bd45
chore: correct stream error message (#15309)
zhyass Apr 23, 2024
ba9b107
feat(query): 14925, support udf wasm (#15107)
shamb0 Apr 23, 2024
da63bb6
fix: don't constant fold giant expr (#15311)
andylokandy Apr 23, 2024
541b8e9
fix(query): fix decimal op loss precision (#15313)
sundy-li Apr 23, 2024
83b1ea2
fix(query): NDJSON copy into allow cast bool and number to string (#1…
b41sh Apr 23, 2024
8c34082
chore: tune auto-compact parameters triggered by insertions (#15261)
dantengsky Apr 23, 2024
9c43f7c
fix: incorrect overlap checking (replace into) (#15315)
dantengsky Apr 24, 2024
8246357
chore(query): improve delete pruner (#15316)
sundy-li Apr 24, 2024
1fe1de3
refactor: Define TableLockKey with TIdent (#15319)
drmingdrmer Apr 24, 2024
c050694
chore(planner): fix merge into statistics (#15320)
Dousir9 Apr 24, 2024
3f3978f
chore(planner): add disable merge into join reorder settings (#15322)
Dousir9 Apr 24, 2024
ce45b5c
feat(query): top k syntax support (#15318)
TCeason Apr 24, 2024
c1139ee
fix(typo): refering -> referring (#15323)
andylokandy Apr 24, 2024
d16342f
refactor: TIdent add a flag to indicate if the tenant should be encod…
drmingdrmer Apr 24, 2024
2e12e0b
chore: fix `RulePushDownLimitWindow` id (#15326)
xudong963 Apr 24, 2024
3d18e3e
refactor: define BackgroundJobIdIdent with TIdent, with HAS_TENANT di…
drmingdrmer Apr 24, 2024
05e702f
refactor: http handler check has_result_set() before get schema of pl…
youngsofun Apr 25, 2024
29407ce
fix: insert Plan should not have schema. (#15330)
youngsofun Apr 25, 2024
b8996f5
feat(query): implement st_asewkb/st_aswkb/st_asewkt/st_aswkt/st_geoha…
kkk25641463 Apr 25, 2024
3ab7aaf
chore(query): add merge ratio in sort spill (#15332)
sundy-li Apr 25, 2024
6abee1b
refactor: Define DataMaskIdIdent with TIdent (#15331)
drmingdrmer Apr 25, 2024
97277ad
refactor: add right bound when listing expired keys to avoid unnecess…
drmingdrmer Apr 25, 2024
82c3ced
chore: refine runtime filter log (#15335)
xudong963 Apr 25, 2024
f26dba0
refactor: Upgrade Openraft to 0.9.7 (#15339)
drmingdrmer Apr 25, 2024
88331f0
feat(query): support with clause in copy into (#15343)
sundy-li Apr 26, 2024
8e67459
feat(query): inverted index support json type (#15267)
b41sh Apr 26, 2024
f2a49de
chore: add err message to help capture new agg ht hang (#15344)
Freejww Apr 26, 2024
0b23dcb
refactor: improve install-snapshot performance (#15345)
drmingdrmer Apr 26, 2024
fb31f82
chore: enhance runtime filter log (#15350)
xudong963 Apr 27, 2024
7edfa1f
feat(query): support compute quota feature (#15336)
zhang2014 Apr 27, 2024
d8ddbec
fix(executor): queries exeuctor points calc incorrectly (#15349)
dqhl76 Apr 27, 2024
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
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
20 changes: 19 additions & 1 deletion .cargo/audit.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,23 @@ ignore = [
"RUSTSEC-2021-0139",
# buf_redux
# buf_redux is Unmaintained
"RUSTSEC-2023-0028"
"RUSTSEC-2023-0028",
# rsa
# Marvin Attack: potential key recovery through timing sidechannels
"RUSTSEC-2023-0071",
# mach
# mach is Unmaintained
"RUSTSEC-2020-0168",
# atty
# Potential unaligned read
"RUSTSEC-2021-0145",
# borsh
# Parsing borsh messages with ZST which are not-copy/clone is unsound
"RUSTSEC-2023-0033",
# yaml-rust is unmaintained.
"RUSTSEC-2024-0320",
# Degradation of service in h2 servers with CONTINUATION Flood(Wait for tonic to fix)
"RUSTSEC-2024-0332",
# `rustls::ConnectionCommon::complete_io` could fall into an infinite loop based on network input
"RUSTSEC-2024-0336"
]
3 changes: 1 addition & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
docker/** -text
scripts/** -text
website/databend/** -text
scripts/** -text
4 changes: 0 additions & 4 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@
/src/common/http/ @datafuselabs/databend-api-reviewer
/src/query/service/src/servers/ @datafuselabs/databend-api-reviewer

# Website
/website/ @datafuselabs/databend-document-reviewer
/docs/ @datafuselabs/databend-document-reviewer

# Tool
/docker/ @datafuselabs/databend-tool-reviewer
/scripts/ @datafuselabs/databend-tool-reviewer
Expand Down
23 changes: 20 additions & 3 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/
I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/

## Summary

Summary about this PR
_Briefly describe what this PR aims to solve. Include background context that will help reviewers understand the purpose of the PR._

- Closes #issue
- Fixes #[Link the issue here]

## Tests

- [ ] Unit Test
- [ ] Logic Test
- [ ] Benchmark Test
- [ ] No Test - _Explain why_

## Type of change

- [ ] Bug Fix (non-breaking change which fixes an issue)
- [ ] New Feature (non-breaking change which adds functionality)
- [ ] Breaking Change (fix or feature that could cause existing functionality not to work as expected)
- [ ] Documentation Update
- [ ] Refactoring
- [ ] Performance Improvement
- [ ] Other (please describe):
2 changes: 1 addition & 1 deletion .github/actions/artifact_download/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ runs:
fi
echo "path=${path}" >> $GITHUB_OUTPUT

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
if: env.RUNNER_PROVIDER == 'github'
with:
name: ${{ env.BUILD_PROFILE }}-${{ inputs.sha }}-${{ inputs.target }}-${{ inputs.category }}
Expand Down
6 changes: 5 additions & 1 deletion .github/actions/artifact_failure/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ runs:
docker logs "$line" > .databend/docker/"$line".log
done

touch nohup.out
cp nohup.out .databend/nohup.out

mkdir -p target
find -type d -name .databend -print0 | xargs -0 tar -zcf target/failure-${{ inputs.name }}.tar.gz
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: ${{ inputs.name }}
path: target/failure-${{ inputs.name }}.tar.gz
4 changes: 2 additions & 2 deletions .github/actions/artifact_upload/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ runs:

- name: Upload artifact to github
if: env.RUNNER_PROVIDER == 'github'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.BUILD_PROFILE }}-${{ inputs.sha }}-${{ inputs.target }}-${{ inputs.category }}
path: ${{ steps.info.outputs.path }}/databend-*

- name: Upload open-sharing to github
if: env.RUNNER_PROVIDER == 'github' && inputs.category == 'default'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.BUILD_PROFILE }}-${{ inputs.sha }}-${{ inputs.target }}-${{ inputs.category }}
path: ${{ steps.info.outputs.path }}/open-sharing
Expand Down
26 changes: 21 additions & 5 deletions .github/actions/benchmark_cloud/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,23 @@ runs:
- name: Install script dependencies
shell: bash
run: |
sudo apt-get update -y
sudo apt install -y python3
sudo apt-get update -yq
sudo apt-get install -yq python3

- name: Prepare
working-directory: benchmark/clickbench
shell: bash
id: prepare
env:
BENDSQL_DSN: "databend://${{ inputs.cloud_user }}:${{ inputs.cloud_password }}@${{ inputs.cloud_gateway }}:443"
run: |
if [[ "${{ inputs.dataset }}" == "load" ]]; then
echo "database=load_test_${{ inputs.run_id }}" >> $GITHUB_OUTPUT
echo "tries=1" >> $GITHUB_OUTPUT
else
echo "database=clickbench" >> $GITHUB_OUTPUT
echo "tries=3" >> $GITHUB_OUTPUT
fi

- name: Run Benchmark
working-directory: benchmark/clickbench
Expand All @@ -48,7 +63,8 @@ runs:
BENCHMARK_DATASET: ${{ inputs.dataset }}
BENCHMARK_SIZE: ${{ inputs.size }}
BENCHMARK_VERSION: ${{ inputs.version }}
BENCHMARK_DATABASE: clickbench
BENCHMARK_DATABASE: ${{ steps.prepare.outputs.database }}
BENCHMARK_TRIES: ${{ steps.prepare.outputs.tries }}
CLOUD_USER: ${{ inputs.cloud_user }}
CLOUD_PASSWORD: ${{ inputs.cloud_password }}
CLOUD_GATEWAY: ${{ inputs.cloud_gateway }}
Expand Down Expand Up @@ -76,9 +92,9 @@ runs:
mv result.json result-${{ inputs.dataset }}-cloud-${{ inputs.size }}.json

- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: benchmark-${{ inputs.dataset }}
name: benchmark-${{ inputs.dataset }}-${{ inputs.size }}
path: benchmark/clickbench/result-${{ inputs.dataset }}-cloud-${{ inputs.size }}.json

- name: Remove warehouse
Expand Down
16 changes: 4 additions & 12 deletions .github/actions/benchmark_local/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ runs:
- name: Install script dependencies
shell: bash
run: |
sudo apt update -y
sudo apt install -y python3
sudo apt-get update -yq
sudo apt-get install -yq python3

- name: Run Benchmark
working-directory: benchmark/clickbench
Expand Down Expand Up @@ -54,15 +54,7 @@ runs:
mv result.json result-${{ inputs.dataset }}-local.json

- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: benchmark-${{ inputs.dataset }}
name: benchmark-${{ inputs.dataset }}-local
path: benchmark/clickbench/result-${{ inputs.dataset }}-local.json

- name: Clean test data
working-directory: benchmark/clickbench
if: always()
continue-on-error: true
shell: bash
run: |
bendsql <"${{ inputs.dataset }}/clear.sql"
8 changes: 5 additions & 3 deletions .github/actions/build_bindings_python/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,18 @@ runs:
rust-toolchain: ${{ steps.toolchain.outputs.RUST_TOOLCHAIN }}
working-directory: src/bendpy
target: ${{ inputs.target }}
manylinux: auto
manylinux: "2_28"
# Keep them in one line due to https://github.com/PyO3/maturin-action/issues/153
rustup-components: rust-std rustfmt
args: ${{ steps.opts.outputs.BUILD_ARGS }}
docker-options: --env RUSTC_WRAPPER=sccache --env SCCACHE_GCS_RW_MODE=READ_WRITE --env SCCACHE_GCS_BUCKET=databend-ci --env SCCACHE_GCS_KEY_PREFIX=cache/sccache/
before-script-linux: ../../scripts/setup/dev_setup.sh -yb
before-script-linux: |
unset RUSTC_WRAPPER
../../scripts/setup/dev_setup.sh -yb

- name: Run tests
working-directory: src/bendpy
if: startsWith(inputs.target, 'x86_64-')
if: endsWith(inputs.target, '-gnu')
shell: bash
run: |
pip install dist/*.whl
Expand Down
18 changes: 11 additions & 7 deletions .github/actions/build_linux/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ runs:
artifacts="meta,metactl,query,sqllogictests"
for artifact in ${artifacts//,/ }; do
echo "==> building databend-$artifact ..."
cargo -Zgitoxide=fetch,shallow-index,shallow-deps build --target ${{ inputs.target }} --features ${{ inputs.features }} --bin databend-$artifact
cargo -Zgitoxide=fetch -Zgit=shallow-index,shallow-deps build --target ${{ inputs.target }} --features ${{ inputs.features }} --bin databend-$artifact
done
cargo -Zgitoxide=fetch,shallow-index,shallow-deps build --target ${{ inputs.target }} --features ${{ inputs.features }} --bin open-sharing
cargo -Zgitoxide=fetch -Zgit=shallow-index,shallow-deps build --target ${{ inputs.target }} --features ${{ inputs.features }} --bin open-sharing
ls -lh ./target/${{ inputs.target }}/${{ env.BUILD_PROFILE }}/databend-*

- name: Build Debug for specific artifacts
Expand All @@ -82,7 +82,7 @@ runs:
artifacts="${{ inputs.artifacts }}"
for artifact in ${artifacts//,/ }; do
echo "==> building databend-$artifact ..."
cargo -Zgitoxide=fetch,shallow-index,shallow-deps build --target ${{ inputs.target }} --features ${{ inputs.features }} --bin databend-$artifact
cargo -Zgitoxide=fetch -Zgit=shallow-index,shallow-deps build --target ${{ inputs.target }} --features ${{ inputs.features }} --bin databend-$artifact
done
ls -lh ./target/${{ inputs.target }}/${{ env.BUILD_PROFILE }}/databend-$artifact

Expand All @@ -93,7 +93,7 @@ runs:
artifacts="meta,metactl,query,sqllogictests"
for artifact in ${artifacts//,/ }; do
echo "==> building databend-$artifact ..."
cargo -Zgitoxide=fetch,shallow-index,shallow-deps build --target ${{ inputs.target }} --features ${{ inputs.features }} --release --bin databend-$artifact
cargo -Zgitoxide=fetch -Zgit=shallow-index,shallow-deps build --target ${{ inputs.target }} --features ${{ inputs.features }} --release --bin databend-$artifact
done
ls -lh ./target/${{ inputs.target }}/${{ env.BUILD_PROFILE }}/databend-$artifact

Expand All @@ -104,12 +104,16 @@ runs:
artifacts="${{ inputs.artifacts }}"
for artifact in ${artifacts//,/ }; do
echo "==> building databend-$artifact ..."
cargo -Zgitoxide=fetch,shallow-index,shallow-deps build --target ${{ inputs.target }} --features ${{ inputs.features }} --release --bin databend-$artifact
cargo -Zgitoxide=fetch -Zgit=shallow-index,shallow-deps build --target ${{ inputs.target }} --features ${{ inputs.features }} --release --bin databend-$artifact
done
ls -lh ./target/${{ inputs.target }}/${{ env.BUILD_PROFILE }}/databend-$artifact

- shell: bash
run: readelf -p .comment ./target/${{ inputs.target }}/${{ env.BUILD_PROFILE }}/databend-query
- name: Check Binary Info
shell: bash
continue-on-error: true
run: |
readelf -p .comment ./target/${{ inputs.target }}/${{ env.BUILD_PROFILE }}/databend-query
ldd ./target/${{ inputs.target }}/${{ env.BUILD_PROFILE }}/databend-query

# - name: Compress Binaries with UPX
# if: env.BUILD_PROFILE == 'debug'
Expand Down
66 changes: 66 additions & 0 deletions .github/actions/build_linux_sanitizer/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: "Build Linux with AddressSanitizer"
description: "Build with AddressSanitizer"
inputs:
target:
description: ""
required: true
artifacts:
description: "Artifacts to build"
required: false
default: "meta,query"
features:
description: "Features to build"
required: false
default: "default"
runs:
using: "composite"
steps:
- name: Setup Build Tool
uses: ./.github/actions/setup_build_tool
with:
target: ${{ inputs.target }}
bypass_env_vars: RUSTFLAGS,RUST_LOG

- name: Cross setup
if: startsWith(inputs.target, 'aarch64-')
shell: bash
run: |
echo "JEMALLOC_SYS_WITH_LG_PAGE=16" >> $GITHUB_ENV

- name: Set Build Flags
shell: bash
run: |
case ${{ inputs.target }} in
x86_64-unknown-linux-gnu)
flags="-Z sanitizer=address"
;;
aarch64-unknown-linux-gnu)
flags="-Z sanitizer=address"
;;
*)
flags=""
;;
esac
echo "RUSTFLAGS=${flags} -C link-arg=-Wl,--compress-debug-sections=zlib" >> $GITHUB_ENV
target=${{ inputs.target }}
echo "BUILD_ARCH=${target/-unknown-linux-*}" >> $GITHUB_ENV

# build all binaries for debug
- name: Build Debug
if: env.BUILD_PROFILE == 'debug' && endsWith(inputs.target, '-gnu')
shell: bash
run: |
artifacts="${{ inputs.artifacts }}"
for artifact in ${artifacts//,/ }; do
echo "==> building databend-$artifact with sanitizer ..."
cargo -Zbuild-std -Zgitoxide=fetch -Zgit=shallow-index,shallow-deps build --target ${{ inputs.target }} --features ${{ inputs.features }} --manifest-path src/binaries/Cargo.toml --bin databend-$artifact
done
ls -lh ./target/${{ inputs.target }}/${{ env.BUILD_PROFILE }}/databend-*

- name: Check Binary Info
if: env.BUILD_PROFILE == 'debug' && endsWith(inputs.target, '-gnu')
shell: bash
continue-on-error: true
run: |
readelf -p .comment ./target/${{ inputs.target }}/${{ env.BUILD_PROFILE }}/databend-query
ldd ./target/${{ inputs.target }}/${{ env.BUILD_PROFILE }}/databend-query
11 changes: 6 additions & 5 deletions .github/actions/build_macos/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ runs:
- name: Rust setup
shell: bash
run: |
brew unlink python || true
bash ./scripts/setup/dev_setup.sh -yb
rustup target add ${{ inputs.target }}

Expand All @@ -43,18 +44,18 @@ runs:
- name: Build Debug for all artifacts
if: env.BUILD_PROFILE == 'debug' && inputs.artifacts == 'all'
shell: bash
run: cargo -Zgitoxide=fetch,shallow-index,shallow-deps build --target ${{ inputs.target }}
run: cargo -Zgitoxide=fetch -Zgit=shallow-index,shallow-deps build --target ${{ inputs.target }}

- name: Build Debug for specific artifacts
if: env.BUILD_PROFILE == 'debug' && inputs.artifacts != 'all'
shell: bash
run: |
artifacts="${{ inputs.artifacts }}"
echo "==> building libs ..."
cargo -Zgitoxide=fetch,shallow-index,shallow-deps build --target ${{ inputs.target }} --lib
cargo -Zgitoxide=fetch -Zgit=shallow-index,shallow-deps build --target ${{ inputs.target }} --lib
for artifact in ${artifacts//,/ }; do
echo "==> building databend-$artifact ..."
cargo -Zgitoxide=fetch,shallow-index,shallow-deps build --target ${{ inputs.target }} --bin databend-$artifact
cargo -Zgitoxide=fetch -Zgit=shallow-index,shallow-deps build --target ${{ inputs.target }} --bin databend-$artifact
done

- name: Build Release
Expand All @@ -63,10 +64,10 @@ runs:
run: |
artifacts="${{ inputs.artifacts }}"
echo "==> building libs ..."
cargo -Zgitoxide=fetch,shallow-index,shallow-deps build --target ${{ inputs.target }} --release --lib
cargo -Zgitoxide=fetch -Zgit=shallow-index,shallow-deps build --target ${{ inputs.target }} --release --lib
for artifact in ${artifacts//,/ }; do
echo "==> building databend-$artifact ..."
cargo -Zgitoxide=fetch,shallow-index,shallow-deps build --target ${{ inputs.target }} --release --bin databend-$artifact
cargo -Zgitoxide=fetch -Zgit=shallow-index,shallow-deps build --target ${{ inputs.target }} --release --bin databend-$artifact
done

- name: Upload artifact
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/check/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ runs:

- name: Check typos
shell: bash
run: typos --exclude docs --exclude website
run: typos

- name: Check unused deps
shell: bash
Expand All @@ -47,4 +47,4 @@ runs:

- name: Clippy
shell: bash
run: cargo -Zgitoxide=fetch,shallow-index,shallow-deps clippy --workspace --all-targets --all-features -- -D warnings
run: cargo -Zgitoxide=fetch -Zgit=shallow-index,shallow-deps clippy --workspace --all-targets --all-features -- -D warnings
Loading
Loading