-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Logical error: Bad cast from type A to B (STID: 0250-3d48) #97701
Copy link
Copy link
Closed
Labels
fuzzProblem found by one of the fuzzersProblem found by one of the fuzzerstestingSpecial issue with list of bugs found by CISpecial issue with list of bugs found by CI
Description
Important: This issue was automatically generated and is used by CI for matching failures. DO NOT modify the body content. DO NOT remove labels.
Test name: Logical error: Bad cast from type A to B (STID: 0250-3d48)
CI report: AST fuzzer (amd_ubsan)
Failing test history: cidb
Test output:
Error:
Logical error: 'Bad cast from type DB::ColumnString to DB::ColumnLowCardinality'.
---
Failed query:
SELECT DISTINCT concat(18), concat(0.5), [(4., 4.)], concat(isNull(toLowCardinality('%10000000%')), 10, concat(concat(materialize(3), concat(0.5, isNotNull(toNullable(3)), 3, 3, 3, toNullable(3), 'com', 3, 3), isNotNull(assumeNotNull(materialize(3)))), ['hello::world', [materialize((10, 10)), (0, 10), (10, 0), (0., 0.), isNullable(assumeNotNull(3)), concat(12, 'hello::world', materialize(12))], concat(isNotNull(3), 3, isNullable(3), isNotNull(3), 3, 3, toLowCardinality('com'), materialize(toLowCardinality(3)), 3, 3)])), concat(concat(toNullable(toLowCardinality(65537)), 0.5, toNullable('hello::world')), toFixedString('%10000000%', toLowCardinality(toNullable(toUInt128(10))))) WHERE equals(13, hasToken(concat(assumeNotNull(3)), 'https')) GROUP BY GROUPING SETS ((1)) WITH TOTALS
---
Reproduce commands (auto-generated; may require manual adjustment):
SELECT DISTINCT concat(18), concat(0.5), [(4., 4.)], concat(isNull(toLowCardinality('%10000000%')), 10, concat(concat(materialize(3), concat(0.5, isNotNull(toNullable(3)), 3, 3, 3, toNullable(3), 'com', 3, 3), isNotNull(assumeNotNull(materialize(3)))), ['hello::world', [materialize((10, 10)), (0, 10), (10, 0), (0., 0.), isNullable(assumeNotNull(3)), concat(12, 'hello::world', materialize(12))], concat(isNotNull(3), 3, isNullable(3), isNotNull(3), 3, 3, toLowCardinality('com'), materialize(toLowCardinality(3)), 3, 3)])), concat(concat(toNullable(toLowCardinality(65537)), 0.5, toNullable('hello::world')), toFixedString('%10000000%', toLowCardinality(toNullable(toUInt128(10))))) WHERE equals(13, hasToken(concat(assumeNotNull(3)), 'https')) GROUP BY GROUPING SETS ((1)) WITH TOTALS;
---
Stack trace:
pthread_kill @ 0x00000000000969fd
raise @ 0x0000000000042476
__ieee754_lgamma_r @ 0x00000000000287f3
./ci/tmp/build/./src/Common/Exception.cpp:60:5: DB::abortOnFailedAssertion(String const&, std::basic_string_view<char, std::char_traits<char>>, void* const*, unsigned long, unsigned long) @ 0x000000001fd2599d
./ci/tmp/build/./src/Common/Exception.cpp:93:13: DB::handle_error_code(String const&, std::basic_string_view<char, std::char_traits<char>>, int, bool, std::vector<void*, std::allocator<void*>> const&) @ 0x000000001fd267bf
./ci/tmp/build/./src/Common/Exception.cpp:146:19: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000001fd26b32
./src/Common/Exception.h:171:100: DB::Exception::Exception(String&&, int, String, bool) @ 0x0000000013ea1163
./src/Common/Exception.h:57:54: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000013ea0701
inlined from ./src/Common/Exception.h:189: Exception<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >
./ci/tmp/build/./src/Common/typeid_cast.cpp:15:77: throwBadTypeidCast(std::type_info const&, std::type_info const&) @ 0x000000001fe2df05
inlined from ./src/Common/typeid_cast.h:22: T typeid_cast<DB::ColumnLowCardinality const&, DB::IColumn const>(DB::IColumn const&)
inlined from ./ci/tmp/build/./src/DataTypes/Serializations/SerializationLowCardinality.cpp:29: DB::(anonymous namespace)::getColumnLowCardinality(DB::IColumn const&)
./ci/tmp/build/./src/DataTypes/Serializations/SerializationLowCardinality.cpp:825:5: void DB::SerializationLowCardinality::serializeImpl<DB::WriteBuffer&, DB::FormatSettings const&, DB::WriteBuffer&, DB::FormatSettings const&>(DB::IColumn const&, unsigned long, void (DB::ISerialization::*)(DB::IColumn const&, unsigned long, DB::WriteBuffer&, DB::FormatSettings const&) const, DB::WriteBuffer&, DB::FormatSettings const&) const @ 0x0000000027a9b925
./ci/tmp/build/./src/DataTypes/Serializations/SerializationLowCardinality.cpp:743:5: DB::SerializationLowCardinality::serializeTextQuoted(DB::IColumn const&, unsigned long, DB::WriteBuffer&, DB::FormatSettings const&) const @ 0x0000000027a9859c
inlined from ./ci/tmp/build/./src/DataTypes/Serializations/SerializationArray.cpp:681: operator()
inlined from ./ci/tmp/build/./src/DataTypes/Serializations/SerializationArray.cpp:538: void DB::serializeTextImpl<DB::SerializationArray::serializeText(DB::IColumn const&, unsigned long, DB::WriteBuffer&, DB::FormatSettings const&) const::$_0>(DB::IColumn const&, unsigned long, DB::WriteBuffer&, DB::SerializationArray::serializeText(DB::IColumn const&, unsigned long, DB::WriteBuffer&, DB::FormatSettings const&) const::$_0&&)
./ci/tmp/build/./src/DataTypes/Serializations/SerializationArray.cpp:678:21: DB::SerializationArray::serializeText(DB::IColumn const&, unsigned long, DB::WriteBuffer&, DB::FormatSettings const&) const @ 0x0000000027a21a2a
./ci/tmp/build/./src/Functions/concat.cpp:158:36: DB::(anonymous namespace)::ConcatImpl::executeFormatImpl(std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>> const&, unsigned long) const @ 0x00000000167cf3b2
inlined from ./ci/tmp/build/./src/Functions/concat.cpp:109: executeBinary
./ci/tmp/build/./src/Functions/concat.cpp:79:20: DB::(anonymous namespace)::ConcatImpl::executeImpl(std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>> const&, std::shared_ptr<DB::IDataType const> const&, unsigned long) const @ 0x00000000167ce89d
./ci/tmp/build/./src/Functions/IFunctionAdaptors.cpp:10:22: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>> const&, std::shared_ptr<DB::IDataType const> const&, unsigned long) const @ 0x0000000026075417
./ci/tmp/build/./src/Functions/IFunction.cpp:365:15: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>> const&, std::shared_ptr<DB::IDataType const> const&, unsigned long, bool) const @ 0x0000000026069228
./ci/tmp/build/./src/Functions/IFunction.cpp:293:24: DB::IExecutableFunction::defaultImplementationForNulls(std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>> const&, std::shared_ptr<DB::IDataType const> const&, unsigned long, bool) const @ 0x0000000026069ffb
./ci/tmp/build/./src/Functions/IFunction.cpp:358:20: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>> const&, std::shared_ptr<DB::IDataType const> const&, unsigned long, bool) const @ 0x00000000260691be
./ci/tmp/build/./src/Functions/IFunction.cpp:438:22: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>> const&, std::shared_ptr<DB::IDataType const> const&, unsigned long, bool) const @ 0x000000002606b208
./ci/tmp/build/./src/Functions/IFunction.cpp:577:16: DB::IExecutableFunction::executeWithoutReplicatedColumns(std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>> const&, std::shared_ptr<DB::IDataType const> const&, unsigned long, bool) const @ 0x000000002606cc08
./ci/tmp/build/./src/Functions/IFunction.cpp:486:20: DB::IExecutableFunction::execute(std::vector<DB::ColumnWithTypeAndName, std::allocator<DB::ColumnWithTypeAndName>> const&, std::shared_ptr<DB::IDataType const> const&, unsigned long, bool) const @ 0x000000002606c429
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
fuzzProblem found by one of the fuzzersProblem found by one of the fuzzerstestingSpecial issue with list of bugs found by CISpecial issue with list of bugs found by CI