mirror of
https://github.com/elastic/eland.git
synced 2025-07-11 00:02:14 +08:00
Ignore type checking for agg_value
This commit is contained in:
parent
09dd56c399
commit
9d342dd91f
@ -746,7 +746,7 @@ class Operations:
|
||||
if pd_agg in {"max", "min", "median", "sum", "mode"}:
|
||||
# 'sum' isn't representable with bool, use int64
|
||||
if pd_agg == "sum" and field.is_bool:
|
||||
agg_value = np.int64(agg_value)
|
||||
agg_value = np.int64(agg_value) # type: ignore
|
||||
else:
|
||||
agg_value = field.np_dtype.type(agg_value)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user