Skip to content

Commit

Permalink
Fix decode_percent with fallible assertion cloudflare managed (#193)
Browse files Browse the repository at this point in the history
decode_percent!() has been resulting in errors when null is encountered.
This fix will allow it to not error out when nulls are encountered.

This fix is for Cloudflare managed source on the http_requests table

Signed-off-by: Darius <darius@dubiza.io>
  • Loading branch information
dubiza authored Jan 8, 2025
1 parent 819d8c1 commit 8413369
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ transform: |
if err == null {
.url = parsed
if .url.query != null {
.url.query = decode_percent!(split!(.json.ClientRequestReferer, "?")[1])
.url.query = decode_percent(split!(.json.ClientRequestReferer, "?")[1]) ?? null
}
.url.domain = del(.url.host)
}
Expand Down

0 comments on commit 8413369

Please sign in to comment.