Description
Hi team,
I meet an error when try to query a distribute table:
Here is query and error:
select clsfd_trffc_chnl_name,page_type_txt,sum(clsfd_pv_cnt) as pv from my_db.all_PI_TRAFFIC where 1=1 group by clsfd_trffc_chnl_name,page_type_txt order by clsfd_trffc_chnl_name,page_type_txt;
Exception: Conversion from AggregateFunction(sum, Nullable(Int64)) to AggregateFunction(sum, Int64) is not supported: While executing Remote.
but I try the same column on the local server, it works well. Here is query
0be97fd088ac :) select clsfd_trffc_chnl_name,page_type_txt,sum(clsfd_pv_cnt) as pv from my_db.PI_TRAFFIC where 1=1 group by clsfd_trffc_chnl_name,page_type_txt order by clsfd_trffc_chnl_name,page_type_txt;
I am not sure if it is a bug. Anyone know why?
How can I do to avoid it happens?
Activity
akuzm commentedon Apr 15, 2021
Please post the
CREATE TABLE
statements for both tables,my_db.PI_TRAFFIC
andmy_db.all_PI_TRAFFIC
.Slach commentedon Jun 28, 2022
@akuzm
works fine in 20.x, 21.x and 22.3 but failed in 22.4+
alexey-milovidov commentedon Dec 26, 2022
The data types
AggregateFunction(argMax, Nullable(String), DateTime)
andAggregateFunction(argMax, String, DateTime)
are definitely incompatible:
The error message is correct.
The previous version might appear to be working due to a bug we have now fixed.