From 22d6c0de4b1988992de51bc01ab72a89c3148145 Mon Sep 17 00:00:00 2001 From: Sri Krishna chowdary K Date: Thu, 12 Dec 2024 12:09:16 +0530 Subject: [PATCH 1/2] Remove bft test cases, every test is now in substrait --- .../approx_count_distinct.yaml | 75 ---- cases/aggregate_generic/count.yaml | 40 --- cases/aggregate_generic/count_star.yaml | 46 --- cases/arithmetic/abs.yaml | 83 ----- cases/arithmetic/acos.yaml | 33 -- cases/arithmetic/acosh.yaml | 53 --- cases/arithmetic/add.yaml | 159 --------- cases/arithmetic/asin.yaml | 40 --- cases/arithmetic/asinh.yaml | 33 -- cases/arithmetic/atan.yaml | 40 --- cases/arithmetic/atan2.yaml | 41 --- cases/arithmetic/atanh.yaml | 40 --- cases/arithmetic/bitwise_and.yaml | 95 ------ cases/arithmetic/bitwise_not.yaml | 75 ---- cases/arithmetic/bitwise_or.yaml | 95 ------ cases/arithmetic/bitwise_xor.yaml | 95 ------ cases/arithmetic/cos.yaml | 40 --- cases/arithmetic/cosh.yaml | 40 --- cases/arithmetic/divide.yaml | 118 ------- cases/arithmetic/exp.yaml | 54 --- cases/arithmetic/factorial.yaml | 43 --- cases/arithmetic/max.yaml | 91 ----- cases/arithmetic/min.yaml | 91 ----- cases/arithmetic/modulus.yaml | 124 ------- cases/arithmetic/multiply.yaml | 147 -------- cases/arithmetic/negate.yaml | 90 ----- cases/arithmetic/power.yaml | 52 --- cases/arithmetic/sin.yaml | 40 --- cases/arithmetic/sinh.yaml | 40 --- cases/arithmetic/sqrt.yaml | 74 ---- cases/arithmetic/subtract.yaml | 135 -------- cases/arithmetic/sum.yaml | 96 ------ cases/arithmetic/tan.yaml | 40 --- cases/arithmetic/tanh.yaml | 40 --- cases/arithmetic_decimal/bitwise_and.yaml | 121 ------- cases/arithmetic_decimal/bitwise_or.yaml | 143 -------- cases/arithmetic_decimal/bitwise_xor.yaml | 142 -------- .../arithmetic_decimal/factorial_decimal.yaml | 59 ---- cases/arithmetic_decimal/max_decimal.yaml | 91 ----- cases/arithmetic_decimal/min_decimal.yaml | 77 ----- cases/arithmetic_decimal/power_decimal.yaml | 114 ------- cases/arithmetic_decimal/sqrt_decimal.yaml | 112 ------ cases/arithmetic_decimal/sum_decimal.yaml | 66 ---- cases/boolean/and.yaml | 79 ----- cases/boolean/and_not.yaml | 88 ----- cases/boolean/bool_and.yaml | 61 ---- cases/boolean/bool_or.yaml | 68 ---- cases/boolean/not.yaml | 28 -- cases/boolean/or.yaml | 79 ----- cases/boolean/xor.yaml | 79 ----- cases/comparison/between.yaml | 172 ---------- cases/comparison/coalesce.yaml | 113 ------- cases/comparison/equal.yaml | 124 ------- cases/comparison/gt.yaml | 142 -------- cases/comparison/gte.yaml | 160 --------- cases/comparison/is_finite.yaml | 47 --- cases/comparison/is_infinite.yaml | 47 --- cases/comparison/is_nan.yaml | 54 --- cases/comparison/is_not_distinct_from.yaml | 79 ----- cases/comparison/is_not_null.yaml | 47 --- cases/comparison/is_null.yaml | 40 --- cases/comparison/lt.yaml | 142 -------- cases/comparison/lte.yaml | 160 --------- cases/comparison/not_equal.yaml | 124 ------- cases/comparison/nullif.yaml | 115 ------- cases/datetime/add_datetime.yaml | 72 ---- cases/datetime/add_intervals.yaml | 87 ----- cases/datetime/extract.yaml | 243 ------------- cases/datetime/gt_datetime.yaml | 130 ------- cases/datetime/gte_datetime.yaml | 175 ---------- cases/datetime/lt_datetime.yaml | 130 ------- cases/datetime/lte_datetime.yaml | 175 ---------- cases/datetime/subtract_datetime.yaml | 72 ---- cases/logarithmic/ln.yaml | 95 ------ cases/logarithmic/log10.yaml | 95 ------ cases/logarithmic/log2.yaml | 102 ------ cases/logarithmic/logb.yaml | 108 ------ cases/rounding/ceil.yaml | 26 -- cases/rounding/floor.yaml | 26 -- cases/rounding/round.yaml | 70 ---- cases/string/bit_length.yaml | 65 ---- cases/string/char_length.yaml | 65 ---- cases/string/concat.yaml | 82 ----- cases/string/concat_ws.yaml | 68 ---- cases/string/contains.yaml | 83 ----- cases/string/ends_with.yaml | 61 ---- cases/string/left.yaml | 79 ----- cases/string/like.yaml | 61 ---- cases/string/lower.yaml | 60 ---- cases/string/lpad.yaml | 104 ------ cases/string/ltrim.yaml | 89 ----- cases/string/octet_length.yaml | 65 ---- cases/string/regexp_count_substring.yaml | 178 ---------- cases/string/regexp_match_substring.yaml | 196 ----------- cases/string/regexp_replace.yaml | 319 ------------------ cases/string/regexp_string_split.yaml | 211 ------------ cases/string/repeat.yaml | 61 ---- cases/string/replace.yaml | 73 ---- cases/string/reverse.yaml | 58 ---- cases/string/right.yaml | 79 ----- cases/string/rpad.yaml | 104 ------ cases/string/rtrim.yaml | 89 ----- cases/string/starts_with.yaml | 61 ---- cases/string/string_split.yaml | 60 ---- cases/string/substring.yaml | 129 ------- cases/string/trim.yaml | 89 ----- cases/string/upper.yaml | 60 ---- 107 files changed, 9626 deletions(-) delete mode 100644 cases/aggregate_approx/approx_count_distinct.yaml delete mode 100644 cases/aggregate_generic/count.yaml delete mode 100644 cases/aggregate_generic/count_star.yaml delete mode 100644 cases/arithmetic/abs.yaml delete mode 100644 cases/arithmetic/acos.yaml delete mode 100644 cases/arithmetic/acosh.yaml delete mode 100644 cases/arithmetic/add.yaml delete mode 100644 cases/arithmetic/asin.yaml delete mode 100644 cases/arithmetic/asinh.yaml delete mode 100644 cases/arithmetic/atan.yaml delete mode 100644 cases/arithmetic/atan2.yaml delete mode 100644 cases/arithmetic/atanh.yaml delete mode 100644 cases/arithmetic/bitwise_and.yaml delete mode 100644 cases/arithmetic/bitwise_not.yaml delete mode 100644 cases/arithmetic/bitwise_or.yaml delete mode 100644 cases/arithmetic/bitwise_xor.yaml delete mode 100644 cases/arithmetic/cos.yaml delete mode 100644 cases/arithmetic/cosh.yaml delete mode 100644 cases/arithmetic/divide.yaml delete mode 100644 cases/arithmetic/exp.yaml delete mode 100644 cases/arithmetic/factorial.yaml delete mode 100644 cases/arithmetic/max.yaml delete mode 100644 cases/arithmetic/min.yaml delete mode 100644 cases/arithmetic/modulus.yaml delete mode 100644 cases/arithmetic/multiply.yaml delete mode 100644 cases/arithmetic/negate.yaml delete mode 100644 cases/arithmetic/power.yaml delete mode 100644 cases/arithmetic/sin.yaml delete mode 100644 cases/arithmetic/sinh.yaml delete mode 100644 cases/arithmetic/sqrt.yaml delete mode 100644 cases/arithmetic/subtract.yaml delete mode 100644 cases/arithmetic/sum.yaml delete mode 100644 cases/arithmetic/tan.yaml delete mode 100644 cases/arithmetic/tanh.yaml delete mode 100644 cases/arithmetic_decimal/bitwise_and.yaml delete mode 100644 cases/arithmetic_decimal/bitwise_or.yaml delete mode 100644 cases/arithmetic_decimal/bitwise_xor.yaml delete mode 100644 cases/arithmetic_decimal/factorial_decimal.yaml delete mode 100644 cases/arithmetic_decimal/max_decimal.yaml delete mode 100644 cases/arithmetic_decimal/min_decimal.yaml delete mode 100644 cases/arithmetic_decimal/power_decimal.yaml delete mode 100644 cases/arithmetic_decimal/sqrt_decimal.yaml delete mode 100644 cases/arithmetic_decimal/sum_decimal.yaml delete mode 100644 cases/boolean/and.yaml delete mode 100644 cases/boolean/and_not.yaml delete mode 100644 cases/boolean/bool_and.yaml delete mode 100644 cases/boolean/bool_or.yaml delete mode 100644 cases/boolean/not.yaml delete mode 100644 cases/boolean/or.yaml delete mode 100644 cases/boolean/xor.yaml delete mode 100644 cases/comparison/between.yaml delete mode 100644 cases/comparison/coalesce.yaml delete mode 100644 cases/comparison/equal.yaml delete mode 100644 cases/comparison/gt.yaml delete mode 100644 cases/comparison/gte.yaml delete mode 100644 cases/comparison/is_finite.yaml delete mode 100644 cases/comparison/is_infinite.yaml delete mode 100644 cases/comparison/is_nan.yaml delete mode 100644 cases/comparison/is_not_distinct_from.yaml delete mode 100644 cases/comparison/is_not_null.yaml delete mode 100644 cases/comparison/is_null.yaml delete mode 100644 cases/comparison/lt.yaml delete mode 100644 cases/comparison/lte.yaml delete mode 100644 cases/comparison/not_equal.yaml delete mode 100644 cases/comparison/nullif.yaml delete mode 100644 cases/datetime/add_datetime.yaml delete mode 100644 cases/datetime/add_intervals.yaml delete mode 100644 cases/datetime/extract.yaml delete mode 100644 cases/datetime/gt_datetime.yaml delete mode 100644 cases/datetime/gte_datetime.yaml delete mode 100644 cases/datetime/lt_datetime.yaml delete mode 100644 cases/datetime/lte_datetime.yaml delete mode 100644 cases/datetime/subtract_datetime.yaml delete mode 100644 cases/logarithmic/ln.yaml delete mode 100644 cases/logarithmic/log10.yaml delete mode 100644 cases/logarithmic/log2.yaml delete mode 100644 cases/logarithmic/logb.yaml delete mode 100644 cases/rounding/ceil.yaml delete mode 100644 cases/rounding/floor.yaml delete mode 100644 cases/rounding/round.yaml delete mode 100644 cases/string/bit_length.yaml delete mode 100644 cases/string/char_length.yaml delete mode 100644 cases/string/concat.yaml delete mode 100644 cases/string/concat_ws.yaml delete mode 100644 cases/string/contains.yaml delete mode 100644 cases/string/ends_with.yaml delete mode 100644 cases/string/left.yaml delete mode 100644 cases/string/like.yaml delete mode 100644 cases/string/lower.yaml delete mode 100644 cases/string/lpad.yaml delete mode 100644 cases/string/ltrim.yaml delete mode 100644 cases/string/octet_length.yaml delete mode 100644 cases/string/regexp_count_substring.yaml delete mode 100644 cases/string/regexp_match_substring.yaml delete mode 100644 cases/string/regexp_replace.yaml delete mode 100644 cases/string/regexp_string_split.yaml delete mode 100644 cases/string/repeat.yaml delete mode 100644 cases/string/replace.yaml delete mode 100644 cases/string/reverse.yaml delete mode 100644 cases/string/right.yaml delete mode 100644 cases/string/rpad.yaml delete mode 100644 cases/string/rtrim.yaml delete mode 100644 cases/string/starts_with.yaml delete mode 100644 cases/string/string_split.yaml delete mode 100644 cases/string/substring.yaml delete mode 100644 cases/string/trim.yaml delete mode 100644 cases/string/upper.yaml diff --git a/cases/aggregate_approx/approx_count_distinct.yaml b/cases/aggregate_approx/approx_count_distinct.yaml deleted file mode 100644 index 32aca80e..00000000 --- a/cases/aggregate_approx/approx_count_distinct.yaml +++ /dev/null @@ -1,75 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_aggregate_approx.yaml -function: approx_count_distinct -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: [1, -2, 3, -4, 5, 6] - type: i8 - result: - value: 6 - type: i64 - - group: basic - args: - - value: [-32767, -20000, 30000, 5, 32767] - type: i16 - result: - value: 5 - type: i64 - - group: basic - args: - - value: [-2147483648, -10000000, 30000000, 2147483647] - type: i32 - result: - value: 4 - type: i64 - - group: basic - args: - - value: [-214748364800000, -1000000000, 0, 922337203685477580] - type: i64 - result: - value: 4 - type: i64 - - group: basic - args: - - value: [1] - type: i8 - result: - value: 1 - type: i64 - - group: basic - args: - - value: ["abc", "def", "ghi"] - type: string - result: - value: 3 - type: i64 - - group: basic - args: - - value: ["abc", Null, "ghi"] - type: string - result: - value: 2 - type: i64 - - group: basic - args: - - value: [] - type: i8 - result: - value: 0 - type: i64 - - group: basic - args: - - value: [Null, Null, Null] - type: i8 - result: - value: 0 - type: i64 - - group: basic - args: - - value: [Null, Null, 4, 3, Null, 922337203685477580, 12833888] - type: i64 - result: - value: 4 - type: i64 diff --git a/cases/aggregate_generic/count.yaml b/cases/aggregate_generic/count.yaml deleted file mode 100644 index ece92e05..00000000 --- a/cases/aggregate_generic/count.yaml +++ /dev/null @@ -1,40 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_aggregate_generic.yaml -function: count -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: [100, -200, 300, -400, 5, 6] - type: i16 - result: - value: 6 - type: i64 - - group: basic - args: - - value: [1000] - type: i16 - result: - value: 1 - type: i64 - - group: basic - args: - - value: [] - type: i16 - result: - value: 0 - type: i64 - - group: basic - args: - - value: [Null, Null, Null] - type: i16 - result: - value: 0 - type: i64 - - group: basic - args: - - value: [Null, Null, Null, 1000] - type: i16 - result: - value: 1 - type: i64 diff --git a/cases/aggregate_generic/count_star.yaml b/cases/aggregate_generic/count_star.yaml deleted file mode 100644 index 67a7655d..00000000 --- a/cases/aggregate_generic/count_star.yaml +++ /dev/null @@ -1,46 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_aggregate_generic.yaml -function: count_star -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: [100, -200, 300, -4, 5] - type: i16 - is_not_a_func_arg: true - result: - value: 5 - type: i16 - - group: basic - args: - - value: [1] - type: i16 - is_not_a_func_arg: true - result: - value: 1 - type: i16 - - group: basic - args: - - value: [] - type: i16 - is_not_a_func_arg: true - result: - value: 0 - type: i16 - - group: basic - args: - - value: [Null, Null, Null] - type: i16 - is_not_a_func_arg: true - result: - value: 3 - type: i16 - - group: basic - args: - - value: [1000, Null, Null] - type: i16 - is_not_a_func_arg: true - result: - value: 3 - type: i16 - diff --git a/cases/arithmetic/abs.yaml b/cases/arithmetic/abs.yaml deleted file mode 100644 index b4db617e..00000000 --- a/cases/arithmetic/abs.yaml +++ /dev/null @@ -1,83 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic.yaml -function: abs -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 25 - type: i8 - result: - value: 25 - type: i8 - - group: basic - args: - - value: -200 - type: i16 - result: - value: 200 - type: i16 - - group: basic - args: - - value: 30000 - type: i32 - result: - value: 30000 - type: i32 - - group: basic - args: - - value: -9223372036854775800 - type: i64 - result: - value: 9223372036854775800 - type: i64 - - group: basic - args: - - value: 2.55 - type: fp32 - result: - value: 2.55 - type: fp32 - - group: basic - args: - - value: -2.0000007152557373046875 - type: fp64 - result: - value: 2.0000007152557373046875 - type: fp64 - - group: - id: null_input - description: Examples with null as input - args: - - value: null - type: i8 - result: - value: null - type: i8 - - group: - id: overflow - description: Examples demonstrating overflow behavior - args: - - value: -128 - type: i8 - options: - overflow: ERROR - result: - special: error - - group: overflow - args: - - value: -128 - type: i8 - options: - overflow: SATURATE - result: - value: 127 - type: i8 - - group: overflow - args: - - value: -128 - type: i8 - options: - overflow: SILENT - result: - special: undefined diff --git a/cases/arithmetic/acos.yaml b/cases/arithmetic/acos.yaml deleted file mode 100644 index 8e03a330..00000000 --- a/cases/arithmetic/acos.yaml +++ /dev/null @@ -1,33 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic.yaml -function: acos -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 0.00 - type: fp32 - result: - value: 1.5707963267948966 - type: fp32 - - group: basic - args: - - value: 1.0 - type: fp64 - result: - value: 0.0 - type: fp64 - - group: basic - args: - - value: -0.0000009 - type: fp64 - result: - value: 1.5707972267948966 - type: fp64 - - group: basic - args: - - value: null - type: fp64 - result: - value: null - type: fp64 diff --git a/cases/arithmetic/acosh.yaml b/cases/arithmetic/acosh.yaml deleted file mode 100644 index 867c561e..00000000 --- a/cases/arithmetic/acosh.yaml +++ /dev/null @@ -1,53 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic.yaml -function: acosh -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 1.0 - type: fp64 - result: - value: 0.0 - type: fp64 - - group: basic - args: - - value: 10.0005 - type: fp64 - result: - value: 2.9932730967481995 - type: fp64 - - group: basic - args: - - value: null - type: fp64 - result: - value: null - type: fp64 - - group: - id: On_domain_error - description: Examples demonstrating On_domain_error behavior - args: - - value: 0.01 - type: fp32 - options: - on_domain_error: ERROR - result: - special: error - - group: On_domain_error - args: - - value: 0.5 - type: fp32 - options: - on_domain_error: NAN - result: - special: nan - - group: On_domain_error - args: - - value: 0.5 - type: fp32 - options: - on_domain_error: NONE - result: - value: null - type: fp32 diff --git a/cases/arithmetic/add.yaml b/cases/arithmetic/add.yaml deleted file mode 100644 index a0bf3358..00000000 --- a/cases/arithmetic/add.yaml +++ /dev/null @@ -1,159 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic.yaml -function: add -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 120 - type: i8 - - value: 5 - type: i8 - result: - value: 125 - type: i8 - - group: basic - args: - - value: 100 - type: i16 - - value: 100 - type: i16 - result: - value: 200 - type: i16 - - group: basic - args: - - value: 30000 - type: i32 - - value: 30000 - type: i32 - result: - value: 60000 - type: i32 - - group: basic - args: - - value: 2000000000 - type: i64 - - value: 2000000000 - type: i64 - result: - value: 4000000000 - type: i64 - - group: - id: overflow - description: Examples demonstrating overflow behavior - args: - - value: 120 - type: i8 - - value: 10 - type: i8 - options: - overflow: ERROR - result: - special: error - - group: overflow - args: - - value: 30000 - type: i16 - - value: 30000 - type: i16 - options: - overflow: ERROR - result: - special: error - - group: overflow - args: - - value: 2000000000 - type: i32 - - value: 2000000000 - type: i32 - options: - overflow: ERROR - result: - special: error - - group: overflow - args: - - value: 9223372036854775807 - type: i64 - - value: 1 - type: i64 - options: - overflow: ERROR - result: - special: error - - group: overflow - args: - - value: 120 - type: i8 - - value: 10 - type: i8 - options: - overflow: SATURATE - result: - value: 127 - type: i8 - - group: overflow - args: - - value: -120 - type: i8 - - value: -10 - type: i8 - options: - overflow: SATURATE - result: - value: -128 - type: i8 - - group: overflow - args: - - value: 120 - type: i8 - - value: 10 - type: i8 - options: - overflow: SILENT - result: - special: undefined - - group: - id: floating_exception - description: Examples demonstrating exceptional floating point cases - args: - - value: 1.5e+308 - type: fp64 - - value: 1.5e+308 - type: fp64 - result: - value: inf - type: fp64 - - group: floating_exception - args: - - value: -1.5e+308 - type: fp64 - - value: -1.5e+308 - type: fp64 - result: - value: -inf - type: fp64 - - group: - id: rounding - description: Examples demonstrating floating point rounding behavior - args: - - value: 4.5 - type: fp32 - - value: 2.5000007152557373046875 - type: fp32 - options: - rounding: TIE_TO_EVEN - result: - value: 7.00000095367431640625 - type: fp32 - - group: - id: types - description: Examples demonstrating behavior of different data types - args: - - value: 4.5 - type: fp64 - - value: 2.5000007152557373046875 - type: fp64 - result: - value: 7.0000007152557373046875 - type: fp64 diff --git a/cases/arithmetic/asin.yaml b/cases/arithmetic/asin.yaml deleted file mode 100644 index 2027a84e..00000000 --- a/cases/arithmetic/asin.yaml +++ /dev/null @@ -1,40 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic.yaml -function: asin -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 0.0 - type: fp32 - result: - value: 0.0 - type: fp32 - - group: basic - args: - - value: 1.0 - type: fp64 - result: - value: 1.5707963267948966 - type: fp64 - - group: basic - args: - - value: 0.009 - type: fp64 - result: - value: 0.009000121504428887 - type: fp64 - - group: basic - args: - - value: -0.009 - type: fp64 - result: - value: -0.009000121504428887 - type: fp64 - - group: basic - args: - - value: null - type: fp64 - result: - value: null - type: fp64 diff --git a/cases/arithmetic/asinh.yaml b/cases/arithmetic/asinh.yaml deleted file mode 100644 index 7e3e422d..00000000 --- a/cases/arithmetic/asinh.yaml +++ /dev/null @@ -1,33 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic.yaml -function: asinh -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 0.01 - type: fp32 - result: - value: 0.009999833340832886 - type: fp32 - - group: basic - args: - - value: 1.0 - type: fp64 - result: - value: 0.881373587019543 - type: fp64 - - group: basic - args: - - value: 0.0009 - type: fp64 - result: - value: 0.0008999998785000443 - type: fp64 - - group: basic - args: - - value: null - type: fp64 - result: - value: null - type: fp64 diff --git a/cases/arithmetic/atan.yaml b/cases/arithmetic/atan.yaml deleted file mode 100644 index 8541594c..00000000 --- a/cases/arithmetic/atan.yaml +++ /dev/null @@ -1,40 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic.yaml -function: atan -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 0.0 - type: fp32 - result: - value: 0.0 - type: fp32 - - group: basic - args: - - value: 1.0 - type: fp64 - result: - value: 0.7853981633974483 - type: fp64 - - group: basic - args: - - value: 7.01 - type: fp64 - result: - value: 1.4290989925795292 - type: fp64 - - group: basic - args: - - value: -7.01 - type: fp64 - result: - value: -1.4290989925795292 - type: fp64 - - group: basic - args: - - value: null - type: fp64 - result: - value: null - type: fp64 diff --git a/cases/arithmetic/atan2.yaml b/cases/arithmetic/atan2.yaml deleted file mode 100644 index 8c3554b9..00000000 --- a/cases/arithmetic/atan2.yaml +++ /dev/null @@ -1,41 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic.yaml -function: atan2 -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 0.0 - type: fp32 - - value: 0.0 - type: fp32 - result: - value: 0.0 - type: fp32 - - group: basic - args: - - value: 1.0 - type: fp64 - - value: 1.0 - type: fp64 - result: - value: 0.7853981633974483 - type: fp64 - - group: basic - args: - - value: 0.009 - type: fp64 - - value: 0.0008 - type: fp64 - result: - value: 1.482140444927459 - type: fp64 - - group: basic - args: - - value: null - type: fp64 - - value: 0.0008 - type: fp64 - result: - value: null - type: fp64 diff --git a/cases/arithmetic/atanh.yaml b/cases/arithmetic/atanh.yaml deleted file mode 100644 index b7b67822..00000000 --- a/cases/arithmetic/atanh.yaml +++ /dev/null @@ -1,40 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic.yaml -function: atanh -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 0.0 - type: fp32 - result: - value: 0.0 - type: fp32 - - group: basic - args: - - value: 1.0 - type: fp64 - result: - value: inf - type: fp64 - - group: basic - args: - - value: 0.009 - type: fp32 - result: - value: 0.009000243011810481 - type: fp64 - - group: basic - args: - - value: -0.009 - type: fp32 - result: - value: -0.009000243011810481 - type: fp64 - - group: basic - args: - - value: null - type: fp64 - result: - value: null - type: fp64 diff --git a/cases/arithmetic/bitwise_and.yaml b/cases/arithmetic/bitwise_and.yaml deleted file mode 100644 index 7249e8a8..00000000 --- a/cases/arithmetic/bitwise_and.yaml +++ /dev/null @@ -1,95 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic.yaml -function: bitwise_and -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 0 - type: i8 - - value: 1 - type: i8 - result: - value: 0 - type: i8 - - group: basic - args: - - value: 127 - type: i8 - - value: 127 - type: i8 - result: - value: 127 - type: i8 - - group: basic - args: - - value: -127 - type: i8 - - value: -10 - type: i8 - result: - value: -128 - type: i8 - - group: basic - args: - - value: 31766 - type: i16 - - value: 900 - type: i16 - result: - value: 4 - type: i16 - - group: basic - args: - - value: -31766 - type: i16 - - value: 900 - type: i16 - result: - value: 896 - type: i16 - - group: basic - args: - - value: 2147483647 - type: i32 - - value: 1234567 - type: i32 - result: - value: 1234567 - type: i32 - - group: basic - args: - - value: 2147483647 - type: i32 - - value: 1234567 - type: i32 - result: - value: 1234567 - type: i32 - - group: basic - args: - - value: 9223372036854775807 - type: i64 - - value: 127 - type: i64 - result: - value: 127 - type: i64 - - group: basic - args: - - value: -9223372036854775807 - type: i64 - - value: 127 - type: i64 - result: - value: 1 - type: i64 - - group: basic - args: - - value: null - type: i64 - - value: 127 - type: i64 - result: - value: null - type: i64 diff --git a/cases/arithmetic/bitwise_not.yaml b/cases/arithmetic/bitwise_not.yaml deleted file mode 100644 index 2178bf54..00000000 --- a/cases/arithmetic/bitwise_not.yaml +++ /dev/null @@ -1,75 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic.yaml -function: bitwise_not -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 0 - type: i8 - result: - value: -1 - type: i8 - - group: basic - args: - - value: 1 - type: i8 - result: - value: -2 - type: i8 - - group: basic - args: - - value: -127 - type: i8 - result: - value: 126 - type: i8 - - group: basic - args: - - value: 31766 - type: i16 - result: - value: -31767 - type: i16 - - group: basic - args: - - value: -31766 - type: i16 - result: - value: 31765 - type: i16 - - group: basic - args: - - value: 2147483647 - type: i32 - result: - value: -2147483648 - type: i32 - - group: basic - args: - - value: 2147483647 - type: i32 - result: - value: -2147483648 - type: i32 - - group: basic - args: - - value: 9223372036854775807 - type: i64 - result: - value: -9223372036854775808 - type: i64 - - group: basic - args: - - value: -9223372036854775807 - type: i64 - result: - value: 9223372036854775806 - type: i64 - - group: basic - args: - - value: null - type: i64 - result: - value: null - type: i64 diff --git a/cases/arithmetic/bitwise_or.yaml b/cases/arithmetic/bitwise_or.yaml deleted file mode 100644 index bcf5b314..00000000 --- a/cases/arithmetic/bitwise_or.yaml +++ /dev/null @@ -1,95 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic.yaml -function: bitwise_or -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 0 - type: i8 - - value: 1 - type: i8 - result: - value: 1 - type: i8 - - group: basic - args: - - value: 127 - type: i8 - - value: 127 - type: i8 - result: - value: 127 - type: i8 - - group: basic - args: - - value: -127 - type: i8 - - value: -10 - type: i8 - result: - value: -9 - type: i8 - - group: basic - args: - - value: 31766 - type: i16 - - value: 900 - type: i16 - result: - value: 32662 - type: i16 - - group: basic - args: - - value: -31766 - type: i16 - - value: 900 - type: i16 - result: - value: -31762 - type: i16 - - group: basic - args: - - value: 2147483647 - type: i32 - - value: 123456789 - type: i32 - result: - value: 2147483647 - type: i32 - - group: basic - args: - - value: 2147483647 - type: i32 - - value: 123456789 - type: i32 - result: - value: 2147483647 - type: i32 - - group: basic - args: - - value: 9223372036854775807 - type: i64 - - value: 127 - type: i64 - result: - value: 9223372036854775807 - type: i64 - - group: basic - args: - - value: -9223372036854775807 - type: i64 - - value: 127 - type: i64 - result: - value: -9223372036854775681 - type: i64 - - group: basic - args: - - value: null - type: i64 - - value: 127 - type: i64 - result: - value: null - type: i64 diff --git a/cases/arithmetic/bitwise_xor.yaml b/cases/arithmetic/bitwise_xor.yaml deleted file mode 100644 index d861fcb2..00000000 --- a/cases/arithmetic/bitwise_xor.yaml +++ /dev/null @@ -1,95 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic.yaml -function: bitwise_xor -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 0 - type: i8 - - value: 1 - type: i8 - result: - value: 1 - type: i8 - - group: basic - args: - - value: 127 - type: i8 - - value: 127 - type: i8 - result: - value: 0 - type: i8 - - group: basic - args: - - value: -127 - type: i8 - - value: -10 - type: i8 - result: - value: 119 - type: i8 - - group: basic - args: - - value: 31766 - type: i16 - - value: 900 - type: i16 - result: - value: 32658 - type: i16 - - group: basic - args: - - value: -31766 - type: i16 - - value: 900 - type: i16 - result: - value: -32658 - type: i16 - - group: basic - args: - - value: 2147483647 - type: i32 - - value: 123456789 - type: i32 - result: - value: 2024026858 - type: i32 - - group: basic - args: - - value: 2147483647 - type: i32 - - value: 123456789 - type: i32 - result: - value: 2024026858 - type: i32 - - group: basic - args: - - value: 9223372036854775807 - type: i64 - - value: 127 - type: i64 - result: - value: 9223372036854775680 - type: i64 - - group: basic - args: - - value: -9223372036854775807 - type: i64 - - value: 127 - type: i64 - result: - value: -9223372036854775682 - type: i64 - - group: basic - args: - - value: null - type: i64 - - value: 127 - type: i64 - result: - value: null - type: i64 diff --git a/cases/arithmetic/cos.yaml b/cases/arithmetic/cos.yaml deleted file mode 100644 index e2c07922..00000000 --- a/cases/arithmetic/cos.yaml +++ /dev/null @@ -1,40 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic.yaml -function: cos -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 0.00 - type: fp32 - result: - value: 1.0 - type: fp32 - - group: basic - args: - - value: 1.0 - type: fp64 - result: - value: 0.5403023058681398 - type: fp64 - - group: basic - args: - - value: 7.0000009 - type: fp64 - result: - value: 0.7539016630550606 - type: fp64 - - group: basic - args: - - value: -7.00000095 - type: fp64 - result: - value: 0.7539016302056953 - type: fp64 - - group: basic - args: - - value: null - type: fp64 - result: - value: null - type: fp64 diff --git a/cases/arithmetic/cosh.yaml b/cases/arithmetic/cosh.yaml deleted file mode 100644 index 00b1e628..00000000 --- a/cases/arithmetic/cosh.yaml +++ /dev/null @@ -1,40 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic.yaml -function: cosh -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 0.00 - type: fp32 - result: - value: 1.0 - type: fp32 - - group: basic - args: - - value: 1.0 - type: fp64 - result: - value: 1.5430806348152437 - type: fp64 - - group: basic - args: - - value: 7.0000009 - type: fp64 - result: - value: 548.3175286399451 - type: fp64 - - group: basic - args: - - value: -7.00000095 - type: fp64 - result: - value: 548.3175560557769 - type: fp64 - - group: basic - args: - - value: null - type: fp64 - result: - value: null - type: fp64 diff --git a/cases/arithmetic/divide.yaml b/cases/arithmetic/divide.yaml deleted file mode 100644 index 8e78dc3c..00000000 --- a/cases/arithmetic/divide.yaml +++ /dev/null @@ -1,118 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic.yaml -function: divide -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 25 - type: i8 - - value: 5 - type: i8 - result: - value: 5 - type: i8 - - group: basic - args: - - value: 200 - type: i16 - - value: -100 - type: i16 - result: - value: -2 - type: i16 - - group: basic - args: - - value: 60000 - type: i32 - - value: 200 - type: i32 - result: - value: 300 - type: i32 - - group: basic - args: - - value: 4000000000 - type: i64 - - value: -5000 - type: i64 - result: - value: -800000 - type: i64 - - group: - id: division_by_zero - description: Examples demonstrating division by zero - args: - - value: 5 - type: i8 - - value: 0 - type: i8 - options: - on_division_by_zero: NAN - result: - value: null - type: i8 - - group: division_by_zero - args: - - value: 5 - type: i8 - - value: 0 - type: i8 - options: - on_division_by_zero: ERROR - result: - special: error - - group: division_by_zero - args: - - value: 5 - type: i64 - - value: 0 - type: i64 - options: - on_division_by_zero: LIMIT - result: - value: inf - type: fp64 - - group: - id: overflow - description: Examples demonstrating overflow behavior - args: - - value: -9223372036854775808 - type: i64 - - value: -1 - type: i64 - options: - overflow: ERROR - result: - special: error - - group: overflow - args: - - value: -128 - type: i8 - - value: -1 - type: i8 - options: - overflow: SATURATE - result: - value: 127 - type: i8 - - group: - id: floating_exception - description: Examples demonstrating exceptional floating point cases - args: - - value: 1.5e+208 - type: fp64 - - value: 1.5e-200 - type: fp64 - result: - value: inf - type: fp64 - - group: floating_exception - args: - - value: 1.5e+200 - type: fp64 - - value: -1.5e-208 - type: fp64 - result: - value: -inf - type: fp64 diff --git a/cases/arithmetic/exp.yaml b/cases/arithmetic/exp.yaml deleted file mode 100644 index 323966df..00000000 --- a/cases/arithmetic/exp.yaml +++ /dev/null @@ -1,54 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic.yaml -function: exp -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 100 - type: i64 - result: - value: 2.6881171418161356e+43 - type: fp64 - - group: basic - args: - - value: 0.25 - type: fp32 - result: - value: 1.2840254166877414 - type: fp32 - - group: basic - args: - - value: 0.693 - type: fp64 - result: - value: 1.9997056605411638 - type: fp64 - - group: basic - args: - - value: 2.0000007152557373046875 - type: fp64 - result: - value: 7.3890613839973085 - type: fp64 - - group: basic - args: - - value: 0.0 - type: fp64 - result: - value: 1.0 - type: fp64 - - group: basic - args: - - value: null - type: fp64 - result: - value: null - type: fp64 - - group: basic - args: - - value: 1000 - type: i64 - result: - value: inf - type: fp64 diff --git a/cases/arithmetic/factorial.yaml b/cases/arithmetic/factorial.yaml deleted file mode 100644 index 67639ae2..00000000 --- a/cases/arithmetic/factorial.yaml +++ /dev/null @@ -1,43 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic.yaml -function: factorial -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 0 - type: i32 - result: - value: 1 - type: i32 - - group: basic - args: - - value: 1 - type: i32 - result: - value: 1 - type: i32 - - group: basic - args: - - value: 20 - type: i64 - result: - value: 2432902008176640000 - type: i64 - - group: basic - args: - - value: null - type: i32 - result: - value: null - type: i32 - - group: - id: overflow - description: Examples demonstrating overflow behavior - args: - - value: 1000000 - type: i32 - options: - overflow: ERROR - result: - special: error diff --git a/cases/arithmetic/max.yaml b/cases/arithmetic/max.yaml deleted file mode 100644 index ecc0764d..00000000 --- a/cases/arithmetic/max.yaml +++ /dev/null @@ -1,91 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic.yaml -function: max -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: [20, -3, 1, -10, 0, 5] - type: i8 - result: - value: 20 - type: i8 - - group: basic - args: - - value: [-32768, 32767, 20000, -30000] - type: i16 - result: - value: 32767 - type: i16 - - group: basic - args: - - value: [-214748648, 214748647, 21470048, 4000000] - type: i32 - result: - value: 214748647 - type: i32 - - group: basic - args: - - value: [2000000000, -3217908979, 629000000, -100000000, 0, 987654321] - type: i64 - result: - value: 2000000000 - type: i64 - - group: basic - args: - - value: [2.5, 0, 5.0, -2.5, -7.5] - type: fp32 - result: - value: 5.0 - type: fp32 - - group: basic - args: - - value: [1.5e+308, 1.5e+10, -1.5e+8, -1.5e+7, -1.5e+70] - type: fp64 - result: - value: 1.5e+308 - type: fp64 - - group: - id: null_handling - description: Examples with null as unput or output - args: - - value: [Null, Null, Null] - type: i16 - result: - value: Null - type: i16 - - group: null_handling - args: - - value: [] - type: i16 - result: - value: Null - type: i16 - - group: null_handling - args: - - value: [2000000000, Null, 629000000, -100000000, Null, 987654321] - type: i64 - result: - value: 2000000000 - type: i64 - - group: null_handling - args: - - value: [Null, inf] - type: fp64 - result: - value: inf - type: fp64 - - group: null_handling - args: - - value: [Null, -inf, -1.5e+8, -1.5e+7, -1.5e+70] - type: fp64 - result: - value: -1.5e+7 - type: fp64 - - group: null_handling - args: - - value: [1.5e+308, 1.5e+10, Null, -1.5e+7, Null] - type: fp64 - result: - value: 1.5e+308 - type: fp64 diff --git a/cases/arithmetic/min.yaml b/cases/arithmetic/min.yaml deleted file mode 100644 index e0e247ba..00000000 --- a/cases/arithmetic/min.yaml +++ /dev/null @@ -1,91 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic.yaml -function: min -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: [20, -3, 1, -10, 0, 5] - type: i8 - result: - value: -10 - type: i8 - - group: basic - args: - - value: [-32768, 32767, 20000, -30000] - type: i16 - result: - value: -32768 - type: i16 - - group: basic - args: - - value: [-214748648, 214748647, 21470048, 4000000] - type: i32 - result: - value: -214748648 - type: i32 - - group: basic - args: - - value: [2000000000, -3217908979, 629000000, -100000000, 0, 987654321] - type: i64 - result: - value: -3217908979 - type: i64 - - group: basic - args: - - value: [2.5, 0, 5.0, -2.5, -7.5] - type: fp32 - result: - value: -7.5 - type: fp32 - - group: basic - args: - - value: [1.5e+308, 1.5e+10, -1.5e+8, -1.5e+7, -1.5e+70] - type: fp64 - result: - value: -1.5e+70 - type: fp64 - - group: - id: null_handling - description: Examples with null as unput or output - args: - - value: [Null, Null, Null] - type: i16 - result: - value: Null - type: i16 - - group: null_handling - args: - - value: [] - type: i16 - result: - value: Null - type: i16 - - group: null_handling - args: - - value: [2000000000, Null, 629000000, -100000000, Null, 987654321] - type: i64 - result: - value: -100000000 - type: i64 - - group: basic - args: - - value: [Null, inf] - type: fp64 - result: - value: inf - type: fp64 - - group: null_handling - args: - - value: [Null, -inf, -1.5e+8, -1.5e+7, -1.5e+70] - type: fp64 - result: - value: -inf - type: fp64 - - group: null_handling - args: - - value: [1.5e+308, 1.5e+10, Null, -1.5e+7, Null] - type: fp64 - result: - value: -1.5e+7 - type: fp64 diff --git a/cases/arithmetic/modulus.yaml b/cases/arithmetic/modulus.yaml deleted file mode 100644 index 210daadb..00000000 --- a/cases/arithmetic/modulus.yaml +++ /dev/null @@ -1,124 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic.yaml -function: modulus -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 9 - type: i8 - - value: 3 - type: i8 - result: - value: 0 - type: i8 - - group: basic - args: - - value: 10 - type: i8 - - value: -3 - type: i8 - result: - value: 1 - type: i8 - - group: basic - args: - - value: 32767 - type: i16 - - value: 1000 - type: i16 - result: - value: 767 - type: i16 - - group: basic - args: - - value: -2147483647 - type: i32 - - value: 300000000 - type: i32 - result: - value: -47483647 - type: i32 - - group: basic - args: - - value: -9223372036854775800 - type: i64 - - value: -80000000000000 - type: i64 - result: - value: -12036854775800 - type: i64 - - group: basic - args: - - value: 5 - type: i8 - - value: null - type: i8 - result: - value: null - type: i8 - - group: basic - args: - - value: null - type: i64 - - value: 1 - type: i64 - result: - value: null - type: i64 - - group: basic - args: - - value: null - type: i64 - - value: null - type: i64 - result: - value: null - type: i64 - - group: - id: on_domain_error - description: Examples demonstrating operation when the divisor is 0 - args: - - value: 5 - type: i8 - - value: 0 - type: i8 - options: - on_domain_error: "NULL" - result: - value: null - type: i8 - - group: on_domain_error - args: - - value: 5 - type: i8 - - value: 0 - type: i8 - options: - on_domain_error: ERROR - result: - special: error - - group: - id: division_type - description: Examples demonstrating truncate and floor division types - args: - - value: 8 - type: i8 - - value: -3 - type: i8 - options: - division_type: TRUNCATE - result: - value: 2 - type: i8 - - group: division_type - args: - - value: 8 - type: i8 - - value: -3 - type: i8 - options: - division_type: FLOOR - result: - value: -1 - type: i8 diff --git a/cases/arithmetic/multiply.yaml b/cases/arithmetic/multiply.yaml deleted file mode 100644 index 5f0458ea..00000000 --- a/cases/arithmetic/multiply.yaml +++ /dev/null @@ -1,147 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic.yaml -function: multiply -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 25 - type: i8 - - value: 5 - type: i8 - result: - value: 125 - type: i8 - - group: basic - args: - - value: 2 - type: i16 - - value: -100 - type: i16 - result: - value: -200 - type: i16 - - group: basic - args: - - value: 300 - type: i32 - - value: 200 - type: i32 - result: - value: 60000 - type: i32 - - group: basic - args: - - value: 80000 - type: i64 - - value: -5000 - type: i64 - result: - value: -400000000 - type: i64 - - group: - id: overflow - description: Examples demonstrating overflow behavior - args: - - value: 13 - type: i8 - - value: 10 - type: i8 - options: - overflow: ERROR - result: - special: error - - group: overflow - args: - - value: 11 - type: i16 - - value: 3000 - type: i16 - options: - overflow: ERROR - result: - special: error - - group: overflow - args: - - value: 3 - type: i32 - - value: 1000000000 - type: i32 - options: - overflow: ERROR - result: - special: error - - group: overflow - args: - - value: 1000000000000000000 - type: i64 - - value: 10 - type: i64 - options: - overflow: ERROR - result: - special: error - - group: overflow - args: - - value: 13 - type: i8 - - value: 10 - type: i8 - options: - overflow: SATURATE - result: - value: 127 - type: i8 - - group: overflow - args: - - value: -13 - type: i8 - - value: -10 - type: i8 - options: - overflow: SATURATE - result: - value: -128 - type: i8 - - group: overflow - args: - - value: 13 - type: i8 - - value: 10 - type: i8 - options: - overflow: SILENT - result: - special: undefined - - group: - id: floating_exception - description: Examples demonstrating exceptional floating point cases - args: - - value: 1.5e+100 - type: fp64 - - value: 1.5e+208 - type: fp64 - result: - value: inf - type: fp64 - - group: floating_exception - args: - - value: 1.5e+100 - type: fp64 - - value: -1.5e+208 - type: fp64 - result: - value: -inf - type: fp64 - - group: - id: types - description: Examples demonstrating behavior of different data types - # TODO fp32_fp64 is not supported by substrait is this a valid testcase ? - args: - - value: 4.5 - type: fp64 - - value: 2.5000007152557373046875 - type: fp64 - result: - value: 11.250003218650818 - type: fp64 diff --git a/cases/arithmetic/negate.yaml b/cases/arithmetic/negate.yaml deleted file mode 100644 index 39046f3f..00000000 --- a/cases/arithmetic/negate.yaml +++ /dev/null @@ -1,90 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic.yaml -function: negate -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 25 - type: i8 - result: - value: -25 - type: i8 - - group: basic - args: - - value: -200 - type: i16 - result: - value: 200 - type: i16 - - group: basic - args: - - value: 30000 - type: i32 - result: - value: -30000 - type: i32 - - group: basic - args: - - value: 9223372036854775800 - type: i64 - result: - value: -9223372036854775800 - type: i64 - - group: basic - args: - - value: 2.50 - type: fp32 - result: - value: -2.50 - type: fp32 - - group: basic - args: - - value: 2.000002861022949 - type: fp64 - result: - value: -2.000002861022949 - type: fp64 - - group: basic - args: - - value: inf - type: fp64 - result: - value: -inf - type: fp64 - - group: - id: null_input - description: Examples with null as input - args: - - value: null - type: i8 - result: - value: null - type: i8 - - group: - id: overflow - description: Examples demonstrating overflow behavior - args: - - value: -128 - type: i8 - options: - overflow: ERROR - result: - special: error - - group: overflow - args: - - value: -128 - type: i8 - options: - overflow: SATURATE - result: - value: 127 - type: i8 - - group: overflow - args: - - value: -128 - type: i8 - options: - overflow: SILENT - result: - special: undefined diff --git a/cases/arithmetic/power.yaml b/cases/arithmetic/power.yaml deleted file mode 100644 index 0b9a9fe4..00000000 --- a/cases/arithmetic/power.yaml +++ /dev/null @@ -1,52 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic.yaml -function: power -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 8 - type: i64 - - value: 2 - type: i64 - result: - value: 64 - type: i64 - - group: basic - args: - - value: 1.0 - type: fp32 - - value: -1.0 - type: fp32 - result: - value: 1.0 - type: fp32 - - group: basic - args: - - value: 2.0 - type: fp64 - - value: -2.0 - type: fp64 - result: - value: 0.25 - type: fp64 - - group: basic - args: - - value: 13 - type: i64 - - value: 10 - type: i64 - result: - value: 137858491849 - type: i64 - - group: - id: floating_exception - description: Examples demonstrating exceptional floating point cases - args: - - value: 1.5e+100 - type: fp64 - - value: 1.5e+208 - type: fp64 - result: - value: inf - type: fp64 diff --git a/cases/arithmetic/sin.yaml b/cases/arithmetic/sin.yaml deleted file mode 100644 index 9298c92e..00000000 --- a/cases/arithmetic/sin.yaml +++ /dev/null @@ -1,40 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic.yaml -function: sin -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 0.0 - type: fp32 - result: - value: 0.0 - type: fp32 - - group: basic - args: - - value: 1.0 - type: fp64 - result: - value: 0.8414709848078965 - type: fp64 - - group: basic - args: - - value: 7.0000009 - type: fp64 - result: - value: 0.6569872772305518 - type: fp64 - - group: basic - args: - - value: -7.0000009 - type: fp64 - result: - value: -0.6569872772305518 - type: fp64 - - group: basic - args: - - value: null - type: fp64 - result: - value: null - type: fp64 diff --git a/cases/arithmetic/sinh.yaml b/cases/arithmetic/sinh.yaml deleted file mode 100644 index dd44119d..00000000 --- a/cases/arithmetic/sinh.yaml +++ /dev/null @@ -1,40 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic.yaml -function: sinh -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 0.0 - type: fp32 - result: - value: 0.0 - type: fp32 - - group: basic - args: - - value: 1.0 - type: fp64 - result: - value: 1.1752011936438014 - type: fp64 - - group: basic - args: - - value: 7.0000009 - type: fp64 - result: - value: 548.3166167588001 - type: fp64 - - group: basic - args: - - value: -7.0000009 - type: fp64 - result: - value: -548.3166167588001 - type: fp64 - - group: basic - args: - - value: null - type: fp64 - result: - value: null - type: fp64 diff --git a/cases/arithmetic/sqrt.yaml b/cases/arithmetic/sqrt.yaml deleted file mode 100644 index e46c5286..00000000 --- a/cases/arithmetic/sqrt.yaml +++ /dev/null @@ -1,74 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic.yaml -function: sqrt -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 25 - type: i64 - result: - value: 5 - type: fp64 - - group: basic - args: - - value: 0 - type: i64 - result: - value: 0 - type: fp64 - - group: basic - args: - - value: -9223372036854775800 - type: i64 - options: - on_domain_error: NAN - result: - value: null - type: fp64 - - group: basic - args: - - value: -9223372036854775800 - type: i64 - options: - on_domain_error: NAN - result: - value: null - type: fp64 - - group: basic - args: - - value: -9223372036854775800 - type: i64 - options: - on_domain_error: NAN - result: - value: null - type: fp64 - - group: basic - args: - - value: 9223372036854775800 - type: i64 - result: - value: 3037000499.97605 - type: fp64 - - group: basic - args: - - value: null - type: i64 - result: - value: null - type: fp64 - - group: basic - args: - - value: 6.25 - type: fp32 - result: - value: 2.5 - type: fp32 - - group: basic - args: - - value: 2.0000007152557373046875 - type: fp64 - result: - value: 1.4142138152541635 - type: fp64 diff --git a/cases/arithmetic/subtract.yaml b/cases/arithmetic/subtract.yaml deleted file mode 100644 index ca695e43..00000000 --- a/cases/arithmetic/subtract.yaml +++ /dev/null @@ -1,135 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic.yaml -function: subtract -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 120 - type: i8 - - value: 5 - type: i8 - result: - value: 115 - type: i8 - - group: basic - args: - - value: -100 - type: i16 - - value: 100 - type: i16 - result: - value: -200 - type: i16 - - group: basic - args: - - value: -30000 - type: i32 - - value: 30000 - type: i32 - result: - value: -60000 - type: i32 - - group: basic - args: - - value: -2000000000 - type: i64 - - value: 2000000000 - type: i64 - result: - value: -4000000000 - type: i64 - - group: - id: overflow - description: Examples demonstrating overflow behavior - args: - - value: -120 - type: i8 - - value: 10 - type: i8 - options: - overflow: ERROR - result: - special: error - - group: overflow - args: - - value: -30000 - type: i16 - - value: 30000 - type: i16 - options: - overflow: ERROR - result: - special: error - - group: overflow - args: - - value: -2000000000 - type: i32 - - value: 2000000000 - type: i32 - options: - overflow: ERROR - result: - special: error - - group: overflow - args: - - value: -9223372036854775808 - type: i64 - - value: 1 - type: i64 - options: - overflow: ERROR - result: - special: error - - group: overflow - args: - - value: -120 - type: i8 - - value: 10 - type: i8 - options: - overflow: SATURATE - result: - value: -128 - type: i8 - - group: overflow - args: - - value: 120 - type: i8 - - value: -10 - type: i8 - options: - overflow: SATURATE - result: - value: 127 - type: i8 - - group: overflow - args: - - value: -120 - type: i8 - - value: 10 - type: i8 - options: - overflow: SILENT - result: - special: undefined - - group: - id: floating_exception - description: Examples demonstrating exceptional floating point cases - args: - - value: -1.5e+308 - type: fp64 - - value: 1.5e+308 - type: fp64 - result: - value: -inf - type: fp64 - - group: floating_exception - args: - - value: 1.5e+308 - type: fp64 - - value: -1.5e+308 - type: fp64 - result: - value: inf - type: fp64 diff --git a/cases/arithmetic/sum.yaml b/cases/arithmetic/sum.yaml deleted file mode 100644 index cef0b15e..00000000 --- a/cases/arithmetic/sum.yaml +++ /dev/null @@ -1,96 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic.yaml -function: sum -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: [0, -1, 2, 20] - type: i8 - result: - value: 21 - type: i8 - - group: basic - args: - - value: [2000000, -3217908, 629000, -100000, 0, 987654] - type: i32 - result: - value: 298746 - type: i32 - - group: basic - args: - - value: [2.5, 0, 5.0, -2.5, -7.5] - type: fp32 - result: - value: -2.5 - type: fp32 - - group: basic - args: - - value: [2.5000007152557373046875, 7.0000007152557373046875, 0, 7.0000007152557373046875] - type: fp64 - result: - value: 16.500002145767212 - type: fp64 - - group: - id: overflow - description: Examples demonstrating overflow behavior - args: - - value: [9223372036854775806, 1, 1, 1, 1, 10000000000] - type: i64 - options: - overflow: ERROR - result: - special: error - - group: - id: floating_exception - description: Examples demonstrating exceptional floating point cases - args: - - value: [1.5e+308, 1.5e+308, 1.5e+308] - type: fp64 - result: - value: inf - type: fp64 - - group: floating_exception - args: - - value: [-1.5e+308, -1.5e+308, -1.5e+308] - type: fp64 - result: - value: -inf - type: fp64 - - group: floating_exception - args: - - value: [2.500000715, inf, 2.500000715] - type: fp64 - result: - value: inf - type: fp64 - - group: floating_exception - args: - - value: [2.5000007, -inf, 2.5000007, 10.0] - type: fp64 - result: - value: -inf - type: fp64 - - group: - id: null_handling - description: Examples with null as unput or output - args: - - value: [Null, Null, Null] - type: i16 - result: - value: Null - type: i16 - - group: null_handling - args: - - value: [] - type: i16 - result: - value: Null - type: i16 - - group: null_handling - args: - - value: [200000, Null, 629000, -10000, 0, 987621] - type: i32 - result: - value: 1806621 - type: i32 diff --git a/cases/arithmetic/tan.yaml b/cases/arithmetic/tan.yaml deleted file mode 100644 index c7cb4e32..00000000 --- a/cases/arithmetic/tan.yaml +++ /dev/null @@ -1,40 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic.yaml -function: tan -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 0.0 - type: fp32 - result: - value: 0.0 - type: fp32 - - group: basic - args: - - value: 0.5 - type: fp64 - result: - value: 0.5463024898437905 - type: fp64 - - group: basic - args: - - value: 7.01 - type: fp64 - result: - value: 0.8891974677731088 - type: fp64 - - group: basic - args: - - value: -7.01 - type: fp64 - result: - value: -0.8891974677731088 - type: fp64 - - group: basic - args: - - value: null - type: fp64 - result: - value: null - type: fp64 diff --git a/cases/arithmetic/tanh.yaml b/cases/arithmetic/tanh.yaml deleted file mode 100644 index 56f4effa..00000000 --- a/cases/arithmetic/tanh.yaml +++ /dev/null @@ -1,40 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic.yaml -function: tanh -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 0.0 - type: fp32 - result: - value: 0.0 - type: fp32 - - group: basic - args: - - value: 1.0 - type: fp64 - result: - value: 0.7615941559557649 - type: fp64 - - group: basic - args: - - value: 7.0000009 - type: fp64 - result: - value: 0.9999983369469382 - type: fp64 - - group: basic - args: - - value: -7.0000009 - type: fp64 - result: - value: -0.9999983369469382 - type: fp64 - - group: basic - args: - - value: null - type: fp64 - result: - value: null - type: fp64 diff --git a/cases/arithmetic_decimal/bitwise_and.yaml b/cases/arithmetic_decimal/bitwise_and.yaml deleted file mode 100644 index 2af9fdd7..00000000 --- a/cases/arithmetic_decimal/bitwise_and.yaml +++ /dev/null @@ -1,121 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic_decimal.yaml -function: bitwise_and -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 0 - type: decimal<1, 0> - - value: 1 - type: decimal<1, 0> - result: - value: 0 - type: decimal<1, 0> - - group: basic - args: - - value: 127 - type: decimal<3, 0> - - value: 127 - type: decimal<3, 0> - result: - value: 127 - type: decimal<3, 0> - - group: basic - args: - - value: -127 - type: decimal<3, 0> - - value: -10 - type: decimal<2, 0> - result: - value: -128 - type: decimal<3, 0> - - group: basic - args: - - value: 31766 - type: decimal<5, 0> - - value: 900 - type: decimal<3, 0> - result: - value: 4 - type: decimal<5, 0> - - group: basic - args: - - value: -31766 - type: decimal<5, 0> - - value: 900 - type: decimal<3, 0> - result: - value: 896 - type: decimal<5, 0> - - group: basic - args: - - value: 2147483647 - type: decimal<10, 0> - - value: 1234567 - type: decimal<7, 0> - result: - value: 1234567 - type: decimal<10, 0> - - group: basic - args: - - value: -2147483647 - type: decimal<10, 0> - - value: 1234567 - type: decimal<7, 0> - result: - value: 1 - type: decimal<10, 0> - - group: basic - args: - - value: 9223372036854775807 - type: decimal<19, 0> - - value: 127 - type: decimal<3, 0> - result: - value: 127 - type: decimal<19, 0> - - group: basic - args: - - value: -9223372036854775807 - type: decimal<19, 0> - - value: 127 - type: decimal<3, 0> - result: - value: 1 - type: decimal<19, 0> - - group: - id: max_values - description: test with max values - args: - # 38 9s - - value: 99999999999999999999999999999999999999 - type: decimal<38, 0> - # 38 9s - - value: 99999999999999999999999999999999999999 - type: decimal<38, 0> - result: - value: 99999999999999999999999999999999999999 - type: decimal<38, 0> - - group: max_values - args: - # 38 9s - - value: 99999999999999999999999999999999999999 - type: decimal<38, 0> - # 38 0s - - value: 00000000000000000000000000000000000000 - type: decimal<38, 0> - result: - value: 0 - type: decimal<38, 0> - - group: max_values - args: - # negative 38 9s - - value: -99999999999999999999999999999999999999 - type: decimal<38, 0> - # negative 38 9s - - value: -99999999999999999999999999999999999999 - type: decimal<38, 0> - result: - value: -99999999999999999999999999999999999999 - type: decimal<38, 0> diff --git a/cases/arithmetic_decimal/bitwise_or.yaml b/cases/arithmetic_decimal/bitwise_or.yaml deleted file mode 100644 index 04f09918..00000000 --- a/cases/arithmetic_decimal/bitwise_or.yaml +++ /dev/null @@ -1,143 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic_decimal.yaml -function: bitwise_or -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 0 - type: decimal<1, 0> - - value: 1 - type: decimal<1, 0> - result: - value: 1 - type: decimal<1, 0> - - group: basic - args: - - value: 127 - type: decimal<3, 0> - - value: 127 - type: decimal<3, 0> - result: - value: 127 - type: decimal<3, 0> - - group: basic - args: - - value: -127 - type: decimal<3, 0> - - value: -10 - type: decimal<2, 0> - result: - value: -9 - type: decimal<3, 0> - - group: basic - args: - - value: 31766 - type: decimal<5, 0> - - value: 900 - type: decimal<3, 0> - result: - value: 32662 - type: decimal<5, 0> - - group: basic - args: - - value: -31766 - type: decimal<5, 0> - - value: 900 - type: decimal<3, 0> - result: - value: -31762 - type: decimal<5, 0> - - group: basic - args: - - value: 2147483647 - type: decimal<10, 0> - - value: 123456789 - type: decimal<9, 0> - result: - value: 2147483647 - type: decimal<10, 0> - - group: basic - args: - - value: -2147483647 - type: decimal<10, 0> - - value: 123456789 - type: decimal<9, 0> - result: - value: -2024026859 - type: decimal<10, 0> - - group: basic - args: - - value: 9223372036854775807 - type: decimal<19, 0> - - value: 127 - type: decimal<3, 0> - result: - value: 9223372036854775807 - type: decimal<10, 0> - - group: basic - args: - - value: -9223372036854775807 - type: decimal<19, 0> - - value: 127 - type: decimal<3, 0> - result: - value: -9223372036854775681 - type: decimal<19, 0> - - group: - id: max_values - description: test with max values - args: - # 38 9s - - value: 99999999999999999999999999999999999999 - type: decimal<38, 0> - # 38 9s - - value: 99999999999999999999999999999999999999 - type: decimal<38, 0> - result: - value: 99999999999999999999999999999999999999 - type: decimal<38, 0> - - group: max_values - args: - # 38 9s - - value: 99999999999999999999999999999999999999 - type: decimal<38, 0> - # 38 0s - - value: 00000000000000000000000000000000000000 - type: decimal<38, 0> - result: - # 38 9s - value: 99999999999999999999999999999999999999 - type: decimal<38, 0> - - group: max_values - args: - # negative 38 9s - - value: -99999999999999999999999999999999999999 - type: decimal<38, 0> - # negative 38 9s - - value: -99999999999999999999999999999999999999 - type: decimal<38, 0> - result: - # negative 38 9s - value: -99999999999999999999999999999999999999 - type: decimal<38, 0> - - group: - id: null_values - description: test with null values - args: - - value: null - type: decimal<1, 0> - - value: 127 - type: decimal<3, 0> - result: - value: null - type: decimal<3, 0> - - group: null_values - args: - - value: null - type: decimal<1, 0> - - value: null - type: decimal<1, 0> - result: - value: null - type: decimal<1, 0> diff --git a/cases/arithmetic_decimal/bitwise_xor.yaml b/cases/arithmetic_decimal/bitwise_xor.yaml deleted file mode 100644 index 453d9a08..00000000 --- a/cases/arithmetic_decimal/bitwise_xor.yaml +++ /dev/null @@ -1,142 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic_decimal.yaml -function: bitwise_xor -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 0 - type: decimal<1, 0> - - value: 1 - type: decimal<1, 0> - result: - value: 1 - type: decimal<1, 0> - - group: basic - args: - - value: 127 - type: decimal<3, 0> - - value: 127 - type: decimal<3, 0> - result: - value: 0 - type: decimal<3, 0> - - group: basic - args: - - value: -127 - type: decimal<3, 0> - - value: -10 - type: decimal<2, 0> - result: - value: 119 - type: decimal<3, 0> - - group: basic - args: - - value: 31766 - type: decimal<5, 0> - - value: 900 - type: decimal<3, 0> - result: - value: 32658 - type: decimal<5, 0> - - group: basic - args: - - value: -31766 - type: decimal<5, 0> - - value: 900 - type: decimal<3, 0> - result: - value: -32658 - type: decimal<5, 0> - - group: basic - args: - - value: 2147483647 - type: decimal<10, 0> - - value: 123456789 - type: decimal<9, 0> - result: - value: 2024026858 - type: decimal<10, 0> - - group: basic - args: - - value: -2147483647 - type: decimal<10, 0> - - value: 123456789 - type: decimal<9, 0> - result: - value: -2024026860 - type: decimal<10, 0> - - group: basic - args: - - value: 9223372036854775807 - type: decimal<19, 0> - - value: 127 - type: decimal<3, 0> - result: - value: 9223372036854775680 - type: decimal<19, 0> - - group: basic - args: - - value: -9223372036854775807 - type: decimal<19, 0> - - value: 127 - type: decimal<3, 0> - result: - value: -9223372036854775682 - type: decimal<19, 0> - - group: - id: max_values - description: test with max values - args: - # 38 9s - - value: 99999999999999999999999999999999999999 - type: decimal<38, 0> - # 38 9s - - value: 99999999999999999999999999999999999999 - type: decimal<38, 0> - result: - value: 0 - type: decimal<38, 0> - - group: max_values - args: - # 38 9s - - value: 99999999999999999999999999999999999999 - type: decimal<38, 0> - # 38 0s - - value: 00000000000000000000000000000000000000 - type: decimal<38, 0> - result: - # 38 9s - value: 99999999999999999999999999999999999999 - type: decimal<38, 0> - - group: max_values - args: - # negative 38 9s - - value: -99999999999999999999999999999999999999 - type: decimal<38, 0> - # negative 38 9s - - value: -99999999999999999999999999999999999999 - type: decimal<38, 0> - result: - value: 0 - type: decimal<38, 0> - - group: - id: null_values - description: test with null values - args: - - value: null - type: decimal<1, 0> - - value: 127 - type: decimal<3, 0> - result: - value: null - type: decimal<3, 0> - - group: null_values - args: - - value: null - type: decimal<1, 0> - - value: null - type: decimal<1, 0> - result: - value: null - type: decimal<1, 0> diff --git a/cases/arithmetic_decimal/factorial_decimal.yaml b/cases/arithmetic_decimal/factorial_decimal.yaml deleted file mode 100644 index 1e03a078..00000000 --- a/cases/arithmetic_decimal/factorial_decimal.yaml +++ /dev/null @@ -1,59 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic_decimal.yaml -function: factorial -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 0 - type: decimal<1,0> - result: - value: 1 - type: decimal<38,0> - - group: basic - args: - - value: 1 - type: decimal<1,0> - result: - value: 1 - type: decimal<38,0> - - group: basic - args: - - value: 20 - type: decimal<2,0> - result: - value: 2432902008176640000 - type: decimal<38,0> - - group: - id: overflow - description: Examples demonstrating overflow behavior - args: - - value: 34 - type: decimal<2,0> - result: - special: error - - group: - id: negative_value - description: Examples demonstrating behavior on negative value - args: - - value: -1 - type: decimal<1,0> - result: - special: error - - group: - id: null_values - description: test with null values - args: - - value: null - type: decimal<38, 0> - result: - value: null - type: decimal<38, 0> - - group: null_values - args: - - value: null - type: decimal<1, 0> - result: - value: null - type: decimal<38, 0> - diff --git a/cases/arithmetic_decimal/max_decimal.yaml b/cases/arithmetic_decimal/max_decimal.yaml deleted file mode 100644 index 5a34ca38..00000000 --- a/cases/arithmetic_decimal/max_decimal.yaml +++ /dev/null @@ -1,91 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic_decimal.yaml -function: max -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: !decimallist [20, -3, 1, -10, 0, 5] - type: decimal<2, 0> - result: - value: !decimal 20 - type: decimal<2, 0> - - group: basic - args: - - value: !decimallist [-32768, 32767, 20000, -30000] - type: decimal<5, 0> - result: - value: !decimal 32767 - type: decimal<5, 0> - - group: basic - args: - - value: !decimallist [-214748648, 214748647, 21470048, 4000000] - type: decimal<9, 0> - result: - value: !decimal 214748647 - type: decimal<9, 0> - - group: basic - args: - - value: !decimallist [2000000000, -3217908979, 629000000, -100000000, 0, 987654321] - type: decimal<10, 0> - result: - value: !decimal 2000000000 - type: decimal<10, 0> - - group: basic - args: - - value: !decimallist [2.5, 0, 5.0, -2.5, -7.5] - type: decimal<2, 1> - result: - value: !decimal 5.0 - type: decimal<2, 1> - - group: basic - args: - - value: !decimallist [99999999999999999999999999999999999999, 0, -99999999999999999999999999999999999998, 111111111, -76] - type: decimal<38, 0> - result: - value: !decimal 99999999999999999999999999999999999999 - type: decimal<38, 0> - - group: - id: null_handling - description: Examples with null as unput or output - args: - - value: !decimallist [Null, Null, Null] - type: decimal<1, 0> - result: - value: !decimal Null - type: decimal<1, 0> - - group: null_handling - args: - - value: !decimallist [] - type: decimal<1, 0> - result: - value: !decimal Null - type: decimal<1, 0> - - group: null_handling - args: - - value: !decimallist [2000000000, Null, 629000000, -100000000, Null, 987654321] - type: decimal<10, 0> - result: - value: !decimal 2000000000 - type: decimal<10, 0> - - group: null_handling - args: - - value: !decimallist [Null, Null] - type: decimal<1, 0> - result: - value: !decimal Null - type: decimal<1, 0> - - group: null_handling - args: - - value: !decimallist [] - type: decimal<1, 0> - result: - value: !decimal Null - type: decimal<1, 0> - - group: null_handling - args: - - value: !decimallist [99999999999999999999999999999999999999, -99999999999999999999999999999999999998, Null, 11111111111111111111111111111111111111, Null] - type: decimal<38, 0> - result: - value: !decimal 99999999999999999999999999999999999999 - type: decimal<38, 0> diff --git a/cases/arithmetic_decimal/min_decimal.yaml b/cases/arithmetic_decimal/min_decimal.yaml deleted file mode 100644 index eca2f59f..00000000 --- a/cases/arithmetic_decimal/min_decimal.yaml +++ /dev/null @@ -1,77 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic_decimal.yaml -function: min -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: !decimallist [20, -3, 1, -10, 0, 5] - type: decimal<2, 0> - result: - value: !decimal -10 - type: decimal<2, 0> - - group: basic - args: - - value: !decimallist [-32768, 32767, 20000, -30000] - type: decimal<5, 0> - result: - value: !decimal -32768 - type: decimal<5, 0> - - group: basic - args: - - value: !decimallist [-214748648, 214748647, 21470048, 4000000] - type: decimal<9, 0> - result: - value: !decimal -214748648 - type: decimal<9, 0> - - group: basic - args: - - value: !decimallist [2000000000, -3217908979, 629000000, -100000000, 0, 987654321] - type: decimal<10, 0> - result: - value: !decimal -3217908979 - type: decimal<10, 0> - - group: basic - args: - - value: !decimallist [2.5, 0, 5.0, -2.5, -7.5] - type: decimal<2, 1> - result: - value: !decimal -7.5 - type: decimal<2, 1> - - group: basic - args: - - value: !decimallist [99999999999999999999999999999999999999, -99999999999999999999999999999999999998, -99999999999999999999999999999999999997, 0, 1111] - type: decimal<38, 0> - result: - value: !decimal -99999999999999999999999999999999999998 - type: decimal<38, 0> - - group: - id: null_handling - description: Examples with null as unput or output - args: - - value: !decimallist [Null, Null, Null] - type: decimal<1, 0> - result: - value: !decimal Null - type: decimal<1, 0> - - group: null_handling - args: - - value: !decimallist [] - type: decimal<1, 0> - result: - value: !decimal Null - type: decimal<1, 0> - - group: null_handling - args: - - value: !decimallist [2000000000, Null, 629000000, -100000000, Null, 987654321] - type: decimal<10, 0> - result: - value: !decimal -100000000 - type: decimal<10, 0> - - group: null_handling - args: - - value: !decimallist [-99999999999999999999999999999999999998, Null, 99999999999999999999999999999999999999, Null] - type: decimal<38, 0> - result: - value: !decimal -99999999999999999999999999999999999998 - type: decimal<38, 0> diff --git a/cases/arithmetic_decimal/power_decimal.yaml b/cases/arithmetic_decimal/power_decimal.yaml deleted file mode 100644 index a71154a4..00000000 --- a/cases/arithmetic_decimal/power_decimal.yaml +++ /dev/null @@ -1,114 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic_decimal.yaml -function: power -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 8 - type: decimal - - value: 2 - type: decimal<38, 0> - result: - value: 64 - type: fp64 - - group: basic - args: - - value: 1.0 - type: decimal - - value: -1.0 - type: decimal<38, 0> - result: - value: 1.0 - type: fp64 - - group: basic - args: - - value: 2.0 - type: decimal<38, 0> - - value: -2.0 - type: decimal<38, 0> - result: - value: 0.25 - type: fp64 - - group: basic - args: - - value: 13 - type: decimal<38, 0> - - value: 10 - type: decimal<38, 0> - result: - value: 137858491849 - type: fp64 - - group: - id: result_more_than_input_precison - description: Examples demonstrating result with more precision than input - args: - - value: 16 - type: decimal<2, 0> - - value: 4 - type: decimal<38, 0> - result: - value: 65536 - type: fp64 - - group: - id: floating_exception - description: Examples demonstrating exceptional floating point cases - args: - - value: 1.5e+10 - type: decimal<38, 0> - - value: 1.5e+20 - type: decimal<38, 0> - result: - value: inf - type: fp64 - - group: floating_exception - args: - - value: -16 - type: decimal<4, 0> - - value: 1001 - type: decimal<4, 0> - result: - value: -inf - type: fp64 - - group: - id: complex_number - description: Examples demonstrating complex number output - args: - - value: -1 - type: decimal - - value: 0.5 - type: decimal<38,1> - options: - complex_number_result: NAN - result: - special: nan - - group: complex_number - args: - - value: -1 - type: decimal - - value: 0.5 - type: decimal<38,1> - options: - complex_number_result: ERROR - result: - special: error - - group: - id: null_values - description: test with null values - args: - - value: null - type: decimal<38, 0> - - value: 127 - type: decimal<38, 0> - result: - value: null - type: decimal<38, 0> - - group: null_values - args: - - value: null - type: decimal<38, 0> - - value: null - type: decimal<38, 0> - result: - value: null - type: decimal<38, 0> diff --git a/cases/arithmetic_decimal/sqrt_decimal.yaml b/cases/arithmetic_decimal/sqrt_decimal.yaml deleted file mode 100644 index cd9d8e7f..00000000 --- a/cases/arithmetic_decimal/sqrt_decimal.yaml +++ /dev/null @@ -1,112 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic_decimal.yaml -function: sqrt -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 25 - type: decimal<2,0> - result: - value: 5 - type: fp64 - - group: basic - args: - - value: 0 - type: decimal<1,0> - result: - value: 0 - type: fp64 - - group: - id: max_input - description: max allowed input returns correct result - args: - - value: 99999999999999999999999999999999999999 - type: decimal<38,0> - result: - value: 1e+19 - type: fp64 - - group: - id: real_number - description: real number as input - args: - - value: 6.25 - type: decimal<3,2> - result: - value: 2.5 - type: fp64 - - group: real_number - args: - - value: 2.0000007152557373046875 - type: decimal<23,22> - result: - value: 1.4142138152541635 - type: fp64 - - group: - id: verify_real_number - description: verify real number operation are different and doesn't behave as nearby int - args: - - value: 9 - type: decimal<1,0> - result: - value: 3 - type: fp64 - - group: verify_real_number - args: - - value: 8.3 - type: decimal<2,1> - result: - value: 2.8809720581775866 - type: fp64 - - group: verify_real_number - args: - - value: 8.5 - type: decimal<2,1> - result: - value: 2.9154759474226504 - type: fp64 - - group: verify_real_number - args: - - value: 8.7 - type: decimal<2,1> - result: - value: 2.949576240750525 - type: fp64 - - group: verify_real_number - args: - - value: 9.2 - type: decimal<2,1> - result: - value: 3.03315017762062 - type: fp64 - - group: - id: negative_input - description: negative input returns error - args: - - value: -9223372036854775800 - type: decimal<19,0> - result: - special: error - - group: negative_input - args: - - value: -2.5 - type: decimal<2,1> - result: - special: error - - group: - id: null_values - description: test with null values - args: - - value: null - type: decimal<38, 0> - result: - value: null - type: fp64 - - group: null_values - args: - - value: null - type: decimal<1, 0> - result: - value: null - type: fp64 - diff --git a/cases/arithmetic_decimal/sum_decimal.yaml b/cases/arithmetic_decimal/sum_decimal.yaml deleted file mode 100644 index b7414b53..00000000 --- a/cases/arithmetic_decimal/sum_decimal.yaml +++ /dev/null @@ -1,66 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_arithmetic_decimal.yaml -function: sum -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: !decimallist [0, -1, 2, 20] - type: decimal<2, 0> - result: - value: !decimal 21 - type: decimal<38, 0> - - group: basic - args: - - value: !decimallist [2000000, -3217908, 629000, -100000, 0, 987654] - type: decimal<7, 0> - result: - value: !decimal 298746 - type: decimal<38, 0> - - group: basic - args: - - value: !decimallist [2.5, 0, 5.0, -2.5, -7.5] - type: decimal<2, 1> - result: - value: !decimal -2.5 - type: decimal<38, 2> - - group: basic - args: - - value: !decimallist [2.5000007152557373046875, 7.0000007152557373046875, 0, 7.0000007152557373046875] - type: decimal<23, 22> - result: - value: !decimal 16.5000021457672119140625 - type: decimal<38, 22> - - group: - id: overflow - description: Examples demonstrating overflow behavior - args: - - value: !decimallist [99999999999999999999999999999999999999, 1, 1, 1, 1, 99999999999999999999999999999999999999] - type: decimal<38, 0> - options: - overflow: ERROR - result: - special: error - - group: - id: null_handling - description: Examples with null as unput or output - args: - - value: !decimallist [Null, Null, Null] - type: decimal<1, 0> - result: - value: !decimal Null - type: decimal<38, 0> - - group: null_handling - args: - - value: !decimallist [] - type: decimal<1, 0> - result: - value: !decimal Null - type: decimal<38, 0> - - group: null_handling - args: - - value: !decimallist [200000, Null, 629000, -10000, 0, 987621] - type: decimal<6, 0> - result: - value: !decimal 1806621 - type: decimal<38, 0> diff --git a/cases/boolean/and.yaml b/cases/boolean/and.yaml deleted file mode 100644 index 147989b1..00000000 --- a/cases/boolean/and.yaml +++ /dev/null @@ -1,79 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_boolean.yaml -function: and -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: true - type: boolean - - value: true - type: boolean - result: - value: true - type: boolean - - group: basic - args: - - value: true - type: boolean - - value: false - type: boolean - result: - value: false - type: boolean - - group: basic - args: - - value: false - type: boolean - - value: false - type: boolean - result: - value: false - type: boolean - - group: - id: null_input - description: Examples with null as input - args: - - value: true - type: boolean - - value: null - type: boolean - result: - value: null - type: boolean - - group: null_input - args: - - value: null - type: boolean - - value: true - type: boolean - result: - value: null - type: boolean - - group: null_input - args: - - value: false - type: boolean - - value: null - type: boolean - result: - value: false - type: boolean - - group: null_input - args: - - value: null - type: boolean - - value: false - type: boolean - result: - value: false - type: boolean - - group: null_input - args: - - value: null - type: boolean - - value: null - type: boolean - result: - value: null - type: boolean diff --git a/cases/boolean/and_not.yaml b/cases/boolean/and_not.yaml deleted file mode 100644 index 27d042d1..00000000 --- a/cases/boolean/and_not.yaml +++ /dev/null @@ -1,88 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_boolean.yaml -function: and_not -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: true - type: boolean - - value: false - type: boolean - result: - value: true - type: boolean - - group: basic - args: - - value: true - type: boolean - - value: true - type: boolean - result: - value: false - type: boolean - - group: basic - args: - - value: false - type: boolean - - value: true - type: boolean - result: - value: false - type: boolean - - group: basic - args: - - value: false - type: boolean - - value: false - type: boolean - result: - value: false - type: boolean - - group: - id: null_input - description: Examples with null as input - args: - - value: true - type: boolean - - value: null - type: boolean - result: - value: null - type: boolean - - group: null_input - args: - - value: null - type: boolean - - value: false - type: boolean - result: - value: null - type: boolean - - group: null_input - args: - - value: false - type: boolean - - value: null - type: boolean - result: - value: false - type: boolean - - group: null_input - args: - - value: null - type: boolean - - value: true - type: boolean - result: - value: false - type: boolean - - group: null_input - args: - - value: null - type: boolean - - value: null - type: boolean - result: - value: null - type: boolean diff --git a/cases/boolean/bool_and.yaml b/cases/boolean/bool_and.yaml deleted file mode 100644 index f762d321..00000000 --- a/cases/boolean/bool_and.yaml +++ /dev/null @@ -1,61 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_boolean.yaml -function: bool_and -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: [true, true] - type: boolean - result: - value: true - type: boolean - - group: basic - args: - - value: [true, false] - type: boolean - result: - value: false - type: boolean - - group: basic - args: - - value: [false, false] - type: boolean - result: - value: false - type: boolean - - group: basic - args: - - value: [true] - type: boolean - result: - value: true - type: boolean - - group: basic - args: - - value: [true, null] - type: boolean - result: - value: true - type: boolean - - group: basic - args: - - value: [null, null] - type: boolean - result: - value: null - type: boolean - - group: basic - args: - - value: [false, null] - type: boolean - result: - value: false - type: boolean - - group: basic - args: - - value: [] - type: boolean - result: - value: null - type: boolean diff --git a/cases/boolean/bool_or.yaml b/cases/boolean/bool_or.yaml deleted file mode 100644 index 12b94d73..00000000 --- a/cases/boolean/bool_or.yaml +++ /dev/null @@ -1,68 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_boolean.yaml -function: bool_or -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: [true, true] - type: boolean - result: - value: true - type: boolean - - group: basic - args: - - value: [false, false] - type: boolean - result: - value: false - type: boolean - - group: basic - args: - - value: [true, false] - type: boolean - result: - value: true - type: boolean - - group: basic - args: - - value: [false] - type: boolean - result: - value: false - type: boolean - - group: basic - args: - - value: [true] - type: boolean - result: - value: true - type: boolean - - group: basic - args: - - value: [true, null] - type: boolean - result: - value: true - type: boolean - - group: basic - args: - - value: [null, null] - type: boolean - result: - value: null - type: boolean - - group: basic - args: - - value: [false, null] - type: boolean - result: - value: false - type: boolean - - group: basic - args: - - value: [] - type: boolean - result: - value: null - type: boolean diff --git a/cases/boolean/not.yaml b/cases/boolean/not.yaml deleted file mode 100644 index c3de0a2a..00000000 --- a/cases/boolean/not.yaml +++ /dev/null @@ -1,28 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_boolean.yaml -function: not -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: true - type: boolean - result: - value: false - type: boolean - - group: basic - args: - - value: false - type: boolean - result: - value: true - type: boolean - - group: - id: null_input - description: Examples with null as input - args: - - value: null - type: boolean - result: - value: null - type: boolean diff --git a/cases/boolean/or.yaml b/cases/boolean/or.yaml deleted file mode 100644 index f3d63e88..00000000 --- a/cases/boolean/or.yaml +++ /dev/null @@ -1,79 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_boolean.yaml -function: or -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: true - type: boolean - - value: true - type: boolean - result: - value: true - type: boolean - - group: basic - args: - - value: true - type: boolean - - value: false - type: boolean - result: - value: true - type: boolean - - group: basic - args: - - value: false - type: boolean - - value: false - type: boolean - result: - value: false - type: boolean - - group: - id: null_input - description: Examples with null as input - args: - - value: true - type: boolean - - value: null - type: boolean - result: - value: true - type: boolean - - group: null_input - args: - - value: null - type: boolean - - value: true - type: boolean - result: - value: true - type: boolean - - group: null_input - args: - - value: false - type: boolean - - value: null - type: boolean - result: - value: null - type: boolean - - group: null_input - args: - - value: null - type: boolean - - value: false - type: boolean - result: - value: null - type: boolean - - group: null_input - args: - - value: null - type: boolean - - value: null - type: boolean - result: - value: null - type: boolean diff --git a/cases/boolean/xor.yaml b/cases/boolean/xor.yaml deleted file mode 100644 index aa19bd49..00000000 --- a/cases/boolean/xor.yaml +++ /dev/null @@ -1,79 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_boolean.yaml -function: xor -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: true - type: boolean - - value: false - type: boolean - result: - value: true - type: boolean - - group: basic - args: - - value: true - type: boolean - - value: true - type: boolean - result: - value: false - type: boolean - - group: basic - args: - - value: false - type: boolean - - value: false - type: boolean - result: - value: false - type: boolean - - group: basic - args: - - value: false - type: boolean - - value: true - type: boolean - result: - value: true - type: boolean - - group: - id: null_input - description: Examples with null as input - args: - - value: true - type: boolean - - value: null - type: boolean - result: - value: null - type: boolean - - group: null_input - args: - - value: null - type: boolean - - value: true - type: boolean - result: - value: null - type: boolean - - group: null_input - args: - - value: false - type: boolean - - value: null - type: boolean - result: - value: null - type: boolean - - group: null_input - args: - - value: null - type: boolean - - value: false - type: boolean - result: - value: null - type: boolean diff --git a/cases/comparison/between.yaml b/cases/comparison/between.yaml deleted file mode 100644 index c3ad09f4..00000000 --- a/cases/comparison/between.yaml +++ /dev/null @@ -1,172 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_comparison.yaml -function: between -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 5 - type: i8 - - value: 0 - type: i8 - - value: 127 - type: i8 - result: - value: true - type: boolean - - group: basic - args: - - value: 20000 - type: i16 - - value: 1 - type: i16 - - value: 30000 - type: i16 - result: - value: true - type: boolean - - group: basic - args: - - value: 1030000000 - type: i32 - - value: 1000000000 - type: i32 - - value: 2000000000 - type: i32 - result: - value: true - type: boolean - - group: basic - args: - - value: 10300000000900 - type: i64 - - value: 1000000000 - type: i64 - - value: 9223372036854775807 - type: i64 - result: - value: true - type: boolean - - group: basic - args: - - value: 2 - type: i8 - - value: 1 - type: i8 - - value: -120 - type: i8 - result: - value: False - type: boolean - - group: basic - args: - - value: -10000 - type: i16 - - value: -20000 - type: i16 - - value: -30000 - type: i16 - result: - value: False - type: boolean - - group: basic - args: - - value: -100000000 - type: i32 - - value: -1000000000 - type: i32 - - value: -2000000000 - type: i32 - result: - value: False - type: boolean - - group: basic - args: - - value: 92233720368547758 - type: i64 - - value: 1 - type: i64 - - value: -9223372036854775807 - type: i64 - result: - value: False - type: boolean - - group: basic - args: - - value: 14.01 - type: fp32 - - value: 20.90 - type: fp32 - - value: 88.00 - type: fp32 - result: - value: False - type: boolean - - group: basic - args: - - value: 14.011 - type: fp64 - - value: 0.00 - type: fp64 - - value: inf - type: fp64 - result: - value: True - type: boolean - - group: basic - args: - - value: inf - type: fp64 - - value: 0.00 - type: fp64 - - value: 100.09 - type: fp64 - result: - value: False - type: boolean - - group: basic - args: - - value: -100.0011 - type: fp64 - - value: -inf - type: fp64 - - value: 0.00 - type: fp64 - result: - value: True - type: boolean - - group: - id: null_input - description: Examples with null as input - args: - - value: null - type: i8 - - value: 1 - type: i8 - - value: 10 - type: i8 - result: - value: null - type: boolean - - group: null_input - args: - - value: 1 - type: i64 - - value: null - type: i64 - - value: 10 - type: i64 - result: - value: null - type: boolean - - group: null_input - args: - - value: 1 - type: i64 - - value: 1 - type: i64 - - value: null - type: i64 - result: - value: null - type: boolean diff --git a/cases/comparison/coalesce.yaml b/cases/comparison/coalesce.yaml deleted file mode 100644 index a5bb626c..00000000 --- a/cases/comparison/coalesce.yaml +++ /dev/null @@ -1,113 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_comparison.yaml -function: coalesce -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 1 - type: i8 - - value: 2 - type: i8 - result: - value: 1 - type: i8 - - group: basic - args: - - value: null - type: i8 - - value: 2 - type: i8 - result: - value: 2 - type: i8 - - group: basic - args: - - value: null - type: i16 - - value: null - type: i16 - result: - value: null - type: i16 - - group: basic - args: - - value: 2000000 - type: i32 - - value: null - type: i32 - result: - value: 2000000 - type: i32 - - group: basic - args: - - value: null - type: i64 - - value: 9223372036854775807 - type: i64 - result: - value: 9223372036854775807 - type: i64 - - group: basic - args: - - value: null - type: fp32 - - value: -65.500000 - type: fp32 - result: - value: -65.500000 - type: fp32 - - group: basic - args: - - value: inf - type: fp64 - - value: -inf - type: fp64 - result: - value: inf - type: fp64 - - group: basic - args: - - value: 7 - type: decimal<38, 0> - - value: 4 - type: decimal<38, 0> - result: - value: 7 - type: decimal<38, 0> - - group: basic - args: - - value: null - type: decimal<38, 0> - - value: 2 - type: decimal<38, 0> - result: - value: 2 - type: decimal<38, 0> - - group: basic - args: - - value: null - type: decimal<38, 0> - - value: null - type: decimal<38, 0> - result: - value: null - type: decimal<38, 0> - - group: basic - args: - - value: 2000000 - type: decimal<38, 0> - - value: null - type: decimal<38, 0> - result: - value: 2000000 - type: decimal<38, 0> - - group: basic - args: - - value: null - type: decimal<38, 0> - - value: 2000000 - type: decimal<38, 0> - result: - value: 2000000 - type: decimal<38, 0> diff --git a/cases/comparison/equal.yaml b/cases/comparison/equal.yaml deleted file mode 100644 index def28fa5..00000000 --- a/cases/comparison/equal.yaml +++ /dev/null @@ -1,124 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_comparison.yaml -function: equal -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 1 - type: i8 - - value: 1 - type: i8 - result: - value: true - type: boolean - - group: basic - args: - - value: 300 - type: i16 - - value: 200 - type: i16 - result: - value: false - type: boolean - - group: basic - args: - - value: -2147483648 - type: i32 - - value: -2147483648 - type: i32 - result: - value: true - type: boolean - - group: basic - args: - - value: 9223372036854775807 - type: i64 - - value: 9223372036854775804 - type: i64 - result: - value: false - type: boolean - - group: basic - args: - - value: inf - type: fp64 - - value: inf - type: fp64 - result: - value: true - type: boolean - - group: basic - args: - - value: inf - type: fp64 - - value: 1.5e+308 - type: fp64 - result: - value: false - type: boolean - - group: basic - args: - - value: 10 - type: decimal<38, 0> - - value: 10 - type: decimal<38, 0> - result: - value: true - type: boolean - - group: basic - args: - - value: 10 - type: decimal<38, 0> - - value: 11.25 - type: decimal<38, 2> - result: - value: false - type: boolean - - group: basic - args: - - value: inf - type: fp64 - - value: -inf - type: fp64 - result: - value: false - type: boolean - - group: - id: null_input - description: Examples with null as input - args: - - value: null - type: i16 - - value: 1 - type: i16 - result: - value: null - type: boolean - - group: null_input - args: - - value: null - type: i16 - - value: null - type: i16 - result: - value: null - type: boolean - - group: null_input - args: - - value: 7 - type: decimal<38, 0> - - value: null - type: decimal<38, 0> - result: - value: null - type: boolean - - group: null_input - args: - - value: null - type: decimal<38, 0> - - value: null - type: decimal<38, 0> - result: - value: null - type: boolean \ No newline at end of file diff --git a/cases/comparison/gt.yaml b/cases/comparison/gt.yaml deleted file mode 100644 index 80379831..00000000 --- a/cases/comparison/gt.yaml +++ /dev/null @@ -1,142 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_comparison.yaml -function: gt -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 1 - type: i8 - - value: 2 - type: i8 - result: - value: false - type: boolean - - group: basic - args: - - value: 200 - type: i16 - - value: 199 - type: i16 - result: - value: true - type: boolean - - group: basic - args: - - value: 200 - type: i16 - - value: 200 - type: i16 - result: - value: false - type: boolean - - group: basic - args: - - value: 2000000000 - type: i32 - - value: 1000000000 - type: i32 - result: - value: true - type: boolean - - group: basic - args: - - value: -922337203685775808 - type: i64 - - value: -922337203685775807 - type: i64 - result: - value: false - type: boolean - - group: basic - args: - - value: 7.25 - type: fp32 - - value: 2.50 - type: fp32 - result: - value: true - type: boolean - - group: basic - args: - - value: -922337203685775808 - type: decimal<38, 0> - - value: -922337203685775807 - type: decimal<38, 0> - result: - value: false - type: boolean - - group: basic - args: - - value: 7.25 - type: decimal<38, 2> - - value: 2.50 - type: decimal<38, 2> - result: - value: true - type: boolean - - group: - id: null_input - description: Examples with null as input - args: - - value: inf - type: fp64 - - value: 1.5e+308 - type: fp64 - result: - value: true - type: boolean - - group: basic - args: - - value: -1.5e+308 - type: fp64 - - value: -inf - type: fp64 - result: - value: true - type: boolean - - group: basic - args: - - value: null - type: i16 - - value: 100 - type: i16 - result: - value: null - type: boolean - - group: null_input - args: - - value: 2 - type: i16 - - value: null - type: i16 - result: - value: null - type: boolean - - group: null_input - args: - - value: null - type: i16 - - value: null - type: i16 - result: - value: null - type: boolean - - group: null_input - args: - - value: 2 - type: decimal<38, 2> - - value: null - type: decimal<38, 2> - result: - value: null - type: boolean - - group: null_input - args: - - value: null - type: decimal<38, 2> - - value: null - type: decimal<38, 2> - result: - value: null - type: boolean diff --git a/cases/comparison/gte.yaml b/cases/comparison/gte.yaml deleted file mode 100644 index d98c744c..00000000 --- a/cases/comparison/gte.yaml +++ /dev/null @@ -1,160 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_comparison.yaml -function: gte -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 1 - type: i8 - - value: 2 - type: i8 - result: - value: false - type: boolean - - group: basic - args: - - value: 2 - type: i8 - - value: 2 - type: i8 - result: - value: true - type: boolean - - group: basic - args: - - value: 200 - type: i16 - - value: 199 - type: i16 - result: - value: true - type: boolean - - group: basic - args: - - value: 2000000000 - type: i32 - - value: 1000000000 - type: i32 - result: - value: true - type: boolean - - group: basic - args: - - value: -922337203685775808 - type: i64 - - value: -922337203685775807 - type: i64 - result: - value: false - type: boolean - - group: basic - args: - - value: 7.25 - type: fp32 - - value: 2.50 - type: fp32 - result: - value: true - type: boolean - - group: basic - args: - - value: 7.25 - type: fp32 - - value: 7.25 - type: fp32 - result: - value: true - type: boolean - - group: basic - args: - - value: 7.25 - type: decimal<38, 2> - - value: 7.25 - type: decimal<38, 2> - result: - value: true - type: boolean - - group: basic - args: - - value: 7.25 - type: decimal<38, 2> - - value: 7.27 - type: decimal<38, 2> - result: - value: false - type: boolean - - group: basic - args: - - value: inf - type: fp64 - - value: 1.5e+308 - type: fp64 - result: - value: true - type: boolean - - group: basic - args: - - value: inf - type: fp64 - - value: inf - type: fp64 - result: - value: true - type: boolean - - group: basic - args: - - value: -inf - type: fp64 - - value: -1.5e+308 - type: fp64 - result: - value: false - type: boolean - - group: - id: null_input - description: Examples with null as input - args: - - value: null - type: i16 - - value: 1 - type: i16 - result: - value: null - type: boolean - - group: null_input - args: - - value: 2 - type: i16 - - value: null - type: i16 - result: - value: null - type: boolean - - group: null_input - args: - - value: null - type: i16 - - value: null - type: i16 - result: - value: null - type: boolean - - group: basic - args: - - value: null - type: decimal<38, 2> - - value: 7.25 - type: decimal<38, 2> - result: - value: null - type: boolean - - group: basic - args: - - value: null - type: decimal<38, 2> - - value: null - type: decimal<38, 2> - result: - value: null - type: boolean diff --git a/cases/comparison/is_finite.yaml b/cases/comparison/is_finite.yaml deleted file mode 100644 index 1910c009..00000000 --- a/cases/comparison/is_finite.yaml +++ /dev/null @@ -1,47 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_comparison.yaml -function: is_finite -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 0.0 - type: fp32 - result: - value: true - type: boolean - - group: basic - args: - - value: 0.55 - type: fp32 - result: - value: true - type: boolean - - group: basic - args: - - value: 1000.000000000001 - type: fp64 - result: - value: true - type: boolean - - group: basic - args: - - value: -inf - type: fp64 - result: - value: false - type: boolean - - group: basic - args: - - value: inf - type: fp64 - result: - value: false - type: boolean - - group: basic - args: - - value: null - type: fp64 - result: - value: null - type: boolean diff --git a/cases/comparison/is_infinite.yaml b/cases/comparison/is_infinite.yaml deleted file mode 100644 index b97bdd9f..00000000 --- a/cases/comparison/is_infinite.yaml +++ /dev/null @@ -1,47 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_comparison.yaml -function: is_infinite -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 0.0 - type: fp32 - result: - value: false - type: boolean - - group: basic - args: - - value: 0.55 - type: fp32 - result: - value: false - type: boolean - - group: basic - args: - - value: 1000.000000000001 - type: fp64 - result: - value: false - type: boolean - - group: basic - args: - - value: -inf - type: fp64 - result: - value: true - type: boolean - - group: basic - args: - - value: inf - type: fp64 - result: - value: true - type: boolean - - group: basic - args: - - value: null - type: fp64 - result: - value: null - type: boolean diff --git a/cases/comparison/is_nan.yaml b/cases/comparison/is_nan.yaml deleted file mode 100644 index 0d25ac93..00000000 --- a/cases/comparison/is_nan.yaml +++ /dev/null @@ -1,54 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_comparison.yaml -function: is_nan -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 0.0 - type: fp32 - result: - value: false - type: boolean - - group: basic - args: - - value: 0.55 - type: fp32 - result: - value: false - type: boolean - - group: basic - args: - - value: 1000.000000000001 - type: fp64 - result: - value: false - type: boolean - - group: basic - args: - - value: -inf - type: fp64 - result: - value: false - type: boolean - - group: basic - args: - - value: inf - type: fp64 - result: - value: false - type: boolean - - group: basic - args: - - value: null - type: fp64 - result: - value: null - type: boolean - - group: basic - args: - - value: nan - type: fp64 - result: - value: true - type: boolean diff --git a/cases/comparison/is_not_distinct_from.yaml b/cases/comparison/is_not_distinct_from.yaml deleted file mode 100644 index de777e30..00000000 --- a/cases/comparison/is_not_distinct_from.yaml +++ /dev/null @@ -1,79 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_comparison.yaml -function: is_not_distinct_from -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 1 - type: i16 - - value: 1 - type: i16 - result: - value: true - type: boolean - - group: basic - args: - - value: 2 - type: i16 - - value: 1 - type: i16 - result: - value: false - type: boolean - - group: basic - args: - - value: 1.75 - type: decimal<38, 2> - - value: 1.75 - type: decimal<38, 2> - result: - value: true - type: boolean - - group: basic - args: - - value: 1.75 - type: decimal<38, 2> - - value: 1.1 - type: decimal<38, 2> - result: - value: false - type: boolean - - group: - id: null_input - description: Examples with null as input - args: - - value: null - type: i16 - - value: 1 - type: i16 - result: - value: false - type: boolean - - group: null_input - args: - - value: null - type: i16 - - value: null - type: i16 - result: - value: true - type: boolean - - group: null_input - args: - - value: 10 - type: decimal<38, 0> - - value: null - type: decimal<38, 0> - result: - value: false - type: boolean - - group: null_input - args: - - value: null - type: decimal<38, 0> - - value: null - type: decimal<38, 0> - result: - value: true - type: boolean diff --git a/cases/comparison/is_not_null.yaml b/cases/comparison/is_not_null.yaml deleted file mode 100644 index 259c1b7c..00000000 --- a/cases/comparison/is_not_null.yaml +++ /dev/null @@ -1,47 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_comparison.yaml -function: is_not_null -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 25 - type: i16 - result: - value: true - type: boolean - - group: basic - args: - - value: true - type: boolean - result: - value: true - type: boolean - - group: basic - args: - - value: 7.25 - type: fp32 - result: - value: true - type: boolean - - group: basic - args: - - value: 7.25 - type: decimal<38, 3> - result: - value: true - type: boolean - - group: basic - args: - - value: null - type: i8 - result: - value: False - type: boolean - - group: basic - args: - - value: null - type: decimal<38, 3> - result: - value: false - type: boolean diff --git a/cases/comparison/is_null.yaml b/cases/comparison/is_null.yaml deleted file mode 100644 index ef624131..00000000 --- a/cases/comparison/is_null.yaml +++ /dev/null @@ -1,40 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_comparison.yaml -function: is_null -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 25 - type: i16 - result: - value: false - type: boolean - - group: basic - args: - - value: false - type: boolean - result: - value: false - type: boolean - - group: basic - args: - - value: 7.823 - type: decimal<38, 3> - result: - value: false - type: boolean - - group: basic - args: - - value: null - type: i16 - result: - value: true - type: boolean - - group: basic - args: - - value: null - type: decimal<38, 3> - result: - value: true - type: boolean diff --git a/cases/comparison/lt.yaml b/cases/comparison/lt.yaml deleted file mode 100644 index 9dcc0263..00000000 --- a/cases/comparison/lt.yaml +++ /dev/null @@ -1,142 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_comparison.yaml -function: lt -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 1 - type: i8 - - value: 2 - type: i8 - result: - value: true - type: boolean - - group: basic - args: - - value: 200 - type: i16 - - value: 100 - type: i16 - result: - value: false - type: boolean - - group: basic - args: - - value: 1000 - type: i16 - - value: 1000 - type: i16 - result: - value: false - type: boolean - - group: basic - args: - - value: 2000000000 - type: i32 - - value: 1000000000 - type: i32 - result: - value: false - type: boolean - - group: basic - args: - - value: -922337203685775808 - type: i64 - - value: -922337203685775807 - type: i64 - result: - value: true - type: boolean - - group: basic - args: - - value: 7.25 - type: fp32 - - value: 2.50 - type: fp32 - result: - value: false - type: boolean - - group: basic - args: - - value: 7.25 - type: decimal<38, 2> - - value: 7.25 - type: decimal<38, 2> - result: - value: false - type: boolean - - group: basic - args: - - value: 2.49 - type: decimal<38, 2> - - value: 2.50 - type: decimal<38, 2> - result: - value: true - type: boolean - - group: basic - args: - - value: 1.5e+308 - type: fp64 - - value: inf - type: fp64 - result: - value: true - type: boolean - - group: basic - args: - - value: -1.5e+308 - type: fp64 - - value: -inf - type: fp64 - result: - value: false - type: boolean - - group: - id: null_input - description: Examples with null as input - args: - - value: null - type: i16 - - value: 1 - type: i16 - result: - value: null - type: boolean - - group: null_input - args: - - value: 2 - type: i16 - - value: null - type: i16 - result: - value: null - type: boolean - - group: null_input - args: - - value: null - type: i16 - - value: null - type: i16 - result: - value: null - type: boolean - - group: basic - args: - - value: null - type: decimal<38, 2> - - value: 2.50 - type: decimal<38, 2> - result: - value: null - type: boolean - - group: basic - args: - - value: null - type: decimal<38, 2> - - value: null - type: decimal<38, 2> - result: - value: null - type: boolean diff --git a/cases/comparison/lte.yaml b/cases/comparison/lte.yaml deleted file mode 100644 index 7231240e..00000000 --- a/cases/comparison/lte.yaml +++ /dev/null @@ -1,160 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_comparison.yaml -function: lte -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 1 - type: i8 - - value: 2 - type: i8 - result: - value: true - type: boolean - - group: basic - args: - - value: 2 - type: i8 - - value: 2 - type: i8 - result: - value: true - type: boolean - - group: basic - args: - - value: 200 - type: i16 - - value: 199 - type: i16 - result: - value: false - type: boolean - - group: basic - args: - - value: 2000000000 - type: i32 - - value: 1000000000 - type: i32 - result: - value: false - type: boolean - - group: basic - args: - - value: -922337203685775808 - type: i64 - - value: -922337203685775807 - type: i64 - result: - value: true - type: boolean - - group: basic - args: - - value: 7.00 - type: fp32 - - value: 2.50 - type: fp32 - result: - value: false - type: boolean - - group: basic - args: - - value: 7.25 - type: fp32 - - value: 7.25 - type: fp32 - result: - value: true - type: boolean - - group: basic - args: - - value: 7.25 - type: decimal<38, 2> - - value: 7.25 - type: decimal<38, 2> - result: - value: true - type: boolean - - group: basic - args: - - value: 2.59 - type: decimal<38, 2> - - value: 2.50 - type: decimal<38, 2> - result: - value: false - type: boolean - - group: basic - args: - - value: 1.5e+308 - type: fp64 - - value: inf - type: fp64 - result: - value: true - type: boolean - - group: basic - args: - - value: inf - type: fp64 - - value: inf - type: fp64 - result: - value: true - type: boolean - - group: basic - args: - - value: -1.5e+308 - type: fp64 - - value: -inf - type: fp64 - result: - value: false - type: boolean - - group: - id: null_input - description: Examples with null as input - args: - - value: null - type: i16 - - value: 1 - type: i16 - result: - value: null - type: boolean - - group: null_input - args: - - value: 2 - type: i16 - - value: null - type: i16 - result: - value: null - type: boolean - - group: null_input - args: - - value: null - type: i16 - - value: null - type: i16 - result: - value: null - type: boolean - - group: basic - args: - - value: null - type: decimal<38, 2> - - value: 2.50 - type: decimal<38, 2> - result: - value: null - type: boolean - - group: basic - args: - - value: null - type: decimal<38, 2> - - value: null - type: decimal<38, 2> - result: - value: null - type: boolean diff --git a/cases/comparison/not_equal.yaml b/cases/comparison/not_equal.yaml deleted file mode 100644 index 8d5709b2..00000000 --- a/cases/comparison/not_equal.yaml +++ /dev/null @@ -1,124 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_comparison.yaml -function: not_equal -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 1 - type: i8 - - value: 1 - type: i8 - result: - value: false - type: boolean - - group: basic - args: - - value: 300 - type: i16 - - value: 200 - type: i16 - result: - value: true - type: boolean - - group: basic - args: - - value: -2147483648 - type: i32 - - value: -2147483648 - type: i32 - result: - value: false - type: boolean - - group: basic - args: - - value: 9223372036854775807 - type: i64 - - value: 9223372036854775804 - type: i64 - result: - value: true - type: boolean - - group: basic - args: - - value: 9223372036854775807 - type: decimal<38, 0> - - value: 9223372036854775804 - type: decimal<38, 0> - result: - value: true - type: boolean - - group: basic - args: - - value: 9223372036854775804 - type: decimal<38, 0> - - value: 9223372036854775804 - type: decimal<38, 0> - result: - value: false - type: boolean - - group: basic - args: - - value: inf - type: fp64 - - value: inf - type: fp64 - result: - value: false - type: boolean - - group: basic - args: - - value: inf - type: fp64 - - value: 1.5e+308 - type: fp64 - result: - value: true - type: boolean - - group: basic - args: - - value: inf - type: fp64 - - value: -inf - type: fp64 - result: - value: true - type: boolean - - group: - id: null_input - description: Examples with null as input - args: - - value: null - type: i16 - - value: 1 - type: i16 - result: - value: null - type: boolean - - group: null_input - args: - - value: null - type: i16 - - value: null - type: i16 - result: - value: null - type: boolean - - group: basic - args: - - value: null - type: decimal<38, 2> - - value: 2.50 - type: decimal<38, 2> - result: - value: null - type: boolean - - group: basic - args: - - value: null - type: decimal<38, 2> - - value: null - type: decimal<38, 2> - result: - value: null - type: boolean diff --git a/cases/comparison/nullif.yaml b/cases/comparison/nullif.yaml deleted file mode 100644 index 9a17ccaa..00000000 --- a/cases/comparison/nullif.yaml +++ /dev/null @@ -1,115 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_comparison.yaml -function: nullif -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 1 - type: i16 - - value: 5 - type: i16 - result: - value: 1 - type: i16 - - group: basic - args: - - value: 7.25 - type: fp32 - - value: 1.00 - type: fp32 - result: - value: 7.25 - type: fp32 - - group: basic - args: - - value: 1.11 - type: fp32 - - value: 1.11 - type: fp32 - result: - value: null - type: fp32 - - group: basic - args: - - value: false - type: boolean - - value: true - type: boolean - result: - value: false - type: boolean - - group: basic - args: - - value: true - type: boolean - - value: false - type: boolean - result: - value: true - type: boolean - - group: basic - args: - - value: false - type: boolean - - value: false - type: boolean - result: - value: null - type: boolean - - group: basic - args: - - value: true - type: boolean - - value: true - type: boolean - result: - value: null - type: boolean - - group: - id: null_input - description: Examples with null as input - args: - - value: null - type: boolean - - value: true - type: boolean - result: - value: null - type: boolean - - group: null_input - args: - - value: true - type: boolean - - value: null - type: boolean - result: - value: true - type: boolean - - group: null_input - args: - - value: null - type: boolean - - value: null - type: boolean - result: - value: null - type: boolean - - group: null_input - args: - - value: 10 - type: decimal<38, 0> - - value: null - type: decimal<38, 0> - result: - value: 10 - type: boolean - - group: null_input - args: - - value: null - type: decimal<38, 0> - - value: null - type: decimal<38, 0> - result: - value: null - type: boolean diff --git a/cases/datetime/add_datetime.yaml b/cases/datetime/add_datetime.yaml deleted file mode 100644 index e83e756b..00000000 --- a/cases/datetime/add_datetime.yaml +++ /dev/null @@ -1,72 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_datetime.yaml -function: add -cases: - - group: - id: timestamps - description: examples using the timestamp types - args: - - value: '2016-12-31 13:30:15' - type: timestamp - - value: INTERVAL '5 DAY' - type: interval - result: - value: '2017-01-05 13:30:15' - type: timestamp - - group: timestamps - args: - - value: '2016-12-01 13:30:15' - type: timestamp - - value: INTERVAL '5 YEAR' - type: interval - result: - value: '2021-12-01 13:30:15' - type: timestamp - - group: timestamps - args: - - value: '2016-12-01 13:30:15' - type: timestamp - - value: INTERVAL '5 HOUR' - type: interval - result: - value: '2016-12-01 18:30:15' - type: timestamp - - group: - id: date_to_timestamp - description: examples using the date types and resulting in a timestamp - args: - - value: '2020-12-31' - type: date - - value: INTERVAL '5 DAY' - type: interval - result: - value: '2021-01-05 00:00:00' - type: timestamp - - group: date_to_timestamp - args: - - value: '2020-12-31 ' - type: date - - value: INTERVAL '5 YEAR' - type: interval - result: - value: '2025-12-31 00:00:00' - type: timestamp - - group: date_to_timestamp - args: - - value: '2020-12-31' - type: date - - value: INTERVAL '5 MONTH' - type: interval - result: - value: '2021-05-31 00:00:00' - type: timestamp - - group: - id: null_input - description: examples with null args or return - args: - - value: null - type: date - - value: INTERVAL '5 DAY' - type: interval - result: - value: null - type: date diff --git a/cases/datetime/add_intervals.yaml b/cases/datetime/add_intervals.yaml deleted file mode 100644 index 301fbb03..00000000 --- a/cases/datetime/add_intervals.yaml +++ /dev/null @@ -1,87 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_datetime.yaml -function: add_intervals -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: INTERVAL '10 HOUR' - type: interval - - value: INTERVAL '5 HOUR' - type: interval - result: - value: '15:00:00' - type: string - - group: basic - args: - - value: INTERVAL '10 DAY' - type: interval - - value: INTERVAL '5 DAY' - type: interval - result: - value: '15 days, 0:00:00' - type: string - - group: basic - args: - - value: INTERVAL '1 YEAR' - type: interval - - value: INTERVAL '1 YEAR' - type: interval - options: - year_interval: 360 - result: - value: '720 days, 0:00:00' - type: string - - group: basic - args: - - value: INTERVAL '1 YEAR' - type: interval - - value: INTERVAL '1 YEAR' - type: interval - options: - year_interval: 365 - result: - value: '730 days, 0:00:00' - type: string - - group: basic - args: - - value: INTERVAL '1 DAY' - type: interval - - value: INTERVAL '10 HOUR' - type: interval - result: - value: '1 day, 10:00:00' - type: string - - group: basic - args: - - value: INTERVAL '1 YEAR' - type: interval - - value: INTERVAL '1 HOUR' - type: interval - options: - year_interval: 360 - result: - value: '360 days, 1:00:00' - type: string - - group: basic - args: - - value: INTERVAL '1 YEAR' - type: interval - - value: INTERVAL '1 HOUR' - type: interval - options: - year_interval: 365 - result: - value: '365 days, 1:00:00' - type: string - - group: - id: null_input - description: Basic examples where the input args or return is null - args: - - value: null - type: interval - - value: INTERVAL '1 YEAR' - type: interval - result: - value: null - type: string diff --git a/cases/datetime/extract.yaml b/cases/datetime/extract.yaml deleted file mode 100644 index 732b4f02..00000000 --- a/cases/datetime/extract.yaml +++ /dev/null @@ -1,243 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_datetime.yaml -function: extract -cases: - - group: - id: timestamps - description: examples using the timestamp and timestamptz types - args: - - value: YEAR - type: string - - value: '2016-12-31 13:30:15' - type: timestamp - result: - value: 2016 - type: i64 - - group: timestamps - args: - - value: ISOYEAR - type: string - - value: '2016-01-01 13:30:15' - type: timestamp - result: - value: 2015 - type: i64 - - group: timestamps - args: - - value: QUARTER - type: string - - value: '2016-12-31 13:30:15' - type: timestamp - result: - value: 4 - type: i64 - - group: timestamps - args: - - value: MONTH - type: string - - value: '2016-12-31 13:30:15' - type: timestamp - result: - value: 12 - type: i64 - - group: timestamps - args: - - value: WEEK - type: string - - value: '2016-12-31 13:30:15' - type: timestamp - result: - value: 52 - type: i64 - - group: timestamps - args: - - value: DAY - type: string - - value: '2016-12-31 13:30:15' - type: timestamp - result: - value: 31 - type: i64 - - group: timestamps - args: - - value: ISODOW - type: string - - value: '2016-12-25 13:30:15' - type: timestamp - result: - value: 7 - type: i64 - - group: timestamps - args: - - value: DOW - type: string - - value: '2016-12-25 13:30:15' - type: timestamp - result: - value: 0 - type: i64 - - group: timestamps - args: - - value: DOY - type: string - - value: '2016-12-25 13:30:15' - type: timestamp - result: - value: 360 - type: i64 - - group: timestamps - args: - - value: HOUR - type: string - - value: '2016-12-31 13:30:15' - type: timestamp - result: - value: 13 - type: i64 - - group: timestamps - args: - - value: HOUR - type: string - - value: '1999-01-08 04:05:06 PST' - type: timestamp_tz - result: - value: 12 - type: i64 - - group: timestamps - args: - - value: HOUR - type: string - - value: '2016-12-31 13:30:15-10' - type: timestamp_tz - result: - value: 23 - type: i64 - - group: timestamps - args: - - value: MINUTE - type: string - - value: '2016-12-31 13:30:15' - type: timestamp - result: - value: 30 - type: i64 - - group: timestamps - args: - - value: SECOND - type: string - - value: '2016-12-31 13:30:15' - type: timestamp - result: - value: 15 - type: i64 - - group: timestamps - args: - - value: MILLISECONDS - type: string - - value: '2016-12-31 13:30:15' - type: timestamp - result: - value: 15000 - type: i64 - - group: timestamps - args: - - value: MICROSECONDS - type: string - - value: '2016-12-31 13:30:15.22' - type: timestamp - result: - value: 15220000 - type: i64 - - group: timestamps - args: - - value: TIMEZONE - type: string - - value: '1999-01-08 04:05:06 PST' - type: timestamp_tz - result: - value: 0 - type: i64 - - group: timestamps - args: - - value: EPOCH - type: string - - value: '2016-12-31 13:30:15' - type: timestamp - result: - value: 1483191015 - type: i64 - - group: - id: date - description: examples using the date type - args: - - value: YEAR - type: string - - value: '2020-12-31' - type: date - result: - value: 2020 - type: i64 - - group: date - args: - - value: MONTH - type: string - - value: '2020-12-31' - type: date - result: - value: 12 - type: i64 - - group: date - args: - - value: DAY - type: string - - value: '2020-12-31' - type: date - result: - value: 31 - type: i64 - - group: - id: time - description: examples using the time type - args: - - value: HOUR - type: string - - value: '01:02:03+1559' - type: time - result: - value: 1 - type: i64 - - group: time - args: - - value: MINUTE - type: string - - value: '01:02:03+1559' - type: time - result: - value: 2 - type: i64 - - group: time - args: - - value: SECOND - type: string - - value: '01:02:03+1559' - type: time - result: - value: 3 - type: i64 - - group: time - args: - - value: MILLISECOND - type: string - - value: '01:02:03+1559' - type: time - result: - value: 3000 - type: i64 - - group: time - args: - - value: MICROSECOND - type: string - - value: '01:02:03.45' - type: time - result: - value: 3450000 - type: i64 diff --git a/cases/datetime/gt_datetime.yaml b/cases/datetime/gt_datetime.yaml deleted file mode 100644 index b25c7742..00000000 --- a/cases/datetime/gt_datetime.yaml +++ /dev/null @@ -1,130 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_datetime.yaml -function: gt -cases: - - group: - id: timestamps - description: examples using the timestamp type - args: - - value: '2016-12-31 13:30:15' - type: timestamp - - value: '2017-12-31 13:30:15' - type: timestamp - result: - value: false - type: boolean - - group: timestamps - args: - - value: '2018-12-31 13:30:15' - type: timestamp - - value: '2017-12-31 13:30:15' - type: timestamp - result: - value: true - type: boolean - - group: - id: timestamp_tz - description: examples using the timestamp_tz type - args: - - value: '1999-01-08 01:05:05 PST' - type: timestamp_tz - - value: '1999-01-08 04:05:06 EST' - type: timestamp_tz - result: - value: false - type: boolean - - group: timestamp_tz - args: - - value: '1999-01-08 01:05:07 PST' - type: timestamp_tz - - value: '1999-01-08 04:05:06 EST' - type: timestamp_tz - result: - value: true - type: boolean - - group: - id: date - description: examples using the date type - args: - - value: '2020-12-30' - type: date - - value: '2020-12-31' - type: date - result: - value: false - type: boolean - - group: date - args: - - value: '2020-12-31' - type: date - - value: '2020-12-30' - type: date - result: - value: true - type: boolean - - group: - id: interval - description: examples using the interval type - args: - - value: INTERVAL '5 DAY' - type: interval - - value: INTERVAL '6 DAY' - type: interval - result: - value: false - type: boolean - - group: date - args: - - value: INTERVAL '7 DAY' - type: interval - - value: INTERVAL '6 DAY' - type: interval - result: - value: true - type: boolean - - group: interval - args: - - value: INTERVAL '5 YEAR' - type: interval - - value: INTERVAL '6 YEAR' - type: interval - result: - value: false - type: boolean - - group: interval - args: - - value: INTERVAL '7 YEAR' - type: interval - - value: INTERVAL '6 YEAR' - type: interval - result: - value: true - type: boolean - - group: - id: null_input - description: examples with null args - args: - - value: null - type: interval - - value: INTERVAL '5 DAY' - type: interval - result: - value: null - type: boolean - - group: null_input - args: - - value: null - type: date - - value: '2020-12-30' - type: date - result: - value: null - type: boolean - - group: null_input - args: - - value: null - type: timestamp - - value: '2018-12-31 13:30:15' - type: timestamp - result: - value: null - type: boolean diff --git a/cases/datetime/gte_datetime.yaml b/cases/datetime/gte_datetime.yaml deleted file mode 100644 index 61ed2417..00000000 --- a/cases/datetime/gte_datetime.yaml +++ /dev/null @@ -1,175 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_datetime.yaml -function: gte -cases: - - group: - id: timestamps - description: examples using the timestamp type - args: - - value: '2016-12-31 13:30:15' - type: timestamp - - value: '2017-12-31 13:30:15' - type: timestamp - result: - value: false - type: boolean - - group: timestamps - args: - - value: '2017-12-31 13:30:15' - type: timestamp - - value: '2017-12-31 13:30:15' - type: timestamp - result: - value: true - type: boolean - - group: timestamps - args: - - value: '2018-12-31 13:30:15' - type: timestamp - - value: '2017-12-31 13:30:15' - type: timestamp - result: - value: true - type: boolean - - group: - id: timestamp_tz - description: examples using the timestamp_tz type - args: - - value: '1999-01-08 01:05:05 PST' - type: timestamp_tz - - value: '1999-01-08 04:05:06 EST' - type: timestamp_tz - result: - value: false - type: boolean - - group: timestamp_tz - args: - - value: '1999-01-08 01:05:06 PST' - type: timestamp_tz - - value: '1999-01-08 01:05:06 PST' - type: timestamp_tz - result: - value: true - type: boolean - - group: timestamp_tz - args: - - value: '1999-01-08 01:05:06 PST' - type: timestamp_tz - - value: '1999-01-08 04:05:05 EST' - type: timestamp_tz - result: - value: true - type: boolean - - group: - id: date - description: examples using the date type - args: - - value: '2020-12-30' - type: date - - value: '2020-12-31' - type: date - result: - value: false - type: boolean - - group: date - args: - - value: '2020-12-31' - type: date - - value: '2020-12-31' - type: date - result: - value: true - type: boolean - - group: date - args: - - value: '2020-12-31' - type: date - - value: '2020-12-30' - type: date - result: - value: true - type: boolean - - group: - id: interval - description: examples using the interval type - args: - - value: INTERVAL '5 DAY' - type: interval - - value: INTERVAL '6 DAY' - type: interval - result: - value: false - type: boolean - - group: date - args: - - value: INTERVAL '7 DAY' - type: interval - - value: INTERVAL '7 DAY' - type: interval - result: - value: true - type: boolean - - group: date - args: - - value: INTERVAL '7 DAY' - type: interval - - value: INTERVAL '6 DAY' - type: interval - result: - value: true - type: boolean - - group: interval - args: - - value: INTERVAL '5 YEAR' - type: interval - - value: INTERVAL '6 YEAR' - type: interval - result: - value: false - type: boolean - - group: interval - args: - - value: INTERVAL '7 YEAR' - type: interval - - value: INTERVAL '7 YEAR' - type: interval - result: - value: true - type: boolean - - group: interval - args: - - value: INTERVAL '7 YEAR' - type: interval - - value: INTERVAL '6 YEAR' - type: interval - result: - value: true - type: boolean - - group: - id: null_input - description: examples with null args or return - args: - - value: null - type: interval - - value: INTERVAL '5 DAY' - type: interval - result: - value: null - type: boolean - - group: null_input - args: - - value: null - type: date - - value: '2020-12-30' - type: date - result: - value: null - type: boolean - - group: null_input - args: - - value: null - type: timestamp - - value: '2018-12-31 13:30:15' - type: timestamp - result: - value: null - type: boolean diff --git a/cases/datetime/lt_datetime.yaml b/cases/datetime/lt_datetime.yaml deleted file mode 100644 index fe8a3471..00000000 --- a/cases/datetime/lt_datetime.yaml +++ /dev/null @@ -1,130 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_datetime.yaml -function: lt -cases: - - group: - id: timestamps - description: examples using the timestamp type - args: - - value: '2016-12-31 13:30:15' - type: timestamp - - value: '2017-12-31 13:30:15' - type: timestamp - result: - value: true - type: boolean - - group: timestamps - args: - - value: '2018-12-31 13:30:15' - type: timestamp - - value: '2017-12-31 13:30:15' - type: timestamp - result: - value: false - type: boolean - - group: - id: timestamp_tz - description: examples using the timestamp_tz type - args: - - value: '1999-01-08 01:05:05 PST' - type: timestamp_tz - - value: '1999-01-08 04:05:06 EST' - type: timestamp_tz - result: - value: true - type: boolean - - group: timestamp_tz - args: - - value: '1999-01-08 01:05:06 PST' - type: timestamp_tz - - value: '1999-01-08 04:05:06 EST' - type: timestamp_tz - result: - value: false - type: boolean - - group: - id: date - description: examples using the date type - args: - - value: '2020-12-30' - type: date - - value: '2020-12-31' - type: date - result: - value: true - type: boolean - - group: date - args: - - value: '2020-12-31' - type: date - - value: '2020-12-30' - type: date - result: - value: false - type: boolean - - group: - id: interval - description: examples using the interval type - args: - - value: INTERVAL '5 DAY' - type: interval - - value: INTERVAL '6 DAY' - type: interval - result: - value: true - type: boolean - - group: date - args: - - value: INTERVAL '7 DAY' - type: interval - - value: INTERVAL '6 DAY' - type: interval - result: - value: false - type: boolean - - group: interval - args: - - value: INTERVAL '5 YEAR' - type: interval - - value: INTERVAL '6 YEAR' - type: interval - result: - value: true - type: boolean - - group: interval - args: - - value: INTERVAL '7 YEAR' - type: interval - - value: INTERVAL '6 YEAR' - type: interval - result: - value: false - type: boolean - - group: - id: null_input - description: examples with null args or return - args: - - value: null - type: interval - - value: INTERVAL '5 DAY' - type: interval - result: - value: null - type: boolean - - group: null_input - args: - - value: null - type: date - - value: '2020-12-30' - type: date - result: - value: null - type: boolean - - group: null_input - args: - - value: null - type: timestamp - - value: '2018-12-31 13:30:15' - type: timestamp - result: - value: null - type: boolean diff --git a/cases/datetime/lte_datetime.yaml b/cases/datetime/lte_datetime.yaml deleted file mode 100644 index 721a69c4..00000000 --- a/cases/datetime/lte_datetime.yaml +++ /dev/null @@ -1,175 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_datetime.yaml -function: lte -cases: - - group: - id: timestamps - description: examples using the timestamp type - args: - - value: '2016-12-31 13:30:15' - type: timestamp - - value: '2017-12-31 13:30:15' - type: timestamp - result: - value: true - type: boolean - - group: timestamps - args: - - value: '2017-12-31 13:30:15' - type: timestamp - - value: '2017-12-31 13:30:15' - type: timestamp - result: - value: true - type: boolean - - group: timestamps - args: - - value: '2018-12-31 13:30:15' - type: timestamp - - value: '2017-12-31 13:30:15' - type: timestamp - result: - value: false - type: boolean - - group: - id: timestamp_tz - description: examples using the timestamp_tz type - args: - - value: '1999-01-08 01:05:05 PST' - type: timestamp_tz - - value: '1999-01-08 04:05:06 EST' - type: timestamp_tz - result: - value: true - type: boolean - - group: timestamp_tz - args: - - value: '1999-01-08 01:05:06 PST' - type: timestamp_tz - - value: '1999-01-08 01:05:06 PST' - type: timestamp_tz - result: - value: true - type: boolean - - group: timestamp_tz - args: - - value: '1999-01-08 01:05:06 PST' - type: timestamp_tz - - value: '1999-01-08 04:05:05 EST' - type: timestamp_tz - result: - value: false - type: boolean - - group: - id: date - description: examples using the date type - args: - - value: '2020-12-30' - type: date - - value: '2020-12-31' - type: date - result: - value: true - type: boolean - - group: date - args: - - value: '2020-12-31' - type: date - - value: '2020-12-31' - type: date - result: - value: true - type: boolean - - group: date - args: - - value: '2020-12-31' - type: date - - value: '2020-12-30' - type: date - result: - value: false - type: boolean - - group: - id: interval - description: examples using the interval type - args: - - value: INTERVAL '5 DAY' - type: interval - - value: INTERVAL '6 DAY' - type: interval - result: - value: true - type: boolean - - group: date - args: - - value: INTERVAL '7 DAY' - type: interval - - value: INTERVAL '7 DAY' - type: interval - result: - value: true - type: boolean - - group: date - args: - - value: INTERVAL '7 DAY' - type: interval - - value: INTERVAL '6 DAY' - type: interval - result: - value: false - type: boolean - - group: interval - args: - - value: INTERVAL '5 YEAR' - type: interval - - value: INTERVAL '6 YEAR' - type: interval - result: - value: true - type: boolean - - group: interval - args: - - value: INTERVAL '7 YEAR' - type: interval - - value: INTERVAL '7 YEAR' - type: interval - result: - value: true - type: boolean - - group: interval - args: - - value: INTERVAL '7 YEAR' - type: interval - - value: INTERVAL '6 YEAR' - type: interval - result: - value: false - type: boolean - - group: - id: null_input - description: examples with null args or return - args: - - value: null - type: interval - - value: INTERVAL '5 DAY' - type: interval - result: - value: null - type: boolean - - group: null_input - args: - - value: null - type: date - - value: '2020-12-30' - type: date - result: - value: null - type: boolean - - group: null_input - args: - - value: null - type: timestamp - - value: '2018-12-31 13:30:15' - type: timestamp - result: - value: null - type: boolean diff --git a/cases/datetime/subtract_datetime.yaml b/cases/datetime/subtract_datetime.yaml deleted file mode 100644 index c52dbc1d..00000000 --- a/cases/datetime/subtract_datetime.yaml +++ /dev/null @@ -1,72 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_datetime.yaml -function: subtract -cases: - - group: - id: timestamps - description: examples using the timestamp type - args: - - value: '2016-12-31 13:30:15' - type: timestamp - - value: INTERVAL '5 DAY' - type: interval - result: - value: '2016-12-26 13:30:15' - type: timestamp - - group: timestamps - args: - - value: '2016-12-01 13:30:15' - type: timestamp - - value: INTERVAL '5 YEAR' - type: interval - result: - value: '2011-12-01 13:30:15' - type: timestamp - - group: timestamps - args: - - value: '2016-12-01 13:30:15' - type: timestamp - - value: INTERVAL '5 HOUR' - type: interval - result: - value: '2016-12-01 08:30:15' - type: timestamp - - group: - id: date_to_timestamp - description: examples using the date types and resulting in a timestamp - args: - - value: '2020-12-31' - type: date - - value: INTERVAL '5 DAY' - type: interval - result: - value: '2020-12-26 00:00:00' - type: timestamp - - group: date_to_timestamp - args: - - value: '2020-12-31' - type: date - - value: INTERVAL '5 YEAR' - type: interval - result: - value: '2015-12-31 00:00:00' - type: timestamp - - group: date_to_timestamp - args: - - value: '2020-12-31' - type: date - - value: INTERVAL '5 MONTH' - type: interval - result: - value: '2020-07-31 00:00:00' - type: timestamp - - group: - id: null_input - description: examples with null args or return - args: - - value: null - type: date - - value: INTERVAL '5 DAY' - type: interval - result: - value: null - type: date diff --git a/cases/logarithmic/ln.yaml b/cases/logarithmic/ln.yaml deleted file mode 100644 index 62365ee8..00000000 --- a/cases/logarithmic/ln.yaml +++ /dev/null @@ -1,95 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_logarithmic.yaml -function: ln -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 100000 - type: i64 - result: - value: 11.512925464970229 - type: fp64 - - group: basic - args: - - value: 1.0 - type: fp32 - result: - value: 0 - type: fp32 - - group: basic - args: - - value: 2.015 - type: fp64 - result: - value: 0.7006191953986464 - type: fp64 - - group: basic - args: - - value: inf - type: fp64 - result: - value: inf - type: fp64 - - group: - id: infinity - description: Examples with infinity as input - args: - - value: -inf - type: fp64 - options: - on_domain_error: ERROR - result: - special: error - - group: infinity - args: - - value: -inf - type: fp64 - options: - on_domain_error: NAN - result: - special: nan - - group: infinity - args: - - value: -inf - type: fp64 - options: - on_domain_error: NONE - result: - value: null - type: fp64 - - group: infinity - args: - - value: inf - type: fp64 - result: - value: inf - type: fp64 - - group: - id: log_zero - description: Examples with log zero - args: - - value: 0.0 - type: fp64 - options: - on_log_zero: ERROR - result: - special: error - - group: log_zero - args: - - value: 0.0 - type: fp64 - options: - on_log_zero: NAN - result: - value: null - type: fp64 - - group: log_zero - args: - - value: 0.0 - type: fp64 - options: - on_log_zero: MINUS_INFINITY - result: - value: -inf - type: fp64 diff --git a/cases/logarithmic/log10.yaml b/cases/logarithmic/log10.yaml deleted file mode 100644 index c1eddf9d..00000000 --- a/cases/logarithmic/log10.yaml +++ /dev/null @@ -1,95 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_logarithmic.yaml -function: log10 -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 100000 - type: i64 - result: - value: 5.0 - type: fp64 - - group: basic - args: - - value: 1.0 - type: fp32 - result: - value: 0 - type: fp32 - - group: basic - args: - - value: 2.015 - type: fp64 - result: - value: 0.3042750504771283 - type: fp64 - - group: basic - args: - - value: inf - type: fp64 - result: - value: inf - type: fp64 - - group: - id: infinity - description: Examples with infinity as input - args: - - value: -inf - type: fp64 - options: - on_domain_error: ERROR - result: - special: error - - group: infinity - args: - - value: -inf - type: fp64 - options: - on_domain_error: NAN - result: - special: nan - - group: infinity - args: - - value: -inf - type: fp64 - options: - on_domain_error: NONE - result: - value: null - type: fp64 - - group: infinity - args: - - value: inf - type: fp64 - result: - value: inf - type: fp64 - - group: - id: log_zero - description: Examples with log zero - args: - - value: 0.0 - type: fp64 - options: - on_log_zero: ERROR - result: - special: error - - group: log_zero - args: - - value: 0.0 - type: fp64 - options: - on_log_zero: NAN - result: - value: null - type: fp64 - - group: log_zero - args: - - value: 0.0 - type: fp64 - options: - on_log_zero: MINUS_INFINITY - result: - value: -inf - type: fp64 diff --git a/cases/logarithmic/log2.yaml b/cases/logarithmic/log2.yaml deleted file mode 100644 index 77e2ae0d..00000000 --- a/cases/logarithmic/log2.yaml +++ /dev/null @@ -1,102 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_logarithmic.yaml -function: log2 -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 100000 - type: i64 - result: - value: 16.609640474436812 - type: fp64 - - group: basic - args: - - value: 1.0 - type: fp32 - result: - value: 0 - type: fp32 - - group: basic - args: - - value: 8.0 - type: fp64 - result: - value: 3.0 - type: fp64 - - group: basic - args: - - value: 2.015 - type: fp64 - result: - value: 1.0107798387532427 - type: fp64 - - group: basic - args: - - value: inf - type: fp64 - result: - value: inf - type: fp64 - - group: - id: infinity - description: Examples with infinity as input - args: - - value: -inf - type: fp64 - options: - on_domain_error: ERROR - result: - special: error - - group: infinity - args: - - value: -inf - type: fp64 - options: - on_domain_error: NAN - result: - special: nan - - group: infinity - args: - - value: -inf - type: fp64 - options: - on_domain_error: NONE - result: - value: null - type: fp64 - - group: infinity - args: - - value: inf - type: fp64 - result: - value: inf - type: fp64 - - group: - id: log_zero - description: Examples with log zero - args: - - value: 0.0 - type: fp64 - options: - on_log_zero: ERROR - result: - special: error - - group: log_zero - args: - - value: 0.0 - type: fp64 - options: - on_log_zero: NAN - result: - value: null - type: fp64 - - group: log_zero - args: - - value: 0.0 - type: fp64 - options: - on_log_zero: MINUS_INFINITY - result: - value: -inf - type: fp64 \ No newline at end of file diff --git a/cases/logarithmic/logb.yaml b/cases/logarithmic/logb.yaml deleted file mode 100644 index ca9bf89a..00000000 --- a/cases/logarithmic/logb.yaml +++ /dev/null @@ -1,108 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_logarithmic.yaml -function: logb -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 10 - type: i64 - - value: 100000 - type: i64 - result: - value: 5.0 - type: fp64 - - group: basic - args: - - value: 7 - type: fp64 - - value: 1.0 - type: fp64 - result: - value: 0 - type: fp64 - - group: basic - args: - - value: 2 - type: fp64 - - value: 7 - type: fp64 - result: - value: 2.8073549220576041 - type: fp64 - - group: - id: infinity - description: Examples with infinity as input - args: - - value: 2.34 - type: fp64 - - value: inf - type: fp64 - result: - value: inf - type: fp64 - - group: infinity - args: - - value: 10 - type: fp64 - - value: -inf - type: fp64 - options: - on_domain_error: ERROR - result: - special: error - - group: infinity - args: - - value: 10 - type: fp64 - - value: -inf - type: fp64 - options: - on_domain_error: NAN - result: - special: nan - - group: infinity - args: - - value: 10 - type: fp64 - - value: -inf - type: fp64 - options: - on_domain_error: NONE - result: - value: null - type: fp64 - - group: - id: log_zero - description: Examples with log zero - args: - - value: 2.0 - type: fp64 - - value: 0.0 - type: fp64 - options: - on_log_zero: ERROR - result: - special: error - - group: log_zero - args: - - value: 2.0 - type: fp64 - - value: 0.0 - type: fp64 - options: - on_log_zero: NAN - result: - value: null - type: fp64 - - group: log_zero - args: - - value: 2.0 - type: fp64 - - value: 0.0 - type: fp64 - options: - on_log_zero: MINUS_INFINITY - result: - value: -inf - type: fp64 diff --git a/cases/rounding/ceil.yaml b/cases/rounding/ceil.yaml deleted file mode 100644 index 3f6070c7..00000000 --- a/cases/rounding/ceil.yaml +++ /dev/null @@ -1,26 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_rounding.yaml -function: ceil -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 2.25 - type: fp32 - result: - value: 3 - type: fp32 - - group: basic - args: - - value: 2.0000007152557373046875 - type: fp64 - result: - value: 3 - type: fp64 - - group: basic - args: - - value: -65.500000001223334444 - type: fp64 - result: - value: -65 - type: fp64 diff --git a/cases/rounding/floor.yaml b/cases/rounding/floor.yaml deleted file mode 100644 index e5b8f0b9..00000000 --- a/cases/rounding/floor.yaml +++ /dev/null @@ -1,26 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_rounding.yaml -function: floor -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 2.25 - type: fp32 - result: - value: 2 - type: fp32 - - group: basic - args: - - value: 2.0000007152557373046875 - type: fp64 - result: - value: 2 - type: fp64 - - group: basic - args: - - value: -65.490000001223334444 - type: fp64 - result: - value: -66 - type: fp64 diff --git a/cases/rounding/round.yaml b/cases/rounding/round.yaml deleted file mode 100644 index a402129b..00000000 --- a/cases/rounding/round.yaml +++ /dev/null @@ -1,70 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_rounding.yaml -function: round -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 2 - type: i8 - - value: 2 - type: i32 - result: - value: 2 - type: i8 - - group: basic - args: - - value: 2.75 - type: fp32 - - value: 1 - type: i32 - result: - value: 2.8 - type: fp32 - - group: basic - args: - - value: 2.0000007152457373046875 - type: fp64 - - value: 10 - type: i32 - result: - value: 2.0000007152 - type: fp64 - - group: basic - args: - - value: 2.0000007152457373046875 - type: fp64 - - value: 10 - type: i32 - result: - value: 2.0000007152 - type: fp64 - - group: - id: negative_rounding - description: Examples with negative rounding - args: - - value: 2 - type: i8 - - value: -2 - type: i32 - result: - value: 0 - type: i8 - - group: negative_rounding - args: - - value: 123 - type: i8 - - value: -2 - type: i32 - result: - value: 100 - type: i8 - - group: negative_rounding - args: - - value: 8793 - type: i16 - - value: -2 - type: i32 - result: - value: 8800 - type: i16 diff --git a/cases/string/bit_length.yaml b/cases/string/bit_length.yaml deleted file mode 100644 index 4c4ece1c..00000000 --- a/cases/string/bit_length.yaml +++ /dev/null @@ -1,65 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_string.yaml -function: bit_length -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 'abc' - type: string - result: - value: 24 - type: i64 - - group: basic - args: - - value: '' - type: string - result: - value: 0 - type: i64 - - group: basic - args: - - value: ' ' - type: string - result: - value: 8 - type: i64 - - group: basic - args: - - value: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' - type: string - result: - value: 384 - type: i64 - - group: basic - args: - - value: ' 456' - type: string - result: - value: 48 - type: i64 - - group: - id: null_input - description: Examples with null as input - args: - - value: null - type: string - result: - value: null - type: i64 - - group: - id: unicode - description: Examples with unicode characters as input - args: - - value: 'à' - type: string - result: - value: 16 - type: i64 - - group: unicode - args: - - value: '😄' - type: string - result: - value: 32 - type: i64 diff --git a/cases/string/char_length.yaml b/cases/string/char_length.yaml deleted file mode 100644 index 6d2d65d9..00000000 --- a/cases/string/char_length.yaml +++ /dev/null @@ -1,65 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_string.yaml -function: char_length -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 'abc' - type: string - result: - value: 3 - type: i64 - - group: basic - args: - - value: '' - type: string - result: - value: 0 - type: i64 - - group: basic - args: - - value: ' ' - type: string - result: - value: 1 - type: i64 - - group: basic - args: - - value: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' - type: string - result: - value: 48 - type: i64 - - group: basic - args: - - value: ' 456' - type: string - result: - value: 6 - type: i64 - - group: - id: null_input - description: Examples with null as input - args: - - value: null - type: string - result: - value: null - type: i64 - - group: - id: unicode - description: Examples with unicode characters as input - args: - - value: 'à' - type: string - result: - value: 1 - type: i64 - - group: unicode - args: - - value: '😄' - type: string - result: - value: 1 - type: i64 diff --git a/cases/string/concat.yaml b/cases/string/concat.yaml deleted file mode 100644 index a73a213e..00000000 --- a/cases/string/concat.yaml +++ /dev/null @@ -1,82 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_string.yaml -function: concat -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 'abcd' - type: string - - value: 'efg' - type: string - result: - value: 'abcdefg' - type: string - - group: - id: null_input - description: Examples with null as input - args: - - value: 'abcd' - type: string - - value: null - type: string - options: - null_handling: ACCEPT_NULLS - result: - value: null - type: string - - group: null_input - args: - - value: 'abcd' - type: string - - value: null - type: string - options: - null_handling: IGNORE_NULLS - result: - value: 'abcd' - type: string - - group: null_input - args: - - value: null - type: string - - value: 'abcd' - type: string - options: - null_handling: ACCEPT_NULLS - result: - value: null - type: string - - group: null_input - args: - - value: null - type: string - - value: 'abcd' - type: string - options: - null_handling: IGNORE_NULLS - result: - value: 'abcd' - type: string - - group: null_input - args: - - value: null - type: string - - value: null - type: string - options: - null_handling: ACCEPT_NULLS - result: - value: null - type: string - - group: null_input - args: - - value: null - type: string - - value: null - type: string - options: - null_handling: IGNORE_NULLS - result: - value: '' - type: string diff --git a/cases/string/concat_ws.yaml b/cases/string/concat_ws.yaml deleted file mode 100644 index b0c77f40..00000000 --- a/cases/string/concat_ws.yaml +++ /dev/null @@ -1,68 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_string.yaml -function: concat_ws -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: ',' - type: string - - value: 'Banana' - type: string - - value: 'Apple' - type: string - - value: 'Melon' - type: string - result: - value: 'Banana,Apple,Melon' - type: string - - group: basic - args: - - value: '' - type: string - - value: 'Banana' - type: string - - value: 'Apple' - type: string - result: - value: 'BananaApple' - type: string - - group: basic - args: - - value: null - type: string - - value: 'Banana' - type: string - - value: 'Apple' - type: string - - value: 'Melon' - type: string - result: - value: null - type: string - - group: basic - args: - - value: ',' - type: string - - value: null - type: string - - value: 'Apple' - type: string - - value: 'Melon' - type: string - result: - value: 'Apple,Melon' - type: string - - group: basic - args: - - value: ',' - type: string - - value: 'Apple' - type: string - - value: null - type: string - - value: 'Melon' - type: string - result: - value: 'Apple,Melon' - type: string diff --git a/cases/string/contains.yaml b/cases/string/contains.yaml deleted file mode 100644 index a024fea4..00000000 --- a/cases/string/contains.yaml +++ /dev/null @@ -1,83 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_string.yaml -function: contains -cases: - - group: - id: basic - description: Basic examples contains as prefix - args: - - value: 'abcdefg' - type: string - - value: 'abc' - type: string - result: - value: true - type: boolean - - group: basic - args: - - value: 'abcdefg' - type: string - - value: 'CdE' - type: string - options: - case_sensitivity: CASE_INSENSITIVE - result: - value: true - type: boolean - - group: basic - args: - - value: 'abcdefg' - type: string - - value: 'cde' - type: string - result: - value: true - type: boolean - - group: basic - args: - - value: 'abcdefg' - type: string - - value: 'fg' - type: string - result: - value: true - type: boolean - - group: basic - args: - - value: 'abcdefg' - type: string - - value: 'aef' - type: string - result: - value: false - type: boolean - - group: - id: multi_byte_characters - description: multi byte characters exists in the string - args: - - value: '😊a😊b😊😊' - type: string - - value: 'a😊b' - type: string - result: - value: true - type: boolean - - group: multi_byte_characters - args: - - value: '😊a😊b😊😊' - type: string - - value: 'A😊B' - type: string - options: - case_sensitivity: CASE_INSENSITIVE - result: - value: true - type: boolean - - group: multi_byte_characters - args: - - value: '😊a😊b😊😊' - type: string - - value: 'a😊c' - type: string - result: - value: false - type: boolean diff --git a/cases/string/ends_with.yaml b/cases/string/ends_with.yaml deleted file mode 100644 index 45358d5e..00000000 --- a/cases/string/ends_with.yaml +++ /dev/null @@ -1,61 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_string.yaml -function: ends_with -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 'abcd' - type: string - - value: 'd' - type: string - result: - value: true - type: boolean - - group: basic - args: - - value: 'abcd' - type: string - - value: 'a' - type: string - result: - value: false - type: boolean - - group: - id: case_insenstivity - description: multi byte character comparison with case insensitivity - args: - - value: 'abcd' - type: string - - value: 'CD' - type: string - options: - case_sensitivity: CASE_INSENSITIVE - result: - value: true - type: boolean - - group: - id: multi_byte_characters - description: multi byte character comparison - args: - - value: '😊a😊b😊😊' - type: string - - value: 'b😊😊' - type: string - result: - value: true - type: boolean - - group: - id: multi_byte_characters case insensitivity - description: multi byte character comparison with case insensitivity - args: - - value: '😊a😊b😊😊' - type: string - - value: 'B😊😊' - type: string - options: - case_sensitivity: CASE_INSENSITIVE - result: - value: true - type: boolean - diff --git a/cases/string/left.yaml b/cases/string/left.yaml deleted file mode 100644 index 998231dc..00000000 --- a/cases/string/left.yaml +++ /dev/null @@ -1,79 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_string.yaml -function: left -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 'abcdef' - type: string - - value: 2 - type: i32 - result: - value: 'ab' - type: string - - group: basic - args: - - value: 'abcdef' - type: string - - value: 6 - type: i32 - result: - value: 'abcdef' - type: string - - group: basic - args: - - value: 'abcdef' - type: string - - value: 10 - type: i32 - result: - value: 'abcdef' - type: string - - group: basic - args: - - value: ' abcdef abcdef' - type: string - - value: 10 - type: i32 - result: - value: ' abcdef ' - type: string - - group: basic - args: - - value: null - type: string - - value: 10 - type: i32 - result: - value: null - type: string - - group: basic - args: - - value: 'abcdef' - type: string - - value: null - type: i32 - result: - value: null - type: string - - group: - id: unicode - description: Examples with unicode characters as input - args: - - value: 'ææããa' - type: string - - value: 2 - type: i32 - result: - value: 'ææ' - type: string - - group: unicode - args: - - value: '😔😄😔😄' - type: string - - value: 2 - type: i32 - result: - value: '😔😄' - type: string diff --git a/cases/string/like.yaml b/cases/string/like.yaml deleted file mode 100644 index defd3f9c..00000000 --- a/cases/string/like.yaml +++ /dev/null @@ -1,61 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_string.yaml -function: like -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 'abcdefg' - type: string - - value: 'abcdefg' - type: string - result: - value: true - type: boolean - - group: basic - args: - - value: 'abcdefg' - type: string - - value: 'abc' - type: string - result: - value: false - type: boolean - - group: - id: wildcard - description: Examples using wildcards - args: - - value: 'abcdefg' - type: string - - value: 'abc%' - type: string - result: - value: true - type: boolean - - group: wildcard - args: - - value: 'abcdefg' - type: string - - value: '%efg' - type: string - result: - value: true - type: boolean - - group: wildcard - args: - - value: 'abcdefg' - type: string - - value: '_bcdefg' - type: string - result: - value: true - type: boolean - - group: wildcard - args: - - value: 'abcdefg' - type: string - - value: 'abc_efg' - type: string - result: - value: true - type: boolean diff --git a/cases/string/lower.yaml b/cases/string/lower.yaml deleted file mode 100644 index 914d549f..00000000 --- a/cases/string/lower.yaml +++ /dev/null @@ -1,60 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_string.yaml -function: lower -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 'ABC' - type: string - result: - value: 'abc' - type: string - - group: basic - args: - - value: 'aBc' - type: string - result: - value: 'abc' - type: string - - group: basic - args: - - value: 'abc' - type: string - result: - value: 'abc' - type: string - - group: basic - args: - - value: '' - type: string - result: - value: '' - type: string - - group: - id: null_input - description: Examples with null as input - args: - - value: null - type: string - result: - value: null - type: string - - group: - id: unicode - description: Examples with unicode characters as input - args: - - value: 'ÆÆÃÃA' - type: string - options: - full_unicode: TRUE - result: - value: 'ææããa' - type: string - - group: unicode - args: - - value: '😄' - type: string - result: - value: '😄' - type: string \ No newline at end of file diff --git a/cases/string/lpad.yaml b/cases/string/lpad.yaml deleted file mode 100644 index 3ac7c86f..00000000 --- a/cases/string/lpad.yaml +++ /dev/null @@ -1,104 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_string.yaml -function: lpad -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 'abcdef' - type: string - - value: 10 - type: i32 - - value: ' ' - type: string - result: - value: ' abcdef' - type: string - - group: basic - args: - - value: 'abcdef ' - type: string - - value: 20 - type: i32 - - value: '1' - type: string - result: - value: '1111111111abcdef ' - type: string - - group: basic - args: - - value: ' abcdef' - type: string - - value: 20 - type: i32 - - value: '1' - type: string - result: - value: '1111111111 abcdef' - type: string - - group: basic - args: - - value: 'abcdef' - type: string - - value: 6 - type: i32 - - value: ' ' - type: string - result: - value: 'abcdef' - type: string - - group: basic - args: - - value: 'abcdef' - type: string - - value: 20 - type: i32 - - value: 'aabb' - type: string - result: - value: 'aabbaabbaabbaaabcdef' - type: string - - group: basic - args: - - value: 'abcdef' - type: string - - value: 4 - type: i32 - - value: ' ' - type: string - result: - value: 'abcd' - type: string - - group: basic - args: - - value: 'abcdef' - type: string - - value: -1 - type: i32 - - value: ' ' - type: string - result: - value: '' - type: string - - group: basic - args: - - value: null - type: string - - value: 4 - type: i32 - - value: ' ' - type: string - result: - value: null - type: string - - group: basic - args: - - value: 'abcdef' - type: string - - value: 10 - type: i32 - - value: null - type: string - result: - value: null - type: string diff --git a/cases/string/ltrim.yaml b/cases/string/ltrim.yaml deleted file mode 100644 index 958a52ee..00000000 --- a/cases/string/ltrim.yaml +++ /dev/null @@ -1,89 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_string.yaml -function: ltrim -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 'abc' - type: string - result: - value: 'abc' - type: string - - group: basic - args: - - value: ' abc' - type: string - result: - value: 'abc' - type: string - - group: basic - args: - - value: 'abc ' - type: string - result: - value: 'abc ' - type: string - - group: basic - args: - - value: ' abc ' - type: string - result: - value: 'abc ' - type: string - - group: basic - args: - - value: '' - type: string - result: - value: '' - type: string - - group: basic - args: - - value: ' ' - type: string - result: - value: '' - type: string - - group: basic - args: - - value: null - type: string - result: - value: null - type: string - - group: - id: two_inputs - description: Examples with character input to trim off - args: - - value: 'aaaaabc' - type: string - - value: 'a' - type: string - options: - spaces_only: FALSE - result: - value: 'bc' - type: string - - group: two_inputs - args: - - value: 'abcabcdef' - type: string - - value: 'abc' - type: string - options: - spaces_only: FALSE - result: - value: 'def' - type: string - - group: two_inputs - args: - - value: 'abccbadef' - type: string - - value: 'abc' - type: string - options: - spaces_only: FALSE - result: - value: 'def' - type: string diff --git a/cases/string/octet_length.yaml b/cases/string/octet_length.yaml deleted file mode 100644 index 83834b6e..00000000 --- a/cases/string/octet_length.yaml +++ /dev/null @@ -1,65 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_string.yaml -function: octet_length -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 'abc' - type: string - result: - value: 3 - type: i64 - - group: basic - args: - - value: '' - type: string - result: - value: 0 - type: i64 - - group: basic - args: - - value: ' ' - type: string - result: - value: 1 - type: i64 - - group: basic - args: - - value: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' - type: string - result: - value: 48 - type: i64 - - group: basic - args: - - value: ' 456' - type: string - result: - value: 6 - type: i64 - - group: - id: null_input - description: Examples with null as input - args: - - value: null - type: string - result: - value: null - type: i64 - - group: - id: unicode - description: Examples with unicode characters as input - args: - - value: 'à' - type: string - result: - value: 2 - type: i64 - - group: unicode - args: - - value: '😄' - type: string - result: - value: 4 - type: i64 diff --git a/cases/string/regexp_count_substring.yaml b/cases/string/regexp_count_substring.yaml deleted file mode 100644 index d2c0e553..00000000 --- a/cases/string/regexp_count_substring.yaml +++ /dev/null @@ -1,178 +0,0 @@ -base_uri: https://github.com/substrait-io/substrait/blob/main/extensions/substrait/extensions/functions_string.yaml -function: regexp_count_substring -cases: - - group: - id: basic - description: Basic examples without any special cases - args: - - value: 'foobarboopzoo' - type: string - - value: 'o{1,}' - type: string - result: - value: 3 - type: i64 - - group: basic - args: - - value: 'foobarboopzoo' - type: string - - value: 'o{1}' - type: string - result: - value: 6 - type: i64 - - group: basic - args: - - value: 'abcabcacb' - type: string - - value: '[bc]' - type: string - result: - value: 6 - type: i64 - - group: basic - args: - - value: 'abcdefc' - type: string - - value: '(.*)c' - type: string - result: - value: 1 - type: i64 - - group: basic - args: - - value: 'abcdefc' - type: string - - value: '(.*)c?' - type: string - result: - value: 2 - type: i64 - - group: - id: null_input - description: Examples with null as input - args: - - value: 'Hello' - type: string - - value: null - type: string - result: - value: null - type: i64 - - group: null_input - args: - - value: null - type: string - - value: ' ' - type: string - result: - value: null - type: i64 - - group: - id: metacharacters - description: Examples with metacharacters - args: - - value: 'abc1abc' - type: string - - value: '\d' - type: string - result: - value: 1 - type: i64 - - group: metacharacters - args: - - value: 'abc1abc' - type: string - - value: '\D' - type: string - result: - value: 6 - type: i64 - - group: metacharacters - args: - - value: 'abc def ghi' - type: string - - value: '\s' - type: string - result: - value: 2 - type: i64 - - group: metacharacters - args: - - value: 'abc def ghi' - type: string - - value: '\S' - type: string - result: - value: 9 - type: i64 - - group: metacharacters - args: - - value: 'abc def ghi' - type: string - - value: '\w' - type: string - result: - value: 9 - type: i64 - - group: metacharacters - args: - - value: 'abc def ghi,' - type: string - - value: '\W' - type: string - result: - value: 3 - type: i64 - - group: - id: lookahead - description: Examples with lookahead - args: - - value: '100 dollars 100 dollars' - type: string - - value: '\d+(?= dollars)' - type: string - options: - lookaround: TRUE - result: - value: 2 - type: i64 - - group: - id: negative_lookahead - description: Examples with negative lookahead - args: - - value: '100 pesos, 99 pesos, 98 pesos' - type: string - - value: '\d+(?!\d| dollars)' - type: string - options: - lookaround: TRUE - result: - value: 3 - type: i64 - - group: - id: lookbehind - description: Examples with lookbehind - args: - - value: 'USD100' - type: string - - value: '(?<=USD)\d{3}' - type: string - options: - lookaround: TRUE - result: - value: 1 - type: i64 - - group: - id: negative_lookbehind - description: Examples with negative lookbehind - args: - - value: 'JPY100JPY100' - type: string - - value: '\d{3}(? Date: Thu, 12 Dec 2024 12:42:41 +0530 Subject: [PATCH 2/2] review comments --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6bede4ab..2f287794 100644 --- a/README.md +++ b/README.md @@ -27,9 +27,9 @@ information from its own sources. ### Test Cases -The BFT includes a collection of test cases in the ```cases``` directory. These -test cases explore different options, failure scenarios, or data types. These -test cases are continuously verfied by running against different compute engines. +The substrait repo includes a collection of test cases in the [Cases](https://github.com/substrait-io/substrait/tree/main/tests/cases) directory. +These test cases explore different options, failure scenarios, or data types. These +test cases are continuously verified by running against different compute engines. ### Supplemental Information