Skip to content

Commit ec3e046

Browse files
committed
Merge branch 'master'
2 parents 55db2f5 + 291ab08 commit ec3e046

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

docs/cloud/guides/security/03_data-masking.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ For basic data masking use cases, the `replace` family of functions offers a con
1919

2020
| Function | Description |
2121
|------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------|
22-
| [`replaceOne`](/sql-reference/functions/string-replace-functions#replaceone) | Replaces the first occurrence of a pattern in a haystack string with the provided replacement string. |
23-
| [`replaceAll`](/sql-reference/functions/string-replace-functions#replaceall) | Replaces all occurrences of a pattern in a haystack string with the provided replacement string. |
24-
| [`replaceRegexpOne`](/sql-reference/functions/string-replace-functions#replaceregexpone) | Replaces the first occurrence of a substring matching a regular expression pattern (in re2 syntax) in a haystack with the provided replacement string. |
25-
| [`replaceRegexpAll`](/sql-reference/functions/string-replace-functions#replaceregexpall) | Replaces all occurrences of a substring matching a regular expression pattern (in re2 syntax) in a haystack with the provided replacement string. |
22+
| [`replaceOne`](/sql-reference/functions/string-replace-functions#replaceOne) | Replaces the first occurrence of a pattern in a haystack string with the provided replacement string. |
23+
| [`replaceAll`](/sql-reference/functions/string-replace-functions#replaceAll) | Replaces all occurrences of a pattern in a haystack string with the provided replacement string. |
24+
| [`replaceRegexpOne`](/sql-reference/functions/string-replace-functions#replaceRegexpOne) | Replaces the first occurrence of a substring matching a regular expression pattern (in re2 syntax) in a haystack with the provided replacement string. |
25+
| [`replaceRegexpAll`](/sql-reference/functions/string-replace-functions#replaceRegexpAll) | Replaces all occurrences of a substring matching a regular expression pattern (in re2 syntax) in a haystack with the provided replacement string. |
2626

2727
For example, you can replace the name "John Smith" with a placeholder `[CUSTOMER_NAME]` using the `replaceOne` function:
2828

docs/use-cases/observability/clickstack/example-datasets/sample-data.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ for filename in $(tar -tf sample.tar.gz); do
9393
endpoint="http://localhost:4318/v1/${filename%.json}"
9494
echo "loading ${filename%.json}"
9595
tar -xOf sample.tar.gz "$filename" | while read -r line; do
96-
echo "$line" | curl -s -o /dev/null -X POST "$endpoint" \
96+
printf '%s\n' "$line" | curl -s -o /dev/null -X POST "$endpoint" \
9797
-H "Content-Type: application/json" \
9898
-H "authorization: ${CLICKSTACK_API_KEY}" \
9999
--data-binary @-

scripts/settings/autogenerate-settings.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ if [ -f "$FUNCTION_SQL_FILE" ]; then
267267
"Time Series"
268268
"Other"
269269
"Time Window"
270+
"String Replacement"
270271
"String"
271272
"Tuple"
272273
"ULID"
@@ -385,6 +386,7 @@ insert_src_files=(
385386
"time_series-functions.md"
386387
"other-functions.md"
387388
"time_window-functions.md"
389+
"string_replacement-functions.md"
388390
"string-functions.md"
389391
"tuple-functions.md"
390392
"ulid-functions.md"
@@ -419,6 +421,7 @@ insert_dest_files=(
419421
"docs/sql-reference/functions/time-series-functions.md"
420422
"docs/sql-reference/functions/other-functions.md"
421423
"docs/sql-reference/functions/time-window-functions.md"
424+
"docs/sql-reference/functions/string-replace-functions.md"
422425
"docs/sql-reference/functions/string-functions.md"
423426
"docs/sql-reference/functions/tuple-functions.md"
424427
"docs/sql-reference/functions/ulid-functions.md"

0 commit comments

Comments
 (0)