Skip to content

Commit 80c8cf6

Browse files
authored
feat: uuid function from v4 to v7 (#16827)
1 parent 9af8ba3 commit 80c8cf6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ typetag = "0.2.3"
485485
unicode-segmentation = "1.10.1"
486486
unindent = "0.2"
487487
url = "2.3.1"
488-
uuid = { version = "1.10.0", features = ["serde", "v4", "v7"] }
488+
uuid = { version = "1.10.0", features = ["std", "serde", "v4", "v7"] }
489489
volo-thrift = "0.10"
490490
walkdir = "2.3.2"
491491
wiremock = "0.6"

src/query/functions/src/scalars/other.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ pub fn register(registry: &mut FunctionRegistry) {
234234
let mut builder = BinaryColumnBuilder::with_capacity(ctx.num_rows, 0);
235235

236236
for _ in 0..ctx.num_rows {
237-
let value = Uuid::new_v4();
237+
let value = Uuid::now_v7();
238238
write!(&mut builder.data, "{}", value).unwrap();
239239
builder.commit_row();
240240
}

0 commit comments

Comments
 (0)