Skip to content

Commit 1e00278

Browse files
committed
fix(functions): update stacklevel parameter to improve error reporting in data fusion functions
1 parent 8599f2d commit 1e00278

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/datafusion/functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def _warn_expr_for_literal_arg(function_name: str, arg_name: str) -> None:
6767
f"Passing Expr for {function_name}() argument {arg_name!r} is deprecated; "
6868
"pass a Python literal instead.",
6969
DeprecationWarning,
70-
stacklevel=3,
70+
stacklevel=4,
7171
)
7272

7373

0 commit comments

Comments
 (0)