924060929 commented on code in PR #68853:
URL: https://github.com/apache/doris/pull/68853#discussion_r4678065799


##########
be/src/exprs/aggregate/aggregate_function_min_max_impl.h:
##########
@@ -145,6 +145,13 @@ AggregateFunctionPtr 
create_aggregate_function_single_value(const String& name,
         return creator_without_type::create_unary_arguments<
                 AggregateFunctionsSingleValue<Data<SingleValueDataColumn>>>(
                 argument_types, result_is_nullable, attr);
+    case PrimitiveType::TYPE_FILE:
+        if constexpr (Data<SingleValueDataColumn>::IS_ANY) {
+            return creator_without_type::create_unary_arguments<
+                    
AggregateFunctionsSingleValue<Data<SingleValueDataColumn>>>(

Review Comment:
   `SingleValueDataColumn` predates this PR. The new `ANY_VALUE(FILE)` and 
`MIN_BY`/`MAX_BY` FILE payload support now routes those values through it. I 
checked the compression step with the worktree’s LZ4 library. For 
`s3://bucket/` followed by 300 `a` characters (312 bytes), `LZ4_compressBound` 
returned 329 and `LZ4_compress_fast` wrote 24. Those counts are for the URI 
payload alone. That difference carries through `DataTypeFile::serialize` to the 
exact-length `DCHECK` in `SingleValueDataColumn::write`.
   
   Could we add that URI to 
`AnyValueCarriesFileAcrossEmptyNullAndPartialStates` and run the 
serialize/deserialize round trip with `DCHECK` enabled? The existing long field 
is the `VARBINARY` inline payload. A long URI exercises the STRING compression 
path used by these newly supported aggregates.



-- 
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]

Reply via email to