Skip to content

Commit f7504b5

Browse files
authored
Fix error in px.split docs (#2134)
Summary: Fix error in `px.split` docs Relevant Issues: N/A Type of change: /kind cleanup Test Plan: N/A Signed-off-by: Dom Del Nano <[email protected]>
1 parent 0015833 commit f7504b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/carnot/funcs/builtins/json_ops.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ class SplitUDF : public udf::ScalarUDF {
255255
| # Returns By=http://frontend.px.dev;URI=http://testclient.px.dev
256256
| df.xfcc_hdr = px.pluck(df.req_headers, 'X-Forwarded-Client-Cert')
257257
| df.xfcc_parts = px.split(df.xfcc_hdr, ';')
258-
| df.by = px.pluck_array(df.xfcc_hdr, 0) # Returns "By=http://frontend.px.dev"
259-
| df.uri = px.pluck_array(df.xfcc_hdr, 1) # Returns "URI=http://testclient.px.dev"
258+
| df.by = px.pluck_array(df.xfcc_parts, 0) # Returns "By=http://frontend.px.dev"
259+
| df.uri = px.pluck_array(df.xfcc_parts, 1) # Returns "URI=http://testclient.px.dev"
260260
)doc")
261261
.Arg("input_str", "The string to split.")
262262
.Arg("delimiter", "The string value to split the input string.")

0 commit comments

Comments
 (0)