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 #45

Merged
merged 78 commits into from
May 10, 2024
Merged

[pull] main from datafuselabs:main #45

merged 78 commits into from
May 10, 2024

Conversation

pull[bot]
Copy link

@pull pull bot commented Apr 29, 2024

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

drmingdrmer and others added 17 commits April 28, 2024 10:48
Add short sleep to avoid starving sled IO.

This commit is meant to address the issue when building a snapshot,
other IO such as appending log to sled db is delay significantly.

Remove several unnecessary INFO level log.
* chore: adjust log level

* refactor: Define TenantOwnershiptObject with TIdent
* feat: Introduce enterprise storage quota feature

Signed-off-by: Xuanwo <[email protected]>

* format taplo

Signed-off-by: Xuanwo <[email protected]>

* Save work

Signed-off-by: Xuanwo <[email protected]>

* refactor

Signed-off-by: Xuanwo <[email protected]>

---------

Signed-off-by: Xuanwo <[email protected]>
* chore(planner): support fast return for hash join spill

* chore: check spilled_partition_set

* chore: refine sqllogictest

* chore: make lint
…15360)

fix check all partitions for ParquetPart::ParquetFiles instead of the last only.
* refactor: session_ctx.client_ip refactor to Option<String>

* fix clippy err

* fix clippy err
…ntain phrase terms (#15362)

* feat(query): inverted index use empty position data when query not contain phrase terms

* score as optional

* fix

* fix

* check need position in pruner

* fix

* fix tests

* fix tests
* impl ST_DIMENSION

Signed-off-by: Fan Yang <[email protected]>

* impl ST_DIMENSION

Signed-off-by: Fan Yang <[email protected]>

---------

Signed-off-by: Fan Yang <[email protected]>
)

* refactor: move DirName to separate file; add peek() to KeyParser

* chore: fix missing file header
* ST_ENDPOINT

Signed-off-by: Fan Yang <[email protected]>

* Update geometry.rs

* Update geometry.rs

Signed-off-by: Fan Yang <[email protected]>

---------

Signed-off-by: Fan Yang <[email protected]>
Copy link

github-actions bot commented Apr 29, 2024

At least one test kind must be checked in the PR description.
@pull[bot] please update it 🙏.

Copy link

github-actions bot commented Apr 29, 2024

At least one type of change must be checked in the PR description.
@pull[bot] please update it 🙏.

Copy link

Pull request description must contain CLA like the following:

I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/

## Summary

Summary about this PR

- Close #issue

Copy link

github-actions bot commented Apr 29, 2024

This pull request's title is not fulfill the requirements. @pull[bot] please update it 🙏.

Valid format:

fix(query): fix group by string bug
  ^         ^---------------------^
  |         |
  |         +-> Summary in present tense.
  |
  +-------> Type: rfc, feat, fix, refactor, ci, docs, chore

Valid types:

  • rfc: this PR proposes a new RFC
  • feat: this PR introduces a new feature to the codebase
  • fix: this PR patches a bug in codebase
  • refactor: this PR changes the code base without new features or bugfix
  • ci: this PR changes build/testing/ci steps
  • docs: this PR changes the documents or websites
  • chore: this PR only has small changes that no need to record

@pull pull bot added the ⤵️ pull label Apr 29, 2024
drmingdrmer and others added 8 commits April 29, 2024 19:04
* purge inverted index

* purge inverted index info files

* add code comments

* add ee sql logic test

* revert default query node config

* chore: cleanup

* resolve merge conflicts

* evict inverted index cache
* feat(query): support explain insert with insert source

* fix explain delete err

* refactor explain_insert into plan/insert.rs explain

* fix clippy err
* chore: enable js Date Intrinsic

* chore: enable js Date Intrinsic

* chore(query): reuse the script runtime during pipeline builder

* chore(query): reuse the script runtime during pipeline builder
fix: adjust row count assertion in table compaction

Correct the assertion to check that the row count remains unchanged
during table compaction, instead of comparing it(new snapshot) to the
pre-compaction snapshot. This change accounts for scenarios where the
new snapshot results from a combination of compaction and insertion,
potentially increasing the total number of rows.
* refactor: remove stage use stream to avoid oom.

* refactor: change REMOVE_BATCH to 1000.

* ci: fix flaky test.
drmingdrmer and others added 29 commits May 7, 2024 14:18
* chore: fix snapshot-v2 versions

* refactor: Minimize lock duration during raft-log export

