Coder Social home page Coder Social logo

Comments (5)

den-crane avatar den-crane commented on June 25, 2024

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.

den-crane avatar den-crane commented on June 25, 2024

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.

YYXXYYZZ avatar YYXXYYZZ commented on June 25, 2024

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.

YYXXYYZZ avatar YYXXYYZZ commented on June 25, 2024

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.

YYXXYYZZ avatar YYXXYYZZ commented on June 25, 2024

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.

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.