From 59ce02f973c78a6dad75c777ba23b268d4eaa39e Mon Sep 17 00:00:00 2001 From: Simon Lin Date: Fri, 25 Oct 2024 19:38:52 +1100 Subject: [PATCH] c --- py-polars/polars/expr/list.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/py-polars/polars/expr/list.py b/py-polars/polars/expr/list.py index cfeb56f89d09..2192b9f11da0 100644 --- a/py-polars/polars/expr/list.py +++ b/py-polars/polars/expr/list.py @@ -1138,7 +1138,8 @@ def to_struct( -------- If `fields` is not provided, or if `fields` is a function and `upper_bound` is not set, this may lead to unexpected results. - We allow this, but it is considered a bug in the user's query. + Future versions of Polars may be changed to raise an error in + these cases. Examples -------- @@ -1196,7 +1197,9 @@ def to_struct( if not _eager: otherwise = ( "otherwise the output schema will not be known, " - "causing subsequent operations to fail." + "causing subsequent operations to fail. " + "Future versions of Polars may be changed " + "to raise an error in these cases." ) if fields is None: