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,12 @@
# name: benchmark/cast/double_bignum.benchmark
# description: Casting of a Double to bignum
# group: [cast]
name Casting of Double to Bignum
group csv
load
CREATE TABLE t1 AS select 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368 as a from range(0,10000000) tbl(i);
run
create or replace table t2 as select a::bignum from t1

View File

@@ -0,0 +1,9 @@
# name: benchmark/cast/from_bignum/bignum_double.benchmark
# description: Casting of a bignum to double
# group: [from_bignum]
load
CREATE TABLE t1 AS select 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368::bignum as a from range(0,10000000) tbl(i);
run
create or replace table t2 as select a::double from t1

View File

@@ -0,0 +1,9 @@
# name: benchmark/cast/from_bignum/bignum_varchar.benchmark
# description: Casting of a bignum to varchar
# group: [from_bignum]
load
CREATE TABLE t1 AS select 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368::bignum as a from range(0,10000000) tbl(i);
run
create or replace table t2 as select a::varchar from t1

View File

@@ -0,0 +1,12 @@
# name: benchmark/cast/from_bignum/bignum_varchar_100k.benchmark
# description: Casting of a bignum with 100k digits to varchar
# group: [from_bignum]
name Casting of a bignum with 100k digits to varchar
group csv
load
CREATE TABLE t1 AS select concat('1', repeat('0', 100000))::bignum as a;
run
SELECT a::varchar from t1

View File

@@ -0,0 +1,12 @@
# name: benchmark/cast/hugeint_bignum.benchmark
# description: Casting of a HUGEINT to Bignum
# group: [cast]
name Casting of UHUGEINT to Bignum
group csv
load
CREATE TABLE t1 AS select '340282366920938463463374607431768211455'::UHUGEINT as a from range(0,10000000) tbl(i);
run
create or replace table t2 as select a::bignum from t1

View File

@@ -0,0 +1,12 @@
# name: benchmark/cast/integer_bignum.benchmark
# description: Casting of a UBIGINT to Bignum
# group: [cast]
name Casting of Double to Bignum
group csv
load
CREATE TABLE t1 AS select 18446744073709551615::UBIGINT as a from range(0,10000000) tbl(i);
run
create or replace table t2 as select a::bignum from t1

View File

@@ -0,0 +1,12 @@
# name: benchmark/cast/small_double_bignum.benchmark
# description: Casting of small doubles to bignum
# group: [cast]
name Casting of Small Doubles to Bignum
group csv
load
CREATE TABLE t1 AS select '340282366920938463463374607431768211455'::DOUBLE as a from range(0,10000000) tbl(i);
run
create or replace table t2 as select a::bignum from t1

View File

@@ -0,0 +1,12 @@
# name: benchmark/cast/small_varchar_bignum.benchmark
# description: Casting of small varchar values to bignum
# group: [cast]
name Casting of small varchar values to Bignum
group csv
load
CREATE TABLE t1 AS select '340282366920938463463374607431768211455' as a from range(0,10000000) tbl(i);
run
create or replace table t2 as select a::bignum from t1

View File

@@ -0,0 +1,12 @@
# name: benchmark/cast/smallint_bignum.benchmark
# description: Casting of a USMALLINT to Bignum
# group: [cast]
name Casting of USMALLINT to Bignum
group csv
load
CREATE TABLE t1 AS select 65535::USMALLINT as a from range(0,10000000) tbl(i);
run
create or replace table t2 as select a::bignum from t1

View File

@@ -0,0 +1,12 @@
# name: benchmark/cast/varchar_bignum.benchmark
# description: Casting of a varchar to bignum
# group: [cast]
name Casting of Varchar to Bignum
group csv
load
CREATE TABLE t1 AS select '179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368' as a from range(0,10000000) tbl(i);
run
create or replace table t2 as select a::bignum from t1

View File

@@ -0,0 +1,12 @@
# name: benchmark/cast/varchar_bignum_100k.benchmark
# description: Casting of a Varchar with 100k digits to bignum
# group: [cast]
name Casting of a Varchar with 100k digits to bignum
group csv
load
CREATE TABLE t1 AS select concat('1', repeat('0', 100000)) as a;
run
SELECT a::bignum from t1

View File

@@ -0,0 +1,12 @@
# name: benchmark/cast/varchar_bignum_10M.benchmark
# description: Casting of a Varchar with 10M digits to bignum
# group: [cast]
name Casting of a Varchar with 10M digits to bignum
group csv
load
CREATE TABLE t1 AS select concat('1', repeat('0', 10000000)) as a;
run
SELECT a::bignum from t1

View File

@@ -0,0 +1,12 @@
# name: benchmark/cast/varchar_bignum_1M.benchmark
# description: Casting of a Varchar with 1M digits to bignum
# group: [cast]
name Casting of a Varchar with 1M digits to bignum
group csv
load
CREATE TABLE t1 AS select concat('1', repeat('0', 1000000)) as a;
run
SELECT a::bignum from t1