should be it
This commit is contained in:
15
external/duckdb/benchmark/micro/cast/cast_timestamp_string.benchmark
vendored
Normal file
15
external/duckdb/benchmark/micro/cast/cast_timestamp_string.benchmark
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# name: benchmark/micro/cast/cast_timestamp_string.benchmark
|
||||
# description: Cast timestamp values to string
|
||||
# group: [cast]
|
||||
|
||||
name Cast TIMESTAMP -> VARCHAR
|
||||
group cast
|
||||
|
||||
load
|
||||
CREATE TABLE timestamps AS SELECT TIMESTAMP '1992-01-01 12:00:00' + (i % 10000) * interval '1' day AS d FROM generate_series(0, 10000000, 1) tbl(i);
|
||||
|
||||
run
|
||||
SELECT MIN(CAST(d AS STRING)) FROM timestamps;
|
||||
|
||||
result I
|
||||
1992-01-01 12:00:00
|
||||
Reference in New Issue
Block a user