We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1860772 commit 661fb2dCopy full SHA for 661fb2d
src/carnot/funcs/builtins/json_ops.h
@@ -262,7 +262,8 @@ class SplitUDF : public udf::ScalarUDF {
262
| df = px.DataFrame('http_events', start_time='-5m')
263
| # Returns By=http://frontend.px.dev;URI=http://testclient.px.dev
264
| 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"
+ | df.xfcc_parts = px.split(df.xfcc_hdr, ';')
266
+ | df.by = px.pluck_array(df.xfcc_hdr, 0) # Returns "By=http://frontend.px.dev"
267
| df.uri = px.pluck_array(df.xfcc_hdr, 1) # Returns "URI=http://testclient.px.dev"
268
)doc")
269
.Arg("input_str", "The string to split.")
0 commit comments