Skip to content

Commit d2c5c9c

Browse files
committed
ref: use truth value
1 parent 31c9131 commit d2c5c9c

File tree

1 file changed

+1
-1
lines changed
  • python/xorq/backends/let/datafusion

1 file changed

+1
-1
lines changed

python/xorq/backends/let/datafusion/udfs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def regex_split(s: str, pattern: str) -> list[str]:
135135
def temporal_strftime(array: dt.Timestamp(scale=9), pattern: dt.string) -> dt.string:
136136
pattern, *_rest = typing.cast(pa.StringArray, pattern).unique().to_pylist()
137137

138-
if len(_rest) > 0:
138+
if _rest > 0:
139139
raise com.XorqError(
140140
"Only a single scalar pattern is supported for DataFusion strftime"
141141
)

0 commit comments

Comments
 (0)