Skip to content

Commit cb4ea23

Browse files
committed
fix error message
1 parent c74df6a commit cb4ea23

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

bigframes/functions/_function_session.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -991,8 +991,7 @@ def _convert_row_processor_sig(
991991
if param_type == bf_series.Series:
992992
raise bf_formatting.create_exception_with_feedback_link(
993993
TypeError,
994-
"Due to current UDF serialization requirements, argument type "
995-
"hint must be Pandas Series, not BigFrames Series.",
994+
"Argument type hint must be Pandas Series, not BigFrames Series.",
996995
)
997996
if param_type == pandas.Series:
998997
msg = bfe.format_message("input_types=Series is in preview.")

tests/system/large/functions/test_managed_function.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ def serialize_row(row):
703703

704704
with pytest.raises(
705705
TypeError,
706-
match="Due to current UDF serialization requirements, argument type hint must be Pandas Series, not BigFrames Series.",
706+
match="Argument type hint must be Pandas Series, not BigFrames Series.",
707707
):
708708
serialize_row_mf = session.udf(
709709
input_types=bigframes.series.Series,

tests/system/large/functions/test_remote_function.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3091,7 +3091,7 @@ def is_sum_positive_series(s: pandas.Series) -> bool:
30913091

30923092
with pytest.raises(
30933093
TypeError,
3094-
match="Due to current UDF serialization requirements, argument type hint must be Pandas Series, not BigFrames Series.",
3094+
match="Argument type hint must be Pandas Series, not BigFrames Series.",
30953095
):
30963096
session.remote_function(
30973097
input_types=bigframes.series.Series,

0 commit comments

Comments
 (0)