Skip to content

LOGICAL_ERROR (due to wrong types detected) in plus() function #83963

@azat

Description

@azat
CREATE TABLE `02763_alias` (`x` UInt8, `y` UInt64, `z` UInt64 ALIAS x + y) ENGINE = MergeTree ORDER BY x;
CREATE TABLE `02763_alias__fuzz_25` (`x` DateTime64(3), `y` IPv4, `z` Float32 ALIAS x + y) ENGINE = MergeTree ORDER BY x;

insert into 02763_alias select * from generateRandom() limit 1;
insert into 02763_alias__fuzz_25 select * from generateRandom() limit 1;

CREATE TABLE `02763_a_merge` (`x` UInt8, `y` UInt64, `z` UInt64) ENGINE = Merge(currentDatabase(), '02763_alias');

select * from 02763_a_merge;
Code: 49. DB::Exception: Arguments of 'plus' have incorrect data types: 'x' of type 'DateTime64(3)', 'y' of type 'UInt32': Child table: default.`02763_alias__fuzz_25` (72136cfb-b899-4d10-b6d0-3fcb8479b5c0). (LOGICAL_ERROR)

CI: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=83906&sha=bec9411cb3176be821ba818711cad259e1d16c15&name_0=PR&name_1=AST%20fuzzer%20%28amd_tsan%29

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed user-visible misbehaviour in official releasefuzzProblem found by one of the fuzzers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions