From 7ed5ff6d8830141504faf5d73c67b8d088224320 Mon Sep 17 00:00:00 2001 From: Satwant Rana <4613501+satrana42@users.noreply.github.com> Date: Thu, 26 Sep 2024 19:25:33 +0530 Subject: [PATCH] Fix an integration test (#576) Somehow modulo operator doesn't work with pyarrow, which is executed inside python wrapper in rust code. In this change, we remove usages of the modulo operator. --- fennel/client_tests/test_preproc_filter.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/fennel/client_tests/test_preproc_filter.py b/fennel/client_tests/test_preproc_filter.py index 01c17d5c1..714ec8829 100644 --- a/fennel/client_tests/test_preproc_filter.py +++ b/fennel/client_tests/test_preproc_filter.py @@ -29,28 +29,29 @@ def test_preproc_filter(client): cdc="append", disorder="14d", env="prod", - where=lambda x: ((x["age"] > 0) & (x["age"] % 100 == 1)), + where=lambda x: ((x["age"] > 0) & (x["age"] == 1)), ) @source( webhook.endpoint("A1"), cdc="append", disorder="14d", env="staging", + # repeat the conditions to test long lamda where=lambda x: ( (x["age"] > 0) - & (x["age"] % 100 == 1) + & (x["age"] == 1) & (x["age"] > 0) - & (x["age"] % 100 == 1) + & (x["age"] == 1) & True & (x["age"] > 0) - & (x["age"] % 100 == 1) + & (x["age"] == 1) & (x["age"] > 0) - & (x["age"] % 100 == 1) + & (x["age"] == 1) & True & (x["age"] > 0) - & (x["age"] % 100 == 1) + & (x["age"] == 1) & (x["age"] > 0) - & (x["age"] % 100 == 1) + & (x["age"] == 1) & True ), )