Comments (5)
I cannot make it work with 23.8.9.54 https://fiddle.clickhouse.com/eb6d35aa-2ac2-4695-a3d0-6c4bdb97be54
try set allow_experimental_analyzer=0;
with 24.3.3.102
from clickhouse.
Though, it throws exception with settings on the highest level https://fiddle.clickhouse.com/9d07b4d5-e42e-4441-91ce-ab60daeee26f , but it works as expected with the latest version too.
May be it's the same as
from clickhouse.
I cannot make it work with 23.8.9.54 https://fiddle.clickhouse.com/eb6d35aa-2ac2-4695-a3d0-6c4bdb97be54
try
set allow_experimental_analyzer=0;
with 24.3.3.102
Thank you for your reply. You're right, I have not been able to reproduce the problem in version 23.8. It might be caused by a different scenario leading to the current situation. My production environment has these parameters:
SETTINGS max_memory_usage = 5000000000, max_execution_time = 9, max_bytes_before_external_group_by = 2500000000, max_bytes_before_external_sort = 2500000000, distributed_aggregation_memory_efficient = 1
The memory consumption of routine queries remains at an acceptable level. However, after updating to 24.3, memory usage spiked sharply, almost OOM
Additionally, setting allow_experimental_analyzer=0 seems to have no effect.
from clickhouse.
Though, it throws exception with settings on the highest level https://fiddle.clickhouse.com/9d07b4d5-e42e-4441-91ce-ab60daeee26f , but it works as expected with the latest version too.
May be it's the same as
the highest level SETTINGS can take effect; I am aware of this. My current situation indeed seems to resemble the issue you mentioned. Are there any temporary methods to make the settings for subqueries effective?
from clickhouse.
I cannot make it work with 23.8.9.54 https://fiddle.clickhouse.com/eb6d35aa-2ac2-4695-a3d0-6c4bdb97be54
tryset allow_experimental_analyzer=0;
with 24.3.3.102Thank you for your reply. You're right, I have not been able to reproduce the problem in version 23.8. It might be caused by a different scenario leading to the current situation. My production environment has these parameters:
SETTINGS max_memory_usage = 5000000000, max_execution_time = 9, max_bytes_before_external_group_by = 2500000000, max_bytes_before_external_sort = 2500000000, distributed_aggregation_memory_efficient = 1
The memory consumption of routine queries remains at an acceptable level. However, after updating to 24.3, memory usage spiked sharply, almost OOMAdditionally, setting allow_experimental_analyzer=0 seems to have no effect.
The issue remains unresolved, but in order to make the external sorting for distinct on (a, b) * effective, I added the statement group by a, b,.... Now the memory can be limited within the specified range.
from clickhouse.
Related Issues (20)
- optimize_read_in_order doesn't utilize min-max indices for sorting order HOT 1
- 01593_concurrent_alter_mutations_kill_many_replicas_long is a little flaky
- AST Fuzzer found inconsistent AST formatting HOT 2
- Vector similarity index is too low HOT 5
- Logical error: 'Expected exactly one connection for shard 2'
- Renaming a projection HOT 1
- Problems with tables with null bits in a column name HOT 2
- Possible to set array column default to emptyArrayString() for column in nested table HOT 1
- Heap-use-after-free in join query
- Custom "Content-Type" header not working for s3 engine HOT 1
- LOGICAL ERROR `Table expression ... must be initialized`
- Using arrayFilter in arrayMap, passing in external variables, the entry takes up too much memory
- Keeper dynamic reconfiguration recommendations HOT 2
- Data-race in Kafka HOT 1
- Evaluate LowCardinality vs. ZSTD-compression.
- RFC: Min-max indexes and bloom filter indexes by default? HOT 2
- SQL with pipes
- Use supported version of Node.js in Dockerfile
- Upper case `INFORMATION_SCHEMA` database looks redudant HOT 1
- Newer versions of clickhouse don't use indices on views which are defined as union
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clickhouse.