Skip to content

Commit 661fb2d

Browse files
committed
Ensure px.split is used in the doc string
Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
1 parent 1860772 commit 661fb2d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/carnot/funcs/builtins/json_ops.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,8 @@ class SplitUDF : public udf::ScalarUDF {
262262
| df = px.DataFrame('http_events', start_time='-5m')
263263
| # Returns By=http://frontend.px.dev;URI=http://testclient.px.dev
264264
| df.xfcc_hdr = px.pluck(df.req_headers, 'X-Forwarded-Client-Cert')
265-
| df.by= px.pluck_array(df.xfcc_hdr, 0) # Returns "By=http://frontend.px.dev"
265+
| df.xfcc_parts = px.split(df.xfcc_hdr, ';')
266+
| df.by = px.pluck_array(df.xfcc_hdr, 0) # Returns "By=http://frontend.px.dev"
266267
| df.uri = px.pluck_array(df.xfcc_hdr, 1) # Returns "URI=http://testclient.px.dev"
267268
)doc")
268269
.Arg("input_str", "The string to split.")

0 commit comments

Comments
 (0)