lwz9103 opened a new issue, #8921: URL: https://github.com/apache/incubator-gluten/issues/8921
### Backend CH (ClickHouse) ### Bug description test sql: ``` select CAL_DT, avg(PRICE), count(0) over() COU, SUM(-1.1) over() SU, --AVG(-2) over() AV, max(-1.1) over() MA, min(-3) over() MI, FIRST_VALUE(-2) over() FI, LAST_VALUE(-2) over() LA, lag(-2) over(order by CAL_DT) lag0, lead(-2) over(order by CAL_DT) lead0 from TEST_KYLIN_FACT where CAL_DT > DATE'2013-12-30' group by CAL_DT order by CAL_DT ``` ### Spark version None ### Spark configurations _No response_ ### System information _No response_ ### Relevant logs ```bash 025-03-06 01:41:00.938 <Fatal> : Logical error: 'Unexpected return type from checkDecimalOverflowSparkOrNull. Expected Nullable(Decimal(2, 1)). Got Decimal32. Action: FUNCTION checkDecimalOverflowSparkOrNull(MA_95 :: 14, 2_30 :: 19, 1_25 : 5) -> MA_95 Nullable(Decimal(2, 1)) : 18, input block structure:MA_95 Decimal(2, 1) Decimal32(size = 1), 2_30 Int32 Const(size = 1, Int32(size = 1)), 1_25 Int32 Const(size = 1, Int32(size = 1))'. 2025-03-06 01:41:01.229 <Fatal> : Stack trace (when copying this message, always include the lines below): 0. /home/lwz/devSrc/gluten/cpp-ch/ClickHouse/contrib/llvm-project/libcxx/include/__exception/exception.h:106: std::exception::capture() @ 0x000000000bb058e2 1. /home/lwz/devSrc/gluten/cpp-ch/ClickHouse/contrib/llvm-project/libcxx/include/__exception/exception.h:81: std::exception::exception[abi:se190107]() @ 0x000000000bb058ad 2. /home/lwz/devSrc/gluten/cpp-ch/ClickHouse/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x000000002629bf60 3. /home/lwz/devSrc/gluten/cpp-ch/ClickHouse/src/Common/Exception.cpp:108: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x0000000015d3fcb1 4. /home/lwz/devSrc/gluten/cpp-ch/ClickHouse/src/Common/Exception.h:114: DB::Exception::Exception(String&&, int, bool) @ 0x000000000bb02b4a 5. /home/lwz/devSrc/gluten/cpp-ch/ClickHouse/src/Common/Exception.h:58: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000bb00669 6. /home/lwz/devSrc/gluten/cpp-ch/ClickHouse/src/Common/Exception.h:132: DB::Exception::Exception<String, String, String, String, String>(int, FormatStringHelperImpl<std::type_identity<String>::type, std::type_identity<String>::type, std::type_identity<String>::type, std::type_identity<String>::type, std::type_identity<String>::type>, String&&, String&&, String&&, String&&, String&&) @ 0x000000000ea6c237 7. /home/lwz/devSrc/gluten/cpp-ch/ClickHouse/src/Interpreters/ExpressionActions.cpp:639: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool, bool) @ 0x000000001c331f6e 8. /home/lwz/devSrc/gluten/cpp-ch/ClickHouse/src/Interpreters/ExpressionActions.cpp:770: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool, bool) const @ 0x000000001c33113f 9. /home/lwz/devSrc/gluten/cpp-ch/ClickHouse/src/Processors/Transforms/ExpressionTransform.cpp:25: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001fa10848 10. /home/lwz/devSrc/gluten/cpp-ch/ClickHouse/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000016486d45 11. /home/lwz/devSrc/gluten/cpp-ch/ClickHouse/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001f4a5835 ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
