diff --git a/substrait_consumer/functional/queries/ibis_expressions/string_functions_expr.py b/substrait_consumer/functional/queries/ibis_expressions/string_functions_expr.py index 2f2e4526..4abb96b5 100644 --- a/substrait_consumer/functional/queries/ibis_expressions/string_functions_expr.py +++ b/substrait_consumer/functional/queries/ibis_expressions/string_functions_expr.py @@ -78,17 +78,17 @@ def rpad_expr(nation, orders): def ltrim_expr(nation, orders): - new_col = nation.n_name.lstrip("A").name("ltrim_N_NAME") + new_col = nation.n_name.lstrip().name("ltrim_N_NAME") return nation[nation.n_name, new_col] def rtrim_expr(nation, orders): - new_col = nation.n_name.rstrip("A").name("rtrim_N_NAME") + new_col = nation.n_name.rstrip().name("rtrim_N_NAME") return nation[nation.n_name, new_col] def trim_expr(nation, orders): - new_col = nation.n_name.strip("A").name("trim_N_NAME") + new_col = nation.n_name.strip().name("trim_N_NAME") return nation[nation.n_name, new_col] diff --git a/substrait_consumer/tests/functional/extension_functions/string_snapshots/IbisProducer/ltrim-ibis_outcome.txt b/substrait_consumer/tests/functional/extension_functions/string_snapshots/IbisProducer/ltrim-ibis_outcome.txt index e5e4720b..2ee6126c 100644 --- a/substrait_consumer/tests/functional/extension_functions/string_snapshots/IbisProducer/ltrim-ibis_outcome.txt +++ b/substrait_consumer/tests/functional/extension_functions/string_snapshots/IbisProducer/ltrim-ibis_outcome.txt @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/substrait_consumer/tests/functional/extension_functions/string_snapshots/IbisProducer/rtrim-ibis_outcome.txt b/substrait_consumer/tests/functional/extension_functions/string_snapshots/IbisProducer/rtrim-ibis_outcome.txt index e5e4720b..2ee6126c 100644 --- a/substrait_consumer/tests/functional/extension_functions/string_snapshots/IbisProducer/rtrim-ibis_outcome.txt +++ b/substrait_consumer/tests/functional/extension_functions/string_snapshots/IbisProducer/rtrim-ibis_outcome.txt @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/substrait_consumer/tests/functional/extension_functions/string_snapshots/IbisProducer/trim-ibis_outcome.txt b/substrait_consumer/tests/functional/extension_functions/string_snapshots/IbisProducer/trim-ibis_outcome.txt index e5e4720b..2ee6126c 100644 --- a/substrait_consumer/tests/functional/extension_functions/string_snapshots/IbisProducer/trim-ibis_outcome.txt +++ b/substrait_consumer/tests/functional/extension_functions/string_snapshots/IbisProducer/trim-ibis_outcome.txt @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file