AT
Size: a a a
AT
DC
DC
.inner.metric
DC
И
D
SL
KILL MUTATION WHERE NOT is_done
DC
AR
DC
KILL MUTATION WHERE NOT is_done
DC
AR
<attribute>
<name>discount</name>
<type>Decimal(9,2)</type>
<expression>discount</expression>
<null_value></null_value>
</attribute>
Code
: 50, e.displayText() = DB::Exception: Unknown type Decimal(9,2) (version 19.15.3.6 (official build))DC
<attribute>
<name>discount</name>
<type>Decimal(9,2)</type>
<expression>discount</expression>
<null_value></null_value>
</attribute>
Code
: 50, e.displayText() = DB::Exception: Unknown type Decimal(9,2) (version 19.15.3.6 (official build))И
ALTER TABLE test.test_1 ATTACH PARTITION ID '202005' FROM old_table3) получаю ошибку
Cannot replace partition '202005' because part '20200501_20200522_0_61560_25001' has inconsistent granularity with tableи еще вопрос:
Tables have different format_versionИсходная таблица:
create table old_db.old_tableТаблица в первом случае
(
dt Date,
ts DateTime,
finished UInt8,
created DateTime
)
engine = MergeTree(dt, (dt, ts), 8192);
create table test.test_1Таблица во втором случае
(
dt Date,
ts DateTime,
finished UInt8,
created DateTime
)
engine = MergeTree(dt, (dt, ts), 8192);
create table test.test_1_1
(
dt Date,
ts DateTime,
finished UInt8,
created DateTime
)
ENGINE MergeTree()
PARTITION BY toYYYYMM(dt)
ORDER BY (dt, ts)
SETTINGS index_granularity = 8192;
И
ALTER TABLE test.test_1 ATTACH PARTITION ID '202005' FROM old_table;
ALTER TABLE test.test_1_1 ATTACH PARTITION ID '202005' FROM old_table;
DC
ALTER TABLE test.test_1 ATTACH PARTITION ID '202005' FROM old_table3) получаю ошибку
Cannot replace partition '202005' because part '20200501_20200522_0_61560_25001' has inconsistent granularity with tableи еще вопрос:
Tables have different format_versionИсходная таблица:
create table old_db.old_tableТаблица в первом случае
(
dt Date,
ts DateTime,
finished UInt8,
created DateTime
)
engine = MergeTree(dt, (dt, ts), 8192);
create table test.test_1Таблица во втором случае
(
dt Date,
ts DateTime,
finished UInt8,
created DateTime
)
engine = MergeTree(dt, (dt, ts), 8192);
create table test.test_1_1
(
dt Date,
ts DateTime,
finished UInt8,
created DateTime
)
ENGINE MergeTree()
PARTITION BY toYYYYMM(dt)
ORDER BY (dt, ts)
SETTINGS index_granularity = 8192;
SC
DC
SC
SC