16 lines
404 B
Plaintext
16 lines
404 B
Plaintext
# 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
|