Optimize the locking mechanism in the raft-log export process.
Previously, the lock was held until the export was fully completed. With
this refactor:
- For raft-log exports: Release the lock immediately after transferring logs to memory.
- For snapshot exports: Release the lock once the snapshot file is opened.
This change reduces the time the lock is held, potentially improving performance and concurrency.
…ion count in new agg singleton (#15418)

* fix new agg bucket error in singleton

* fix

---------

Co-authored-by: jw <[email protected]>
* chore: Vendor parquet2 instead

Signed-off-by: Xuanwo <[email protected]>

* Add files

Signed-off-by: Xuanwo <[email protected]>

* Fix license

Signed-off-by: Xuanwo <[email protected]>

* ignore typos from upstream

Signed-off-by: Xuanwo <[email protected]>

* Format toml

Signed-off-by: Xuanwo <[email protected]>

* Format arrow

Signed-off-by: Xuanwo <[email protected]>

* Remove tests

Signed-off-by: Xuanwo <[email protected]>

* Fix test fail under all features

Signed-off-by: Xuanwo <[email protected]>

---------

Signed-off-by: Xuanwo <[email protected]>
* chore(query): refactor metrics

* chore(query): refactor metrics

* chore(query): fix VACUUM TEMPORARY FILES
* refactor: set enable_experimental_rbac_check default 1

* forbiden drop user stage in binder

* fix clippy
* fix: ExistsTable should has_result_set.

* ci: fix exists_tables.test

* refactor: let has_result_set = schema.is_empty().
* allow append when change tracking was enabled

* chore: more code comments & minor refactoring

---------

Co-authored-by: dantengsky <[email protected]>
* refactor(query): enable little vacuum after query finish

* refactor(query): enable little vacuum after query finish

* refactor(query): enable little vacuum after query finish

* refactor(query): enable little vacuum after query finish

* refactor(query): enable little vacuum after query finish

* refactor(query): enable little vacuum after query finish

* refactor(query): enable little vacuum after query finish

* refactor(query): enable little vacuum after query finish

* refactor(query): enable little vacuum after query finish

* refactor(query): enable little vacuum after query finish

* refactor(query): enable little vacuum after query finish

* refactor(query): enable little vacuum after query finish

* refactor(query): enable little vacuum after query finish
refactor: remove MergeIntoSource operator
refactor: ScalarVisitor refactor replace_predicate_x
* fix(functions): improve array_prepend and array_append

* fix

* fix

* fix

* fix
* Implement map_cat function

Signed-off-by: shamb0 <[email protected]>

* Implement map_cat function

Signed-off-by: shamb0 <[email protected]>

* Implement map_cat function

Signed-off-by: shamb0 <[email protected]>

* feat: implement map functions using MapType

* merge to upstream main updates

* Refactor map.rs function module based on code review feedback

Signed-off-by: shamb0 <[email protected]>

* Refactor map.rs function module based on code review feedback

Signed-off-by: shamb0 <[email protected]>

* Refactor map.rs function module based on code review feedback

Signed-off-by: shamb0 <[email protected]>

* Refactor map.rs function module based on code review feedback

Signed-off-by: shamb0 <[email protected]>

* Refactor map.rs function module based on code review feedback

Signed-off-by: shamb0 <[email protected]>

* Refactor map.rs function module based on code review feedback

Signed-off-by: shamb0 <[email protected]>

* Refactor map.rs function module based on code review feedback

Signed-off-by: shamb0 <[email protected]>

* Make CI HappyOF

Signed-off-by: shamb0 <[email protected]>

* Refactor map.rs function module based on code review feedback

Signed-off-by: shamb0 <[email protected]>

* Refactor map.rs function module based on code review feedback

Signed-off-by: shamb0 <[email protected]>

* Refactor map.rs function module based on code review feedback

Signed-off-by: shamb0 <[email protected]>

* Refactor map.rs function module based on code review feedback

Signed-off-by: shamb0 <[email protected]>

---------

Signed-off-by: shamb0 <[email protected]>
* ci: Bump version to 2024-02-08 (the same commit with 1.78)

Signed-off-by: Xuanwo <[email protected]>

* chore: Bump to rust 2024-02-08 (also 1.78)

Signed-off-by: Xuanwo <[email protected]>

---------

Signed-off-by: Xuanwo <[email protected]>
* fix recluster

* chore: ignore stream column compare in block compact mutator

* fix test
…e kill test assertion (#15443)

* fix(executor): fix queries executor cluster cannot kill problem and reactivate kill test assert

Signed-off-by: Liuqing Yue <[email protected]>

* fix: add finish notify in graph

Signed-off-by: Liuqing Yue <[email protected]>

* disable queries executor, ensure not affect

Signed-off-by: Liuqing Yue <[email protected]>

---------

Signed-off-by: Liuqing Yue <[email protected]>
* feat: support adjust query's priority

Signed-off-by: Liuqing Yue <[email protected]>

* chore: refine some comments

Signed-off-by: Liuqing Yue <[email protected]>

* enable queries executor

Signed-off-by: Liuqing Yue <[email protected]>

* fix: max points should load from atomic

Signed-off-by: Liuqing Yue <[email protected]>

* chore: make clippy happy

Signed-off-by: Liuqing Yue <[email protected]>

* update and refine comments

Signed-off-by: Liuqing Yue <[email protected]>

* fix unit test

Signed-off-by: Liuqing Yue <[email protected]>

fix: license header

Signed-off-by: Liuqing Yue <[email protected]>

fix: license header

Signed-off-by: Liuqing Yue <[email protected]>

* fix: fix scheduling

Signed-off-by: Liuqing Yue <[email protected]>

* fix: fix scheduling

Signed-off-by: Liuqing Yue <[email protected]>

* fixup stateful test

Signed-off-by: Liuqing Yue <[email protected]>

fixup stateful test

Signed-off-by: Liuqing Yue <[email protected]>

fix: ci test suits permission dennie

Signed-off-by: Liuqing Yue <[email protected]>

* feat: add cluster mode support for set priority

Signed-off-by: Liuqing Yue <[email protected]>

save

Signed-off-by: Liuqing Yue <[email protected]>

fixup

Signed-off-by: Liuqing Yue <[email protected]>

* fixup

Signed-off-by: Liuqing Yue <[email protected]>

* disable queries executor, ensure not affect

Signed-off-by: Liuqing Yue <[email protected]>

* disable test

Signed-off-by: Liuqing Yue <[email protected]>

---------

Signed-off-by: Liuqing Yue <[email protected]>
* chore: add query_id in log.

* chore: polish log for copy.
@TCeason TCeason merged commit 84cc1b4 into TCeason:main May 10, 2024
1 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.