should be it

This commit is contained in:
2025-10-24 19:21:19 -05:00
parent a4b23fc57c
commit f09560c7b1
14047 changed files with 3161551 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
# name: benchmark/micro/cast/cast_enum_string.benchmark
# description: Benchmark casting enums to varchar and the comparisons
# group: [cast]
name Cast ENUM -> VARCHAR
group cast
load
create type integer_enum as enum('0', '1', '2', '3', '4');
create table integers as select cast((i%5)::varchar as integer_enum) as enum_val, (i%7) as integer_val, (i%7)::varchar as string_val from range(100000000) t(i);
# cast both should auto-cast to varchar
run
select count(*) FROM integers WHERE enum_val = integer_val;