Tags: databendlabs/databend
Tags
fix(cache): fix improper config usage in cache manager (#18002) (#18009) fix(cache): Fix improper config usage in cache manager Correct the implementation to properly respect configuration parameters for block metadata caching. Previously, the configuration values for segment_block_metas_count and block_meta_count were not being correctly applied. Added test case to verify proper configuration handling.
feat(query): enable workload groups for resource control over the htt… …p handler (#17994) * feat(query): enable workload groups for resource control over the http handler * feat(query): enable workload groups for resource control over the http handler * feat(query): enable workload groups for resource control over the http handler * feat(query): enable workload groups for resource control over the http handler * feat(query): enable workload groups for resource control over the http handler * feat(query): enable workload groups for resource control over the http handler
chore(backport): Backport `replace into` refactoring to v1.2.636 (#17408 ) * refactor: rename components of the `replace into` impl (#17355) refactor: rename components of `replace into` Initially, `REPLACE INTO` was designed as a simplified implementation of `MERGE INTO`, with the expectation that it would gradually evolve into a full-fledged implementation of `MERGE INTO`, as a result, many `MERGE INTO` related terms exist in the components of `REPLACE INTO` impl. However, `MERGE INTO` now has its own independent impl, the remaining `MERGE INTO` related terms in the impl of `REPLACE INTO` can be misleading. Therefore, in this PR, we have renamed all `MERGE INTO` related terms in the implof `REPLACE INTO` to avoid confusion. * feat: introduce block meta cache (#17360) * feat: introduce BlockMetaCache * tweak sys tbl `system.cache` and configs * cargo fmt * update ut gloden file * fix: set cache cap of `memory_cache_block_meta` * tweak cargo audit.toml * chore: refine copy into tests (#17413) * test(stage): decouple `COPY INTO` tests from output data byte size The tests should not assert the exact byte size of data outputs, as this value may change across different versions of `databend-query` due to meta data of data block contains the version the `databend-query`, which is variant lengthed. This change replaces byte size checks with content validation, ensuring test stability while maintaining functional correctness. * test(stage): decouple `COPY INTO` tests from output data byte size * test(stage): decouple `COPY INTO` tests from output data byte size * test(stage): decouple `COPY INTO` tests from output data byte size * test(stage): decouple `COPY INTO` tests from output data byte size * test(stage): decouple `COPY INTO` tests from output data byte size * test(stage): decouple `COPY INTO` tests from output data byte size * test(stage): decouple `COPY INTO` tests from output data byte size 05_0001_set_var.sh * test(stage): decouple `COPY INTO` tests from output data byte size 18_0002_ownership_cover * decouple `COPY INTO` tests from output data byte size 18_0007_privilege_access * decouple `COPY INTO` tests from output data byte size 20_0015_compact_hook_stas_issue_13947 * decouple `COPY INTO` tests from output data byte size * revert scripts/ci/deploy/config/databend-query-node-1.toml * tweak test case parquet_missing_uuid ignore result-set of `copy into` when preparing data. * tweak 00_0015_unload_output, 00_0012_stage_with_connection * refactor: refine `replace into` by caching individual BlockMeta (#17368) * remove dead code * update crossbeam-channel to 0.5.13 Title: crossbeam-channel: double free on Drop Date: 2025-04-08 ID: RUSTSEC-2025-0024 URL: https://rustsec.org/advisories/RUSTSEC-2025-0024 * update audit.toml * tweak logic test 05_0001_set_var bendsql used in CI has been upgraded which uses a different format to display timestamps. * chore: improve license validation log message (#17967) * chore: improve license validation log message Change license validation error log to ERROR level. Several enterprise features don't affect functional correctness but impact performance significantly. Users have experienced unexplained performance degradation due to expired licenses. This change helps users identify such issues faster. * improve the license error message * tweak log msg --------- Co-authored-by: BohuTANG <overred.shuttler@gmail.com> --------- Co-authored-by: BohuTANG <overred.shuttler@gmail.com>
chore: improve license validation log message (#17967) * chore: improve license validation log message Change license validation error log to ERROR level. Several enterprise features don't affect functional correctness but impact performance significantly. Users have experienced unexplained performance degradation due to expired licenses. This change helps users identify such issues faster. * improve the license error message * tweak log msg --------- Co-authored-by: BohuTANG <overred.shuttler@gmail.com>
chore: improve the http handler log and error message (#17958) * chore: improve the error message * improve more http handler error/log message * fix the logic tests * fix http_query_handlers.rs tests * fix the http handler logic test * continue fix the 09_0007_token.result * Update 09_0007_token.result
PreviousNext