Giter VIP home page Giter VIP logo

Comments (7)

Algunenano avatar Algunenano commented on May 26, 2024 1

You must setup the same config in both servers or explicitly enable the setting (via config or query) in the initiator.

from clickhouse.

Algunenano avatar Algunenano commented on May 26, 2024

Please provide a reproducer, version used, etc. This works fine:

SELECT
    t.name AS name,
    t.database AS schema,
    multiIf(engine IN ('MaterializedView', 'View'), 'view', engine = 'Dictionary', 'dictionary', 'table') AS type,
    db.engine AS db_engine,
    (t.engine LIKE 'Replicated%') OR (t.engine = 'View') AS is_on_cluster
FROM clusterAllReplicas(test_cluster_two_shards, system.tables) AS t
INNER JOIN system.databases AS db ON t.database = db.name
WHERE schema = 'mm_automation'
GROUP BY
    name,
    schema,
    type,
    db_engine,
    t.engine

from clickhouse.

oleg-savko avatar oleg-savko commented on May 26, 2024

Please provide a reproducer, version used, etc. This works fine:

SELECT
    t.name AS name,
    t.database AS schema,
    multiIf(engine IN ('MaterializedView', 'View'), 'view', engine = 'Dictionary', 'dictionary', 'table') AS type,
    db.engine AS db_engine,
    (t.engine LIKE 'Replicated%') OR (t.engine = 'View') AS is_on_cluster
FROM clusterAllReplicas(test_cluster_two_shards, system.tables) AS t
INNER JOIN system.databases AS db ON t.database = db.name
WHERE schema = 'mm_automation'
GROUP BY
    name,
    schema,
    type,
    db_engine,
    t.engine

Strange behaviour:

  • if settings allow_experimental_analyzer explicitly set in users.xml to 1 or via set query its work.

select * from system.settings where name = 'allow_experimental_analyzer';

name,value,changed
allow_experimental_analyzer,1,1

but if its not changed and default config, its throw error
select * from system.settings where name = 'allow_experimental_analyzer';

name,value,changed
allow_experimental_analyzer,1,0

from clickhouse.

Algunenano avatar Algunenano commented on May 26, 2024

Are you using a cluster where the replicas have different CH versions and different settings for allow_experimental_analyzer? If it's not set, then it must be the same in all replicas

from clickhouse.

oleg-savko avatar oleg-savko commented on May 26, 2024

Same ch version, and yes not work in this case:
image

from clickhouse.

oleg-savko avatar oleg-savko commented on May 26, 2024

with same default config in both servers its work.

Seems problem only when its not the same on all servers.

from clickhouse.

oleg-savko avatar oleg-savko commented on May 26, 2024

You must setup the same config in both servers or explicitly enable the setting (via config or query) in the initiator.

Its okey, but maybe should add more friendly error, for this case. Its not obvious at all, and its can be easy to forgot to change and sync it on all servers in first time.

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.