Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): Update VRL to 0.8.0 #18991

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ members = [
]

[workspace.dependencies]
vrl = { version = "0.7.0", features = ["cli"] }
vrl = { version = "0.8.0", features = ["cli"] }

pin-project = { version = "1.1.3", default-features = false }

Expand Down Expand Up @@ -369,7 +369,7 @@ tokio = { version = "1.33.0", features = ["test-util"] }
tokio-test = "0.4.3"
tower-test = "0.4.0"
vector-lib = { path = "lib/vector-lib", default-features = false, features = ["vrl", "test"] }
vrl = { version = "0.7.0", features = ["cli", "test", "test_framework", "arbitrary"] }
vrl = { version = "0.8.0", features = ["cli", "test", "test_framework", "arbitrary"] }

wiremock = "0.5.19"
zstd = { version = "0.13.0", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion lib/codecs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ futures = { version = "0.3", default-features = false }
indoc = { version = "2", default-features = false }
tokio = { version = "1", features = ["test-util"] }
similar-asserts = "1.5.0"
vrl = { version = "0.7.0", features = ["cli", "test", "test_framework", "arbitrary"] }
vrl = { version = "0.8.0", features = ["cli", "test", "test_framework", "arbitrary"] }
vector-core = { path = "../vector-core", default-features = false, features = ["test"] }

[features]
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/vector-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ rand = "0.8.5"
rand_distr = "0.4.3"
tracing-subscriber = { version = "0.3.17", default-features = false, features = ["env-filter", "fmt", "ansi", "registry"] }
vector-common = { path = "../vector-common", default-features = false, features = ["test"] }
vrl = { version = "0.7.0", features = ["cli", "test", "test_framework", "arbitrary"] }
vrl = { version = "0.8.0", features = ["cli", "test", "test_framework", "arbitrary"] }

[features]
api = ["dep:async-graphql"]
Expand Down
2 changes: 1 addition & 1 deletion lib/vector-vrl/tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ publish = false

[dependencies]
enrichment = { path = "../../enrichment" }
vrl = { version = "0.7.0", features = ["test", "test_framework"] }
vrl = { version = "0.8.0", features = ["test", "test_framework"] }
vector-vrl-functions = { path = "../../vector-vrl/functions" }

ansi_term = "0.12"
Expand Down
38 changes: 38 additions & 0 deletions website/cue/reference/remap/functions/contains_all.cue
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
package metadata

remap: functions: from_unix_timestamp: {
category: "String"
description: """
Parses the string `value` representing a floating point number to a float.
"""

arguments: [
{
name: "value"
description: "The string to parse."
required: true
type: ["string"]
},
]
internal_failure_reasons: []
return: types: ["float"]

examples: [
{
title: "Parse negative integer"
source: #"parse_float!("-42")"#
return: "-42.0"
},
{
title: "Parse negative integer"
source: #"parse_float!("42.38")"#
return: "42.38"
},
{
title: "Scientific notation"
source: #"parse_float!("2.5e3")"#
return: "2500.0"
},
]

}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ remap: functions: from_unix_timestamp: {
seconds: "Express Unix time in seconds"
milliseconds: "Express Unix time in milliseconds"
nanoseconds: "Express Unix time in nanoseconds"
nanoseconds: "Express Unix time in microseconds"
}
default: "seconds"
},
Expand Down
45 changes: 45 additions & 0 deletions website/cue/reference/remap/functions/parse_float.cue
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
package metadata

remap: functions: from_unix_timestamp: {
category: "Parse"
description: """
Parses the string `value` representing a floating point number in base 10 to an float.
"""

arguments: [
{
name: "value"
description: "The text to search."
required: true
type: ["string"]
},
{
name: "substrings"
description: "An of substrings to search for in `value`."
required: true
type: ["array"]
},
{
name: "case_sensitive"
description: "Whether the match should be case sensitive."
required: false
type: ["boolean"]
},
]
internal_failure_reasons: []
return: types: ["boolean"]

examples: [
{
title: "String contains all"
source: #"contains_all("The Needle In The Haystack", ["Needle", "Haystack"])"#
return: true
},
{
title: "String contains all (case sensitive)"
source: #""contains_all("the NEEDLE in the haystack", ["needle", "haystack"])"#
return: false
},
]

}