From 33c44cee88342fd3597fd7c659da9e1e89935dd9 Mon Sep 17 00:00:00 2001 From: KonstantAnxiety <58992437+KonstantAnxiety@users.noreply.github.com> Date: Tue, 21 May 2024 20:24:11 +0300 Subject: [PATCH] DLFR-1866 CH: Switch to basic type conversion functions in arrays instead of orNull variants --- .../formula/definitions/functions_array.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dl_connector_clickhouse/dl_connector_clickhouse/formula/definitions/functions_array.py b/lib/dl_connector_clickhouse/dl_connector_clickhouse/formula/definitions/functions_array.py index 1f39bae68..255554e84 100644 --- a/lib/dl_connector_clickhouse/dl_connector_clickhouse/formula/definitions/functions_array.py +++ b/lib/dl_connector_clickhouse/dl_connector_clickhouse/formula/definitions/functions_array.py @@ -148,7 +148,7 @@ base.FuncFloatArrayFromFloatArray.for_dialect(D.CLICKHOUSE), base.FuncFloatArrayFromStringArray( variants=[ - V(D.CLICKHOUSE, lambda array: sa.func.arrayMap(Lambda(lambda x: sa.func.toFloat64OrNull(x)), array)), + V(D.CLICKHOUSE, lambda array: sa.func.arrayMap(Lambda(lambda x: sa.func.toFloat64(x)), array)), ] ), # cast_arr_int @@ -160,7 +160,7 @@ ), base.FuncIntArrayFromStringArray( variants=[ - V(D.CLICKHOUSE, lambda array: sa.func.arrayMap(Lambda(lambda x: sa.func.toInt64OrNull(x)), array)), + V(D.CLICKHOUSE, lambda array: sa.func.arrayMap(Lambda(lambda x: sa.func.toInt64(x)), array)), ] ), # cast_arr_str