zhangstar333 commented on code in PR #17315:
URL: https://github.com/apache/doris/pull/17315#discussion_r1122561704
##########
be/src/vec/aggregate_functions/aggregate_function_window.h:
##########
@@ -274,6 +274,8 @@ struct LeadLagData {
const auto* nullable_column = assert_cast<const
ColumnNullable*>(column);
if (nullable_column->is_null_at(0)) {
_default_value.reset();
+ } else {
+
_default_value.set_value(nullable_column->get_nested_column_ptr(), 0);
Review Comment:
seems the default value must be const, so if it's nullable_column, the
default value must be NULL?
--
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]