[Bug](function) fix function define of Retention inconsist and change some static_cast to assert cast (#19455)
1. fix function define of `Retention` inconsist, this function return tinyint on `FE` and return uint8 on `BE` 2. make assert_cast support cast to derived 3. change some static cast to assert cast 4. support sum(bool)/avg(bool)
This commit is contained in:
@ -678,7 +678,9 @@ Status AggregationNode::_get_without_key_result(RuntimeState* state, Block* bloc
|
||||
if (!column_type->equals(*data_types[i])) {
|
||||
if (!is_array(remove_nullable(column_type))) {
|
||||
DCHECK(column_type->is_nullable());
|
||||
DCHECK(!data_types[i]->is_nullable());
|
||||
DCHECK(!data_types[i]->is_nullable())
|
||||
<< " column type: " << column_type->get_name()
|
||||
<< ", data type: " << data_types[i]->get_name();
|
||||
DCHECK(remove_nullable(column_type)->equals(*data_types[i]))
|
||||
<< " column type: " << remove_nullable(column_type)->get_name()
|
||||
<< ", data type: " << data_types[i]->get_name();
|
||||
|
||||
Reference in New Issue
Block a user