Skip to content

Logical error: 'Inconsistent AST formatting in Function_or: the query: (STID: 1941-1bfa) #92044

@novikd

Description

@novikd

Important: This issue was automatically created and is used by CI. Do not modify the issue title. Do not remove issue labels.

CI report: BuzzHouse (amd_debug)
CIDB statistics: cidb

Test output:

Error:
Logical error: 'Inconsistent AST formatting in Function_or: the query:
EXPLAIN SELECT ['5:3:5:a:7:c:3:7'::IPv6, '照片', '0:f:7:5:1:3:9:a'::IPv6, '6:b:5:4:6:b:d:1'::IPv6] <=> CAST(avgWeightedArray(DISTINCT bitAnd(toDate32OrZero([('\0'), randomPrintableASCII(56), randomStrin...
Formatted as:
EXPLAIN SELECT [CAST('5:3:5:a:7:c:3:7', 'IPv6'), '照片', CAST('0:f:7:5:1:3:9:a', 'IPv6'), CAST('6:b:5:4:6:b:d:1', 'IPv6')] <=> CAST(avgWeightedArrayDistinct(bitAnd(toDate32OrZero(['\0', randomPrintableA...
Was parsed and formatted back as:
EXPLAIN SELECT [CAST('5:3:5:a:7:c:3:7', 'IPv6'), '照片', CAST('0:f:7:5:1:3:9:a', 'IPv6'), CAST('6:b:5:4:6:b:d:1', 'IPv6')] <=> CAST(avgWeightedArrayDistinct(bitAnd(toDate32OrZero(['\0', randomPrintableA...
---

Failed query:
SELECT [CAST('5:3:5:a:7:c:3:7', 'IPv6'), '照片', CAST('0:f:7:5:1:3:9:a', 'IPv6'), CAST('6:b:5:4:6:b:d:1', 'IPv6')] <=> CAST(avgWeightedArrayDistinct(bitAnd(toDate32OrZero(['\0', randomPrintableASCII(56)...
---

Stack trace:
pthread_kill@@GLIBC_2.34 @ 0x00000000000969fd
gsignal @ 0x0000000000042476
__lgamma_r_finite@GLIBC_2.15 @ 0x00000000000287f3
src/Common/Exception.cpp:54: DB::abortOnFailedAssertion(String const&, std::basic_string_view<char, std::char_traits<char>>, void* const*, unsigned long, unsigned long) @ 0x0000000015c6d63c
src/Common/Exception.cpp:87: DB::handle_error_code(String const&, std::basic_string_view<char, std::char_traits<char>>, int, bool, std::vector<void*, std::allocator<void*>> const&) @ 0x0000000015c6ea8...
src/Common/Exception.cpp:138: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000015c6eda5
src/Common/Exception.h:123: DB::Exception::Exception(String&&, int, String, bool) @ 0x000000000d60fd54
src/Common/Exception.h:58: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000d60f8d3
src/Common/Exception.h:141: DB::Exception::Exception<String, std::basic_string_view<char, std::char_traits<char>>&, String&, String&>(int, FormatStringHelperImpl<std::type_identity<String>::type, std:...
src/Interpreters/executeQuery.cpp:1284: DB::executeQueryImpl(char const*, char const*, std::shared_ptr<DB::Context>, DB::QueryFlags, DB::QueryProcessingStage::Enum, std::unique_ptr<DB::ReadBuffer, std...
src/Interpreters/executeQuery.cpp:1959: DB::executeQuery(String const&, std::shared_ptr<DB::Context>, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x000000001c247754
src/Server/TCPHandler.cpp:776: DB::TCPHandler::runImpl() @ 0x000000001fa48b49
src/Server/TCPHandler.cpp:2866: DB::TCPHandler::run() @ 0x000000001fa63c24
base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000025f1110e
base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000025f1177b
base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000025eb1c7f
base/poco/Foundation/src/Thread_POSIX.cpp:341: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000025eaf30f
start_thread @ 0x0000000000094ac3
__GI___clone3 @ 0x00000000001268c0

Metadata

Metadata

Labels

fuzzProblem found by one of the fuzzerstestingSpecial issue with list of bugs found by CI

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions