I’m also getting messages about type differences each time I run the install.sh script. Here are some of these messages:
2020-03-03 12:37:38,003 Migrating dataset transactions
2020-03-03 12:37:38,006 Column 'transaction_hash' type differs between local ClickHouse and schema! (expected: UInt64 MATERIALIZED cityHash64(transaction_name), is: UInt64)
2020-03-03 12:37:38,006 Column 'transaction_status' type differs between local ClickHouse and schema! (expected: UInt8 DEFAULT 2, is: UInt8)
2020-03-03 12:37:38,006 Column '_start_date' type differs between local ClickHouse and schema! (expected: Date MATERIALIZED toDate(start_ts), is: Date)
2020-03-03 12:37:38,006 Column '_finish_date' type differs between local ClickHouse and schema! (expected: Date MATERIALIZED toDate(finish_ts), is: Date)
2020-03-03 12:37:38,006 Column 'user' type differs between local ClickHouse and schema! (expected: String DEFAULT '', is: String)
2020-03-03 12:37:38,006 Column 'user_hash' type differs between local ClickHouse and schema! (expected: UInt64 MATERIALIZED cityHash64(user), is: UInt64)
2020-03-03 12:37:38,006 Column 'sdk_name' type differs between local ClickHouse and schema! (expected: LowCardinality(String) DEFAULT '', is: LowCardinality(String))
2020-03-03 12:37:38,006 Column 'sdk_version' type differs between local ClickHouse and schema! (expected: LowCardinality(String) DEFAULT '', is: LowCardinality(String))
2020-03-03 12:37:38,009 Column 'transaction_hash' type differs between local ClickHouse and schema! (expected: UInt64 MATERIALIZED cityHash64(transaction_name), is: UInt64)
2020-03-03 12:37:38,009 Column 'transaction_status' type differs between local ClickHouse and schema! (expected: UInt8 DEFAULT 2, is: UInt8)
2020-03-03 12:37:38,009 Column '_start_date' type differs between local ClickHouse and schema! (expected: Date MATERIALIZED toDate(start_ts), is: Date)
2020-03-03 12:37:38,009 Column '_finish_date' type differs between local ClickHouse and schema! (expected: Date MATERIALIZED toDate(finish_ts), is: Date)
2020-03-03 12:37:38,009 Column 'user' type differs between local ClickHouse and schema! (expected: String DEFAULT '', is: String)
2020-03-03 12:37:38,009 Column 'user_hash' type differs between local ClickHouse and schema! (expected: UInt64 MATERIALIZED cityHash64(user), is: UInt64)
2020-03-03 12:37:38,009 Column 'sdk_name' type differs between local ClickHouse and schema! (expected: LowCardinality(String) DEFAULT '', is: LowCardinality(String))
2020-03-03 12:37:38,009 Column 'sdk_version' type differs between local ClickHouse and schema! (expected: LowCardinality(String) DEFAULT '', is: LowCardinality(String))
2020-03-03 12:37:38,010 Migrating dataset events_migration
2020-03-03 12:37:38,013 Column 'event_id' type differs between local ClickHouse and schema! (expected: UUID CODEC (NONE), is: UUID)
2020-03-03 12:37:38,013 Column 'event_hash' type differs between local ClickHouse and schema! (expected: UInt64 MATERIALIZED cityHash64(toString(event_id)) CODEC (NONE), is: UInt64)
2020-03-03 12:37:38,014 Column 'user' type differs between local ClickHouse and schema! (expected: String DEFAULT '', is: String)
2020-03-03 12:37:38,014 Column 'user_hash' type differs between local ClickHouse and schema! (expected: UInt64 MATERIALIZED cityHash64(user), is: UInt64)
2020-03-03 12:37:38,014 Column 'transaction_name' type differs between local ClickHouse and schema! (expected: LowCardinality(String) DEFAULT '', is: LowCardinality(String))
2020-03-03 12:37:38,014 Column 'transaction_hash' type differs between local ClickHouse and schema! (expected: UInt64 MATERIALIZED cityHash64(transaction_name), is: UInt64)
2020-03-03 12:37:38,014 Column 'offset' type differs between local ClickHouse and schema! (expected: UInt64 CODEC (DoubleDelta, LZ4), is: UInt64)
2020-03-03 12:37:38,014 Column 'primary_hash_hex' type differs between local ClickHouse and schema! (expected: UInt64 MATERIALIZED hex(primary_hash), is: UInt64)
2020-03-03 12:37:38,014 Column 'event_string' type differs between local ClickHouse and schema! (expected: String CODEC (NONE), is: String)
2020-03-03 12:37:38,017 Column 'event_id' type differs between local ClickHouse and schema! (expected: UUID CODEC (NONE), is: UUID)
2020-03-03 12:37:38,017 Column 'event_hash' type differs between local ClickHouse and schema! (expected: UInt64 MATERIALIZED cityHash64(toString(event_id)) CODEC (NONE), is: UInt64)
2020-03-03 12:37:38,017 Column 'user' type differs between local ClickHouse and schema! (expected: String DEFAULT '', is: String)
2020-03-03 12:37:38,017 Column 'user_hash' type differs between local ClickHouse and schema! (expected: UInt64 MATERIALIZED cityHash64(user), is: UInt64)
2020-03-03 12:37:38,017 Column 'transaction_name' type differs between local ClickHouse and schema! (expected: LowCardinality(String) DEFAULT '', is: LowCardinality(String))
2020-03-03 12:37:38,017 Column 'transaction_hash' type differs between local ClickHouse and schema! (expected: UInt64 MATERIALIZED cityHash64(transaction_name), is: UInt64)
2020-03-03 12:37:38,017 Column 'offset' type differs between local ClickHouse and schema! (expected: UInt64 CODEC (DoubleDelta, LZ4), is: UInt64)
2020-03-03 12:37:38,017 Column 'primary_hash_hex' type differs between local ClickHouse and schema! (expected: UInt64 MATERIALIZED hex(primary_hash), is: UInt64)
2020-03-03 12:37:38,017 Column 'event_string' type differs between local ClickHouse and schema! (expected: String CODEC (NONE), is: String)
2020-03-03 12:37:38,018 Migrating dataset outcomes
2020-03-03 12:37:38,020 Column 'size' exists in local ClickHouse but not in schema!
Running docker-compose run --rm snuba-api migrate
doesn’t help unfortunately.
Can I safely ignore those messages?
Thanks a lot for your help!