From 8148d5bc1a115c2d5834ae9175445c3d2f60b233 Mon Sep 17 00:00:00 2001 From: Kevin Longe <273747162+kvlonge@users.noreply.github.com> Date: Mon, 30 Nov 2026 12:46:31 +0000 Subject: [PATCH 1/4] feat(databricks): convert VAR_POP with Spark's moment arithmetic VAR_POP runs on Databricks as Spark's CentralMomentAgg: a running count, mean and second central moment updated row by row in DOUBLE. The converted SQL repeats that update exactly in the order DuckDB collects the rows, so its result is one Databricks itself returns for some order of the same rows. It relies on the central_moment_order divergence, bounded by the spread Databricks's own results showed over forced row orders. VAR_SAMP, STDDEV_SAMP, STDDEV_POP and their aliases stay refused: alone in an aggregation Databricks computes them otherwise, and its recordings of the same rows differ from the update. --- .../conversion/_helpers/functions/calls.rs | 46 ++++++++++++++++--- .../src/databricks/conversion/constants.rs | 4 ++ .../conversion/tests/test_aggregates.rs | 26 +++++++++++ .../conversion/tests/test_convert.rs | 5 ++ crates/sqlbabel-policy/policy-databricks.toml | 21 +++++++++ .../src/databricks/constants.rs | 16 +++++++ 6 files changed, 111 insertions(+), 7 deletions(-) diff --git a/crates/sqlbabel-convert/src/databricks/conversion/_helpers/functions/calls.rs b/crates/sqlbabel-convert/src/databricks/conversion/_helpers/functions/calls.rs index 2b0869b4d..c070e6180 100644 --- a/crates/sqlbabel-convert/src/databricks/conversion/_helpers/functions/calls.rs +++ b/crates/sqlbabel-convert/src/databricks/conversion/_helpers/functions/calls.rs @@ -35,12 +35,13 @@ use crate::databricks::conversion::constants::{ CAST_FUNCTIONS, CAST_RULE, COALESCE_NAME, COLLECT_ORDER, COLLECT_ORDER_ERROR, CONCAT_RULE, COUNT_NAME, COUNTER_DIFF_NAME, DECODE_CHARSET_ARGUMENTS, DOUBLE_EXACT_DIGITS, DOUBLE_EXACT_INTEGERS, EXACT_FRACTION_STEPS, FLOAT_ELEMENTS, IDENTIFIER_NAME, IN_LIST_RULE, - INEXACT_SUM_ERROR, LAMBDA_ELEMENT, LAMBDA_FUNCTIONS, MAX_DECIMAL_PRECISION, MEDIAN_ZERO_ERROR, - MIN_IN_ARGUMENTS, MIN_LIST_ARGUMENTS, MODE_TIES, MODE_TIES_ERROR, NANOS_TIMESTAMP_ERROR, - ORDER_FREE_READERS, ORDERED_PICKS, ORDERING_FUNCTIONS, PERCENTILE_NAME, PICK_COUNT_EMPTY_ERROR, - PICK_ORDER, PICK_ORDER_ERROR, PICK_TIES, PICK_TIES_ERROR, RANGE_NAME, SAME_FUNCTION_RULE, - SAME_FUNCTIONS, STRING_AGG_FUNCTION, TIME_DIFF_NAME, UNIT_ARGUMENTS, UNIT_FUNCTIONS, - UNWINDOWED_COUNTER_ERROR, WHOLE_AGGREGATES, WITHIN_GROUP_KIND, + INEXACT_SUM_ERROR, LAMBDA_ELEMENT, LAMBDA_FUNCTIONS, LAMBDA_INDEX, LAMBDA_TOTAL, + MAX_DECIMAL_PRECISION, MEDIAN_ZERO_ERROR, MIN_IN_ARGUMENTS, MIN_LIST_ARGUMENTS, MODE_TIES, + MODE_TIES_ERROR, MOMENT_ORDER, NANOS_TIMESTAMP_ERROR, ORDER_FREE_READERS, ORDERED_PICKS, + ORDERING_FUNCTIONS, PERCENTILE_NAME, PICK_COUNT_EMPTY_ERROR, PICK_ORDER, PICK_ORDER_ERROR, + PICK_TIES, PICK_TIES_ERROR, RANGE_NAME, SAME_FUNCTION_RULE, SAME_FUNCTIONS, + STRING_AGG_FUNCTION, TIME_DIFF_NAME, UNIT_ARGUMENTS, UNIT_FUNCTIONS, UNWINDOWED_COUNTER_ERROR, + WHOLE_AGGREGATES, WITHIN_GROUP_KIND, }; use crate::databricks::conversion::models::{DatabricksType, Element, Emitted, Literal, Signature}; @@ -425,7 +426,7 @@ pub(crate) fn aggregate(call: &Aggregate<'_>, site: Site<'_>) -> Result value, }; let value = match name { - "SUM" | "TRY_SUM" | "MEDIAN" | "AVG" | "MEAN" | "TRY_AVG" => { + "SUM" | "TRY_SUM" | "MEDIAN" | "AVG" | "MEAN" | "TRY_AVG" | "VAR_POP" => { as_number(value, DatabricksType::Double) } _ => value, @@ -570,6 +571,19 @@ pub(crate) fn aggregate(call: &Aggregate<'_>, site: Site<'_>) -> Result { Some(bitmap_aggregate(function, &value.sql)) } + ("VAR_POP", data_type) + if !distinct + && over.is_none() + && match data_type { + T::Decimal { precision, .. } => usize::from(precision) <= DOUBLE_EXACT_DIGITS, + data_type => { + data_type.is_integral() || matches!(data_type, T::Double | T::Float) + } + } => + { + site.log.divergence(MOMENT_ORDER, "fn:VAR_POP"); + Some(var_pop(&as_type(&value, T::Double))) + } ("BITMAP_CONSTRUCT_AGG", data_type) if data_type.is_integral() && over.is_none() && !distinct => { @@ -592,6 +606,24 @@ pub(crate) fn aggregate(call: &Aggregate<'_>, site: Site<'_>) -> Result Emitted { + let (s, e, t) = (LAMBDA_TOTAL, LAMBDA_ELEMENT, LAMBDA_INDEX); + let n = format!("({s}[1] + CAST(1 AS DOUBLE))"); + let delta = format!("({e} - {s}[2])"); + let moments = format!( + "list_reduce(list({x}) FILTER (WHERE {x} IS NOT NULL), lambda {s}, {e}: \ + [{n}, {s}[2] + {delta} / {n}, {s}[3] + {delta} * ({delta} - {delta} / {n})], \ + CAST([0, 0, 0] AS DOUBLE[]))" + ); + typed( + format!( + "list_transform([{moments}], lambda {t}: CASE WHEN {t}[1] <= 0 THEN NULL ELSE {t}[3] / {t}[1] END)[1]" + ), + DatabricksType::Double, + ) +} + /// `BITMAP_OR_AGG` or `BITMAP_AND_AGG` as DuckDB's `bit_or` or `bit_and` of each BINARY zero-padded or cut to 32768 bits, NULLs skipped; all zero bits, or all one bits for AND, when none remain. fn bitmap_aggregate(function: &str, x: &str) -> Emitted { let none = match function { diff --git a/crates/sqlbabel-convert/src/databricks/conversion/constants.rs b/crates/sqlbabel-convert/src/databricks/conversion/constants.rs index cf422b988..d2be432a0 100644 --- a/crates/sqlbabel-convert/src/databricks/conversion/constants.rs +++ b/crates/sqlbabel-convert/src/databricks/conversion/constants.rs @@ -259,6 +259,7 @@ pub const WHOLE_AGGREGATES: &[&str] = &[ "MEDIAN", "COLLECT_LIST", "ARRAY_AGG", + "VAR_POP", ]; /// The divergence of COLLECT_LIST and ARRAY_AGG, whose element order neither engine defines. pub const COLLECT_ORDER: &str = "collect_list_order"; @@ -1304,7 +1305,10 @@ pub const AGGREGATES: &[(&str, &str)] = &[ ("BITMAP_OR_AGG", "bit_or"), ("BITMAP_AND_AGG", "bit_and"), ("BITMAP_CONSTRUCT_AGG", "bitstring_agg"), + ("VAR_POP", "var_pop"), ]; +/// The divergence of VAR_POP, whose result depends on the order rows arrive, as in Databricks. +pub const MOMENT_ORDER: &str = "central_moment_order"; /// The functions named after a type, which cast their one argument to it. pub const CAST_FUNCTIONS: &[(&str, DatabricksType)] = &[ diff --git a/crates/sqlbabel-convert/src/databricks/conversion/tests/test_aggregates.rs b/crates/sqlbabel-convert/src/databricks/conversion/tests/test_aggregates.rs index 0e0d2fae3..46a36ca9f 100644 --- a/crates/sqlbabel-convert/src/databricks/conversion/tests/test_aggregates.rs +++ b/crates/sqlbabel-convert/src/databricks/conversion/tests/test_aggregates.rs @@ -36,6 +36,17 @@ fn given_an_order_dependent_aggregate_when_converted_then_duckdb_orders_or_raise expected_sql: &["(CASE WHEN count(DISTINCT \"s\") <= 1 THEN min(\"s\") ELSE"], expected_types: &[DatabricksType::String], }, + ConvertTestCase { + description: "VAR_POP updates Spark's count, mean and second moment row by row, NULL over no rows", + query: "SELECT var_pop(x1) AS v FROM input", + expected_sql: &[ + "list_reduce(list(CAST(\"x1\" AS DOUBLE)) FILTER (WHERE CAST(\"x1\" AS DOUBLE) IS NOT NULL), lambda total, element: \ + [(total[1] + CAST(1 AS DOUBLE)), total[2] + (element - total[2]) / (total[1] + CAST(1 AS DOUBLE)), \ + total[3] + (element - total[2]) * ((element - total[2]) - (element - total[2]) / (total[1] + CAST(1 AS DOUBLE)))]", + "lambda slot: CASE WHEN slot[1] <= 0 THEN NULL ELSE slot[3] / slot[1] END)[1] AS \"v\"", + ], + expected_types: &[DatabricksType::Double], + }, ]; for test_case in test_cases { let converted = analyze(&format!("{FIXTURE}{}", test_case.query)) @@ -70,6 +81,21 @@ fn given_an_order_dependent_aggregate_no_rule_orders_when_converted_then_it_is_r query: "SELECT listagg(x1, ',') WITHIN GROUP (ORDER BY x1) AS r FROM input", expected_reason: "LISTAGG of INT", }, + RefuseTestCase { + description: "VAR_POP with DISTINCT, whose order of distinct values no recording shows", + query: "SELECT var_pop(DISTINCT x1) AS r FROM input", + expected_reason: "no rule converts VAR_POP of INT with DISTINCT", + }, + RefuseTestCase { + description: "VAR_POP over a window, which no rule converts", + query: "SELECT var_pop(x1) OVER (ORDER BY ordinal) AS r FROM input", + expected_reason: "as a window function", + }, + RefuseTestCase { + description: "VAR_SAMP, which Databricks computes otherwise than the row-by-row update when alone", + query: "SELECT var_samp(x1) AS r FROM input", + expected_reason: "VAR_SAMP", + }, ]; for test_case in test_cases { let reason = analyze(&format!("{FIXTURE}{}", test_case.query)) diff --git a/crates/sqlbabel-convert/src/databricks/conversion/tests/test_convert.rs b/crates/sqlbabel-convert/src/databricks/conversion/tests/test_convert.rs index 111818347..d0aff9c44 100644 --- a/crates/sqlbabel-convert/src/databricks/conversion/tests/test_convert.rs +++ b/crates/sqlbabel-convert/src/databricks/conversion/tests/test_convert.rs @@ -1752,6 +1752,11 @@ fn given_a_function_with_a_known_difference_when_converted_then_it_relies_on_tha query: "SELECT avg(x1) AS a FROM input", expected_divergences: &["float_sum_order"], }, + DivergenceTestCase { + description: "VAR_POP relies on the divergence on row order", + query: "SELECT var_pop(x1) AS a FROM input", + expected_divergences: &["central_moment_order"], + }, DivergenceTestCase { description: "URL_DECODE and TRY_URL_DECODE share one divergence", query: "SELECT url_decode(s) AS a, try_url_decode(s) AS b FROM input", diff --git a/crates/sqlbabel-policy/policy-databricks.toml b/crates/sqlbabel-policy/policy-databricks.toml index 28dc38d27..37c3b376c 100644 --- a/crates/sqlbabel-policy/policy-databricks.toml +++ b/crates/sqlbabel-policy/policy-databricks.toml @@ -305,6 +305,27 @@ failure = "value" float64_ulps = 1 reason = "LN (line 783, case class Log) and one-argument LOG (line 1666, case class Logarithm) compute as java.lang.StrictMath.log, within 1 ulp; DuckDB's ln has largest known errors of 0.520 ulp in GNU libc 2.44, 0.508 in Apple and 0.577 in MSVC (Table 3, log). The two results can differ in their last bit; which libm Photon uses is undocumented." +# VAR_POP runs as Spark's HashAggregate of CentralMomentAgg (updateExpressions, momentOrder 2): the +# count, mean and second central moment are updated row by row in DOUBLE, in the order rows arrive, +# and partial states merge with its mergeExpressions. The converted SQL repeats the update exactly in +# the order DuckDB collects the rows. Recordings on release 2026.47 forced row orders by VALUES order, +# REPARTITION hints and Delta tables written one file per row. Each result returned with collect_list +# equals the update over the order collect_list showed, and over every order of each set of rows +# Databricks returned every value the converted SQL can return, spread as far: one unit in the last +# place for (5, 3, -42), 2,290,649,769 units for three values near 1e9 less than 1 apart, and +# 313,174,710 for four. Merged partial states gave Databricks further values within that spread. The +# divergence is bounded by that recorded spread, not by a number of units, so there is no ulp +# tolerance: every recorded case fixes its row order and must match exactly. VAR_SAMP, STDDEV_SAMP, +# STDDEV_POP and their aliases are not converted: alone in an aggregation Databricks computes them +# otherwise, so the recordings of the same rows differ from the update. + +[divergences.central_moment_order] +constructs = ["fn:VAR_POP"] +replay = "warn" +default = "allow" +failure = "value" +reason = "VAR_POP updates a running count, mean and second central moment row by row in DOUBLE, as Spark's CentralMomentAgg does. The converted SQL repeats that arithmetic exactly in the order DuckDB collects the rows, so its result is one Databricks itself returns for some order of the same rows: within Databricks's own row-order variation, which reaches the last digits, and further where the values share a large mean and vary little." + # Order-dependent sums share Snowflake's mechanism: the converted SQL sums only where every order of # addition gives the exact total and raises otherwise. Spark's Sum starts each partial from 0.0 and # adds doubles with no overflow check (Sum.scala, updateExpressions), so the exact, two-value and diff --git a/crates/sqlbabel-policy/src/databricks/constants.rs b/crates/sqlbabel-policy/src/databricks/constants.rs index ade0cc571..79ad362c3 100644 --- a/crates/sqlbabel-policy/src/databricks/constants.rs +++ b/crates/sqlbabel-policy/src/databricks/constants.rs @@ -80,6 +80,22 @@ pub const KNOWN_DIFFERENCES: &[KnownDifference] = &[ return a value one unit in the last place from Databricks's, with no error.", failure: DivergenceFailure::Value, }, + KnownDifference { + name: "central_moment_order", + title: "VAR_POP varies with row order, as it does in Databricks", + differs: "Databricks updates a running mean and second moment row by row in the order rows \ + arrive, so the same rows in another order can give another result. The converted \ + SQL repeats that arithmetic exactly in the order DuckDB reads the rows: its result \ + is one Databricks returns for some order of the same rows, not necessarily the \ + order a given Databricks run used.", + details: Some( + "VAR_POP of integers, DECIMAL of up to 15 digits, FLOAT, DOUBLE and text read as \ + DOUBLE is affected, without DISTINCT or OVER.", + ), + fine_when: "Any result Databricks itself could return for the same rows is acceptable, or the values vary widely next to their mean and the result is compared or shown to fewer than 15 significant digits.", + wrong_when: "The result must equal one particular Databricks run exactly: the last digits can differ, and where the values share a large mean and vary little, so can digits well before the last, with no error.", + failure: DivergenceFailure::Value, + }, KnownDifference { name: "float_sum_order", title: "Sums of DOUBLE values raise an error unless every order gives the same total", From 7c4e66756b1b560ef3f48838f7fec76ad92356c0 Mon Sep 17 00:00:00 2001 From: Kevin Longe <273747162+kvlonge@users.noreply.github.com> Date: Mon, 30 Nov 2026 15:49:05 +0000 Subject: [PATCH 2/4] feat(databricks): convert VAR_SAMP, STDDEV_SAMP and STDDEV_POP within Databricks's own spread VAR_SAMP, STDDEV_SAMP, STDDEV_POP and the aliases VARIANCE, STDDEV and STD convert in two passes over the rows DuckDB collects: the mean, then the sum of squared deviations from it. Databricks's own result for the same rows moves with row order, partitioning, file layout and the other aggregates beside it, so the conversion relies on the moment_spread divergence. A divergence can now give a 64-bit float limit per family of data, and a case names its family. Verify holds each case to its own family's limit only, compares a case of no family exactly, and fails when a declared family has no passed case relying on it. Each limit is the largest spread between Databricks's recorded results for the same rows of that family, plus one unit for three small integers, where Databricks fuses the multiply and add of each squared deviation. The evidence pin moves to the commit holding those recordings. --- .../obligations/functions.toml | 12024 ++++++++++------ .../results-baseline.json | 870 +- .../src/comparison/_helpers/rows.rs | 8 +- .../src/comparison/tests/helpers.rs | 2 +- .../tests/test_compare_with_replay.rs | 12 + .../src/comparison/tests/test_types.rs | 2 +- .../conversion/_helpers/functions/calls.rs | 70 +- .../src/databricks/conversion/constants.rs | 18 + .../conversion/tests/test_aggregates.rs | 39 +- .../conversion/tests/test_convert.rs | 5 + .../src/cases/_helpers/loading.rs | 12 + crates/sqlbabel-evidence/src/cases/models.rs | 5 + .../src/cases/tests/test_load_cases.rs | 8 + .../src/coverage/tests/helpers.rs | 1 + .../src/verify/_helpers/judge.rs | 40 +- .../src/verify/main/verify_cases.rs | 48 +- crates/sqlbabel-evidence/src/verify/models.rs | 4 +- .../src/verify/tests/helpers.rs | 39 +- .../src/verify/tests/test_float_tolerance.rs | 97 +- .../src/verify/tests/test_types.rs | 4 +- crates/sqlbabel-policy/policy-databricks.toml | 44 +- .../src/databricks/constants.rs | 18 + .../src/policy/_helpers/validation.rs | 23 +- crates/sqlbabel-policy/src/policy/models.rs | 5 +- .../src/cli/_helpers/verify_command.rs | 9 + docs/architecture.md | 7 + evidence.toml | 4 +- 27 files changed, 9023 insertions(+), 4395 deletions(-) diff --git a/coverage/translation-databricks/obligations/functions.toml b/coverage/translation-databricks/obligations/functions.toml index 8bee640ce..a7cb356a5 100644 --- a/coverage/translation-databricks/obligations/functions.toml +++ b/coverage/translation-databricks/obligations/functions.toml @@ -33183,6 +33183,28 @@ required = true id = "db.functions.std.t001" form = "db.functions.std" kind = "type_combination" +target = "DOUBLE" +note = "std of three DOUBLE values sharing a large mean, in two orders that round apart. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/std.orders.pm.hand.toml#p001"] +required = true + +[[obligation]] +id = "db.functions.std.t002" +form = "db.functions.std" +kind = "type_combination" +target = "DOUBLE" +note = "std of three DOUBLE values sharing a large mean, in two orders that round apart. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/std.orders.pm.hand.toml#p002"] +required = true + +[[obligation]] +id = "db.functions.std.t003" +form = "db.functions.std" +kind = "type_combination" target = "INT" note = "std with arguments of type INT." catches = "the argument types read another way, or the result typed otherwise" @@ -33191,7 +33213,7 @@ cases = ["cases/translation/functions/std.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.std.t002" +id = "db.functions.std.t004" form = "db.functions.std" kind = "type_combination" target = "DECIMAL(10,2)" @@ -33202,7 +33224,7 @@ cases = ["cases/translation/functions/std.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.std.t003" +id = "db.functions.std.t005" form = "db.functions.std" kind = "type_combination" target = "DOUBLE" @@ -33213,7 +33235,7 @@ cases = ["cases/translation/functions/std.toml#t003_types_3"] required = true [[obligation]] -id = "db.functions.std.t004" +id = "db.functions.std.t006" form = "db.functions.std" kind = "null_argument" target = "INT" @@ -33224,7 +33246,7 @@ cases = ["cases/translation/functions/std.toml#t004_null_1"] required = true [[obligation]] -id = "db.functions.std.t005" +id = "db.functions.std.t007" form = "db.functions.std" kind = "error_parity" target = "STRING" @@ -33238,6 +33260,28 @@ required = true id = "db.functions.stddev.t001" form = "db.functions.stddev" kind = "type_combination" +target = "DOUBLE" +note = "stddev of three DOUBLE values sharing a large mean, in two orders that round apart. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/stddev.orders.pm.hand.toml#p001"] +required = true + +[[obligation]] +id = "db.functions.stddev.t002" +form = "db.functions.stddev" +kind = "type_combination" +target = "DOUBLE" +note = "stddev of three DOUBLE values sharing a large mean, in two orders that round apart. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/stddev.orders.pm.hand.toml#p002"] +required = true + +[[obligation]] +id = "db.functions.stddev.t003" +form = "db.functions.stddev" +kind = "type_combination" target = "INT" note = "stddev with arguments of type INT." catches = "the argument types read another way, or the result typed otherwise" @@ -33246,7 +33290,7 @@ cases = ["cases/translation/functions/stddev.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.stddev.t002" +id = "db.functions.stddev.t004" form = "db.functions.stddev" kind = "type_combination" target = "DECIMAL(10,2)" @@ -33257,7 +33301,7 @@ cases = ["cases/translation/functions/stddev.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.stddev.t003" +id = "db.functions.stddev.t005" form = "db.functions.stddev" kind = "type_combination" target = "DOUBLE" @@ -33268,7 +33312,7 @@ cases = ["cases/translation/functions/stddev.toml#t003_types_3"] required = true [[obligation]] -id = "db.functions.stddev.t004" +id = "db.functions.stddev.t006" form = "db.functions.stddev" kind = "null_argument" target = "INT" @@ -33279,7 +33323,7 @@ cases = ["cases/translation/functions/stddev.toml#t004_null_1"] required = true [[obligation]] -id = "db.functions.stddev.t005" +id = "db.functions.stddev.t007" form = "db.functions.stddev" kind = "error_parity" target = "STRING" @@ -33294,7956 +33338,11498 @@ id = "db.functions.stddev-pop.t001" form = "db.functions.stddev-pop" kind = "type_combination" target = "INT" -note = "stddev-pop with arguments of type INT." +note = "stddev_pop of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/stddev-pop.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p001"] required = true [[obligation]] id = "db.functions.stddev-pop.t002" form = "db.functions.stddev-pop" kind = "type_combination" -target = "DECIMAL(10,2)" -note = "stddev-pop with arguments of type DECIMAL(10,2)." +target = "INT" +note = "stddev_pop of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/stddev-pop.toml#t002_types_2"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p002"] required = true [[obligation]] id = "db.functions.stddev-pop.t003" form = "db.functions.stddev-pop" kind = "type_combination" -target = "DOUBLE" -note = "stddev-pop with arguments of type DOUBLE." +target = "INT" +note = "stddev_pop of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/stddev-pop.toml#t003_types_3"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p003"] required = true [[obligation]] id = "db.functions.stddev-pop.t004" form = "db.functions.stddev-pop" -kind = "null_argument" +kind = "type_combination" target = "INT" -note = "stddev-pop with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +note = "stddev_pop of three small INT values, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/stddev-pop.toml#t004_null_1"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p004"] required = true [[obligation]] id = "db.functions.stddev-pop.t005" form = "db.functions.stddev-pop" -kind = "error_parity" -target = "STRING" -note = "stddev-pop with a STRING value where the page documents INT." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +kind = "type_combination" +target = "INT" +note = "stddev_pop of three small INT values, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/stddev-pop.toml#t007_wrong_kind"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p005"] required = true [[obligation]] -id = "db.functions.stddev-samp.t001" -form = "db.functions.stddev-samp" +id = "db.functions.stddev-pop.t006" +form = "db.functions.stddev-pop" kind = "type_combination" target = "INT" -note = "stddev-samp with arguments of type INT." +note = "stddev_pop of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/stddev-samp.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p006"] required = true [[obligation]] -id = "db.functions.stddev-samp.t002" -form = "db.functions.stddev-samp" +id = "db.functions.stddev-pop.t007" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "DECIMAL(10,2)" -note = "stddev-samp with arguments of type DECIMAL(10,2)." +target = "INT" +note = "stddev_pop of three small INT values, repartitioned by REPARTITION(2). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/stddev-samp.toml#t002_types_2"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p007"] required = true [[obligation]] -id = "db.functions.stddev-samp.t003" -form = "db.functions.stddev-samp" +id = "db.functions.stddev-pop.t008" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "DOUBLE" -note = "stddev-samp with arguments of type DOUBLE." +target = "INT" +note = "stddev_pop of three small INT values, repartitioned by REPARTITION(3). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/stddev-samp.toml#t003_types_3"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p008"] required = true [[obligation]] -id = "db.functions.stddev-samp.t004" -form = "db.functions.stddev-samp" -kind = "null_argument" +id = "db.functions.stddev-pop.t009" +form = "db.functions.stddev-pop" +kind = "type_combination" target = "INT" -note = "stddev-samp with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +note = "stddev_pop of three small INT values, repartitioned by REPARTITION(3, x1). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/stddev-samp.toml#t004_null_1"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p009"] required = true [[obligation]] -id = "db.functions.stddev-samp.t005" -form = "db.functions.stddev-samp" -kind = "error_parity" -target = "STRING" -note = "stddev-samp with a STRING value where the page documents INT." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.stddev-pop.t010" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "INT" +note = "stddev_pop of three small INT values, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/stddev-samp.toml#t007_wrong_kind"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p010"] required = true [[obligation]] -id = "db.functions.str-to-map.t001" -form = "db.functions.str-to-map" +id = "db.functions.stddev-pop.t011" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "STRING" -note = "str-to-map with arguments of type STRING." +target = "INT" +note = "stddev_pop of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/str-to-map.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p011"] required = true [[obligation]] -id = "db.functions.str-to-map.t002" -form = "db.functions.str-to-map" -kind = "null_argument" -target = "STRING" -note = "str-to-map with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-pop.t012" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "INT" +note = "stddev_pop of three small INT values, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/str-to-map.toml#t002_null_1"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p012"] required = true [[obligation]] -id = "db.functions.str-to-map.t003" -form = "db.functions.str-to-map" -kind = "error_parity" -target = "ARRAY" -note = "str-to-map with a ARRAY value where the page documents STRING." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.stddev-pop.t013" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "INT" +note = "stddev_pop of three small INT values, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/str-to-map.toml#t005_wrong_kind"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p013"] required = true [[obligation]] -id = "db.functions.string.t001" -form = "db.functions.string" +id = "db.functions.stddev-pop.t014" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "STRING" -note = "string with arguments of type STRING." +target = "INT" +note = "stddev_pop of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/string.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p014"] required = true [[obligation]] -id = "db.functions.string.t002" -form = "db.functions.string" -kind = "null_argument" -target = "STRING" -note = "string with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-pop.t015" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "INT" +note = "stddev_pop of three small INT values, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/string.toml#t002_null_1"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p015"] required = true [[obligation]] -id = "db.functions.string.t003" -form = "db.functions.string" -kind = "error_parity" -target = "ARRAY" -note = "string with a ARRAY value where the page documents STRING." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.stddev-pop.t016" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "INT" +note = "stddev_pop of three small INT values, repartitioned by REPARTITION(2). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/string.toml#t005_wrong_kind"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p016"] required = true [[obligation]] -id = "db.functions.string-agg.t001" -form = "db.functions.string-agg" +id = "db.functions.stddev-pop.t017" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "STRING, STRING" -note = "string_agg ordered within each group. Hand-written for the phase-2 recording." +target = "INT" +note = "stddev_pop of three small INT values, repartitioned by REPARTITION(3). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/string-agg.np.hand.toml#p001"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p017"] required = true [[obligation]] -id = "db.functions.struct.t001" -form = "db.functions.struct" +id = "db.functions.stddev-pop.t018" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "INT, STRING" -note = "struct of an expression and an aliased column. Hand-written for the phase-2 recording." +target = "INT" +note = "stddev_pop of three small INT values, repartitioned by REPARTITION(3, x1). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/struct.expression.np.hand.toml#p001"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p018"] required = true [[obligation]] -id = "db.functions.struct.t002" -form = "db.functions.struct" +id = "db.functions.stddev-pop.t019" +form = "db.functions.stddev-pop" kind = "type_combination" target = "INT" -note = "struct with arguments of type INT." +note = "stddev_pop of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/struct.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p019"] required = true [[obligation]] -id = "db.functions.struct.t003" -form = "db.functions.struct" +id = "db.functions.stddev-pop.t020" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "STRING" -note = "struct with arguments of type STRING." +target = "INT" +note = "stddev_pop of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/struct.toml#t002_types_2"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p020"] required = true [[obligation]] -id = "db.functions.struct.t004" -form = "db.functions.struct" -kind = "null_argument" +id = "db.functions.stddev-pop.t021" +form = "db.functions.stddev-pop" +kind = "type_combination" target = "INT" -note = "struct with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +note = "stddev_pop of three small INT values, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/struct.toml#t003_null_1"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p021"] required = true [[obligation]] -id = "db.functions.struct.t005" -form = "db.functions.struct" -kind = "error_parity" -target = "STRING" -note = "struct with a STRING value where the page documents INT." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.stddev-pop.t022" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "INT" +note = "stddev_pop of three small INT values, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/struct.toml#t006_wrong_kind"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p022"] required = true [[obligation]] -id = "db.functions.struct.t006" -form = "db.functions.struct" +id = "db.functions.stddev-pop.t023" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "INT, STRING" -note = "struct of two columns, fields named after them. Hand-written for the phase-2 recording." +target = "INT" +note = "stddev_pop of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/struct.two.np.hand.toml#p001"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p023"] required = true [[obligation]] -id = "db.functions.substr.substr.t001" -form = "db.functions.substr.substr" +id = "db.functions.stddev-pop.t024" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "STRING, BIGINT" -note = "substr at a BIGINT position past INT. Hand-written for the phase-2 recording." +target = "INT" +note = "stddev_pop of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substr.substr.pb.hand.toml#p001"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p024"] required = true [[obligation]] -id = "db.functions.substr.substr.t002" -form = "db.functions.substr.substr" +id = "db.functions.stddev-pop.t025" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "STRING, INT" -note = "substr with arguments of type STRING, INT." +target = "INT" +note = "stddev_pop of three small INT values, repartitioned by REPARTITION(2). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substr.substr.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p025"] required = true [[obligation]] -id = "db.functions.substr.substr.t003" -form = "db.functions.substr.substr" +id = "db.functions.stddev-pop.t026" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "BINARY, INT" -note = "substr with arguments of type BINARY, INT." +target = "INT" +note = "stddev_pop of three small INT values, repartitioned by REPARTITION(3). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substr.substr.toml#t002_types_2"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p026"] required = true [[obligation]] -id = "db.functions.substr.substr.t004" -form = "db.functions.substr.substr" +id = "db.functions.stddev-pop.t027" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "STRING, BIGINT" -note = "substr with arguments of type STRING, BIGINT." +target = "INT" +note = "stddev_pop of three small INT values, repartitioned by REPARTITION(3, x1). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substr.substr.toml#t003_types_3"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p027"] required = true [[obligation]] -id = "db.functions.substr.substr.t005" -form = "db.functions.substr.substr" +id = "db.functions.stddev-pop.t028" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "STRING, SMALLINT" -note = "substr with arguments of type STRING, SMALLINT." +target = "INT" +note = "stddev_pop of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substr.substr.toml#t004_types_4"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p028"] required = true [[obligation]] -id = "db.functions.substr.substr.t006" -form = "db.functions.substr.substr" -kind = "null_argument" -target = "STRING, INT" -note = "substr with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-pop.t029" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "INT" +note = "stddev_pop of three small INT values, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substr.substr.toml#t005_null_1"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p029"] required = true [[obligation]] -id = "db.functions.substr.substr.t007" -form = "db.functions.substr.substr" -kind = "null_argument" -target = "STRING, INT" -note = "substr with NULL as argument 2." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-pop.t030" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "INT" +note = "stddev_pop of three small INT values, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substr.substr.toml#t006_null_2"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p030"] required = true [[obligation]] -id = "db.functions.substr.substr.t008" -form = "db.functions.substr.substr" -kind = "error_parity" -target = "ARRAY, INT" -note = "substr with a ARRAY value where the page documents STRING." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.stddev-pop.t031" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "INT" +note = "stddev_pop of three small INT values, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substr.substr.toml#t011_wrong_kind"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p031"] required = true [[obligation]] -id = "db.functions.substr.substr-from.t001" -form = "db.functions.substr.substr-from" +id = "db.functions.stddev-pop.t032" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "STRING, INT" -note = "substr with arguments of type STRING, INT." +target = "INT" +note = "stddev_pop of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substr.substr-from.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p032"] required = true [[obligation]] -id = "db.functions.substr.substr-from.t002" -form = "db.functions.substr.substr-from" +id = "db.functions.stddev-pop.t033" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "BINARY, INT" -note = "substr with arguments of type BINARY, INT." +target = "INT" +note = "stddev_pop of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substr.substr-from.toml#t002_types_2"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p033"] required = true [[obligation]] -id = "db.functions.substr.substr-from.t003" -form = "db.functions.substr.substr-from" +id = "db.functions.stddev-pop.t034" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "STRING, BIGINT" -note = "substr with arguments of type STRING, BIGINT." +target = "INT" +note = "stddev_pop of three small INT values, repartitioned by REPARTITION(2). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substr.substr-from.toml#t003_types_3"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p034"] required = true [[obligation]] -id = "db.functions.substr.substr-from.t004" -form = "db.functions.substr.substr-from" +id = "db.functions.stddev-pop.t035" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "STRING, SMALLINT" -note = "substr with arguments of type STRING, SMALLINT." +target = "INT" +note = "stddev_pop of three small INT values, repartitioned by REPARTITION(3). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substr.substr-from.toml#t004_types_4"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p035"] required = true [[obligation]] -id = "db.functions.substr.substr-from.t005" -form = "db.functions.substr.substr-from" -kind = "null_argument" -target = "STRING, INT" -note = "substr with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-pop.t036" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "INT" +note = "stddev_pop of three small INT values, repartitioned by REPARTITION(3, x1). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substr.substr-from.toml#t005_null_1"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p036"] required = true [[obligation]] -id = "db.functions.substr.substr-from.t006" -form = "db.functions.substr.substr-from" -kind = "null_argument" -target = "STRING, INT" -note = "substr with NULL as argument 2." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-pop.t037" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "DOUBLE" +note = "stddev_pop of eight DOUBLE values mixing 2^53 and 1e16 with small ones, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substr.substr-from.toml#t006_null_2"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p037"] required = true [[obligation]] -id = "db.functions.substr.substr-from.t007" -form = "db.functions.substr.substr-from" -kind = "error_parity" -target = "ARRAY, INT" -note = "substr with a ARRAY value where the page documents STRING." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.stddev-pop.t038" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "DOUBLE" +note = "stddev_pop of eight DOUBLE values mixing 2^53 and 1e16 with small ones, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substr.substr-from.toml#t011_wrong_kind"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p038"] required = true [[obligation]] -id = "db.functions.substring-index.t001" -form = "db.functions.substring-index" +id = "db.functions.stddev-pop.t039" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "STRING, STRING, INT" -note = "substring-index with arguments of type STRING, STRING, INT." +target = "DOUBLE" +note = "stddev_pop of eight DOUBLE values mixing 2^53 and 1e16 with small ones, repartitioned by REPARTITION(2). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substring-index.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p039"] required = true [[obligation]] -id = "db.functions.substring-index.t002" -form = "db.functions.substring-index" +id = "db.functions.stddev-pop.t040" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "BINARY, STRING, INT" -note = "substring-index with arguments of type BINARY, STRING, INT." +target = "DOUBLE" +note = "stddev_pop of eight DOUBLE values mixing 2^53 and 1e16 with small ones, repartitioned by REPARTITION(3). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substring-index.toml#t002_types_2"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p040"] required = true [[obligation]] -id = "db.functions.substring-index.t003" -form = "db.functions.substring-index" +id = "db.functions.stddev-pop.t041" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "STRING, BINARY, INT" -note = "substring-index with arguments of type STRING, BINARY, INT." +target = "DOUBLE" +note = "stddev_pop of eight DOUBLE values mixing 2^53 and 1e16 with small ones, repartitioned by REPARTITION(3, x1). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substring-index.toml#t003_types_3"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p041"] required = true [[obligation]] -id = "db.functions.substring-index.t004" -form = "db.functions.substring-index" +id = "db.functions.stddev-pop.t042" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "STRING, STRING, BIGINT" -note = "substring-index with arguments of type STRING, STRING, BIGINT." +target = "DOUBLE" +note = "stddev_pop of eight DOUBLE values mixing 2^53 and 1e16 with small ones, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substring-index.toml#t004_types_4"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p042"] required = true [[obligation]] -id = "db.functions.substring-index.t005" -form = "db.functions.substring-index" -kind = "null_argument" -target = "STRING, STRING, INT" -note = "substring-index with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-pop.t043" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "DOUBLE" +note = "stddev_pop of eight DOUBLE values mixing 2^53 and 1e16 with small ones, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substring-index.toml#t005_null_1"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p043"] required = true [[obligation]] -id = "db.functions.substring-index.t006" -form = "db.functions.substring-index" -kind = "null_argument" -target = "STRING, STRING, INT" -note = "substring-index with NULL as argument 2." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-pop.t044" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "DOUBLE" +note = "stddev_pop of eight DOUBLE values mixing 2^53 and 1e16 with small ones, repartitioned by REPARTITION(2). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substring-index.toml#t006_null_2"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p044"] required = true [[obligation]] -id = "db.functions.substring-index.t007" -form = "db.functions.substring-index" -kind = "null_argument" -target = "STRING, STRING, INT" -note = "substring-index with NULL as argument 3." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-pop.t045" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "DOUBLE" +note = "stddev_pop of eight DOUBLE values mixing 2^53 and 1e16 with small ones, repartitioned by REPARTITION(3). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substring-index.toml#t007_null_3"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p045"] required = true [[obligation]] -id = "db.functions.substring-index.t008" -form = "db.functions.substring-index" -kind = "error_parity" -target = "ARRAY, STRING, INT" -note = "substring-index with a ARRAY value where the page documents STRING." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.stddev-pop.t046" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "DOUBLE" +note = "stddev_pop of eight DOUBLE values mixing 2^53 and 1e16 with small ones, repartitioned by REPARTITION(3, x1). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substring-index.toml#t012_wrong_kind"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p046"] required = true [[obligation]] -id = "db.functions.substring.substring.t001" -form = "db.functions.substring.substring" +id = "db.functions.stddev-pop.t047" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "STRING, INT" -note = "substring with arguments of type STRING, INT." +target = "DOUBLE" +note = "stddev_pop of eight DOUBLE values mixing 2^53 and 1e16 with small ones, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substring.substring.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p047"] required = true [[obligation]] -id = "db.functions.substring.substring.t002" -form = "db.functions.substring.substring" +id = "db.functions.stddev-pop.t048" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "BINARY, INT" -note = "substring with arguments of type BINARY, INT." +target = "DOUBLE" +note = "stddev_pop of eight DOUBLE values mixing 2^53 and 1e16 with small ones, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substring.substring.toml#t002_types_2"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p048"] required = true [[obligation]] -id = "db.functions.substring.substring.t003" -form = "db.functions.substring.substring" +id = "db.functions.stddev-pop.t049" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "STRING, BIGINT" -note = "substring with arguments of type STRING, BIGINT." +target = "DOUBLE" +note = "stddev_pop of eight DOUBLE values mixing 2^53 and 1e16 with small ones, repartitioned by REPARTITION(2). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substring.substring.toml#t003_types_3"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p049"] required = true [[obligation]] -id = "db.functions.substring.substring.t004" -form = "db.functions.substring.substring" +id = "db.functions.stddev-pop.t050" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "STRING, SMALLINT" -note = "substring with arguments of type STRING, SMALLINT." +target = "DOUBLE" +note = "stddev_pop of eight DOUBLE values mixing 2^53 and 1e16 with small ones, repartitioned by REPARTITION(3). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substring.substring.toml#t004_types_4"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p050"] required = true [[obligation]] -id = "db.functions.substring.substring.t005" -form = "db.functions.substring.substring" -kind = "null_argument" -target = "STRING, INT" -note = "substring with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-pop.t051" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "DOUBLE" +note = "stddev_pop of eight DOUBLE values mixing 2^53 and 1e16 with small ones, repartitioned by REPARTITION(3, x1). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substring.substring.toml#t005_null_1"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p051"] required = true [[obligation]] -id = "db.functions.substring.substring.t006" -form = "db.functions.substring.substring" -kind = "null_argument" -target = "STRING, INT" -note = "substring with NULL as argument 2." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-pop.t052" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "DOUBLE" +note = "stddev_pop of six DOUBLE values sharing a large mean and spread under 2, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substring.substring.toml#t006_null_2"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p052"] required = true [[obligation]] -id = "db.functions.substring.substring.t007" -form = "db.functions.substring.substring" -kind = "error_parity" -target = "ARRAY, INT" -note = "substring with a ARRAY value where the page documents STRING." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.stddev-pop.t053" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "DOUBLE" +note = "stddev_pop of six DOUBLE values sharing a large mean and spread under 2, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substring.substring.toml#t011_wrong_kind"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p053"] required = true [[obligation]] -id = "db.functions.substring.substring-from.t001" -form = "db.functions.substring.substring-from" +id = "db.functions.stddev-pop.t054" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "STRING, INT" -note = "substring with arguments of type STRING, INT." +target = "DOUBLE" +note = "stddev_pop of six DOUBLE values sharing a large mean and spread under 2, repartitioned by REPARTITION(2). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substring.substring-from.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p054"] required = true [[obligation]] -id = "db.functions.substring.substring-from.t002" -form = "db.functions.substring.substring-from" +id = "db.functions.stddev-pop.t055" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "BINARY, INT" -note = "substring with arguments of type BINARY, INT." +target = "DOUBLE" +note = "stddev_pop of six DOUBLE values sharing a large mean and spread under 2, repartitioned by REPARTITION(3). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substring.substring-from.toml#t002_types_2"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p055"] required = true [[obligation]] -id = "db.functions.substring.substring-from.t003" -form = "db.functions.substring.substring-from" +id = "db.functions.stddev-pop.t056" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "STRING, BIGINT" -note = "substring with arguments of type STRING, BIGINT." +target = "DOUBLE" +note = "stddev_pop of six DOUBLE values sharing a large mean and spread under 2, repartitioned by REPARTITION(3, x1). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substring.substring-from.toml#t003_types_3"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p056"] required = true [[obligation]] -id = "db.functions.substring.substring-from.t004" -form = "db.functions.substring.substring-from" +id = "db.functions.stddev-pop.t057" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "STRING, SMALLINT" -note = "substring with arguments of type STRING, SMALLINT." +target = "DOUBLE" +note = "stddev_pop of six DOUBLE values sharing a large mean and spread under 2, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substring.substring-from.toml#t004_types_4"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p057"] required = true [[obligation]] -id = "db.functions.substring.substring-from.t005" -form = "db.functions.substring.substring-from" -kind = "null_argument" -target = "STRING, INT" -note = "substring with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-pop.t058" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "DOUBLE" +note = "stddev_pop of six DOUBLE values sharing a large mean and spread under 2, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substring.substring-from.toml#t005_null_1"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p058"] required = true [[obligation]] -id = "db.functions.substring.substring-from.t006" -form = "db.functions.substring.substring-from" -kind = "null_argument" -target = "STRING, INT" -note = "substring with NULL as argument 2." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-pop.t059" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "DOUBLE" +note = "stddev_pop of six DOUBLE values sharing a large mean and spread under 2, repartitioned by REPARTITION(2). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substring.substring-from.toml#t006_null_2"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p059"] required = true [[obligation]] -id = "db.functions.substring.substring-from.t007" -form = "db.functions.substring.substring-from" -kind = "error_parity" -target = "ARRAY, INT" -note = "substring with a ARRAY value where the page documents STRING." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.stddev-pop.t060" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "DOUBLE" +note = "stddev_pop of six DOUBLE values sharing a large mean and spread under 2, repartitioned by REPARTITION(3). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/substring.substring-from.toml#t011_wrong_kind"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p060"] required = true [[obligation]] -id = "db.functions.sum.t001" -form = "db.functions.sum" +id = "db.functions.stddev-pop.t061" +form = "db.functions.stddev-pop" kind = "type_combination" target = "DOUBLE" -note = "sum of DOUBLE values: whole multiples of one power of two, then values whose total depends on the order of addition. Hand-written for the phase-2 recording." +note = "stddev_pop of six DOUBLE values sharing a large mean and spread under 2, repartitioned by REPARTITION(3, x1). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/sum.pa.hand.toml#p001"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p061"] required = true [[obligation]] -id = "db.functions.sum.t002" -form = "db.functions.sum" +id = "db.functions.stddev-pop.t062" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "DOUBLE" -note = "sum of DOUBLE values: whole multiples of one power of two, then values whose total depends on the order of addition. Hand-written for the phase-2 recording." +target = "INT" +note = "stddev_pop of 4097 generated DOUBLE values near 1e9 in 13 steps of 0.1, in id order on one partition. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/sum.pa.hand.toml#p002"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p062"] required = true [[obligation]] -id = "db.functions.sum.t003" -form = "db.functions.sum" +id = "db.functions.stddev-pop.t063" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "DOUBLE" -note = "sum of DOUBLE values: whole multiples of one power of two, then values whose total depends on the order of addition. Hand-written for the phase-2 recording." +target = "INT" +note = "stddev_pop of 4097 generated DOUBLE values near 1e9 in 13 steps of 0.1, in a permuted id order on one partition. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/sum.pa.hand.toml#p003"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p063"] required = true [[obligation]] -id = "db.functions.sum.t004" -form = "db.functions.sum" +id = "db.functions.stddev-pop.t064" +form = "db.functions.stddev-pop" kind = "type_combination" target = "INT" -note = "sum with arguments of type INT." +note = "stddev_pop of 4097 generated DOUBLE values near 1e9 in 13 steps of 0.1, in another permuted id order on one partition. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/sum.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p064"] required = true [[obligation]] -id = "db.functions.sum.t005" -form = "db.functions.sum" +id = "db.functions.stddev-pop.t065" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "INTERVAL DAY" -note = "sum with arguments of type INTERVAL DAY." +target = "INT" +note = "stddev_pop of 4097 generated DOUBLE values near 1e9 in 13 steps of 0.1, in reverse id order on one partition. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/sum.toml#t002_types_2"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p065"] required = true [[obligation]] -id = "db.functions.sum.t006" -form = "db.functions.sum" +id = "db.functions.stddev-pop.t066" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "DECIMAL(10,2)" -note = "sum with arguments of type DECIMAL(10,2)." +target = "INT" +note = "stddev_pop of 4097 generated DOUBLE values near 1e9 in 13 steps of 0.1, in the default layout. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/sum.toml#t003_types_3"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p066"] required = true [[obligation]] -id = "db.functions.sum.t007" -form = "db.functions.sum" +id = "db.functions.stddev-pop.t067" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "INTERVAL YEAR TO MONTH" -note = "sum with arguments of type INTERVAL YEAR TO MONTH." +target = "INT" +note = "stddev_pop of 4097 generated DOUBLE values near 1e9 in 13 steps of 0.1, repartitioned by REPARTITION(4). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/sum.toml#t004_types_4"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p067"] required = true [[obligation]] -id = "db.functions.sum.t008" -form = "db.functions.sum" -kind = "null_argument" +id = "db.functions.stddev-pop.t068" +form = "db.functions.stddev-pop" +kind = "type_combination" target = "INT" -note = "sum with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +note = "stddev_pop of 4097 generated DOUBLE values near 1e9 in 13 steps of 0.1, repartitioned by REPARTITION(8, x). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/sum.toml#t005_null_1"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p068"] required = true [[obligation]] -id = "db.functions.sum.t009" -form = "db.functions.sum" -kind = "error_parity" -target = "STRING" -note = "sum with a STRING value where the page documents INT." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.stddev-pop.t069" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "INT" +note = "stddev_pop of 20000 generated DOUBLE values near 1e9 in 13 steps of 0.1, in id order on one partition. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/sum.toml#t008_wrong_kind"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p069"] required = true [[obligation]] -id = "db.functions.table-changes.t001" -form = "db.functions.table-changes" +id = "db.functions.stddev-pop.t070" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "STRING, INT" -note = "table-changes with arguments of type STRING, INT." +target = "INT" +note = "stddev_pop of 20000 generated DOUBLE values near 1e9 in 13 steps of 0.1, in a permuted id order on one partition. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/table-changes.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p070"] required = true [[obligation]] -id = "db.functions.table-changes.t002" -form = "db.functions.table-changes" +id = "db.functions.stddev-pop.t071" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "STRING, TIMESTAMP" -note = "table-changes with arguments of type STRING, TIMESTAMP." +target = "INT" +note = "stddev_pop of 20000 generated DOUBLE values near 1e9 in 13 steps of 0.1, in another permuted id order on one partition. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/table-changes.toml#t002_types_2"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p071"] required = true [[obligation]] -id = "db.functions.table-changes.t003" -form = "db.functions.table-changes" +id = "db.functions.stddev-pop.t072" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "STRING, BIGINT" -note = "table-changes with arguments of type STRING, BIGINT." +target = "INT" +note = "stddev_pop of 20000 generated DOUBLE values near 1e9 in 13 steps of 0.1, in reverse id order on one partition. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/table-changes.toml#t003_types_3"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p072"] required = true [[obligation]] -id = "db.functions.table-changes.t004" -form = "db.functions.table-changes" +id = "db.functions.stddev-pop.t073" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "STRING, TIMESTAMP_NTZ" -note = "table-changes with arguments of type STRING, TIMESTAMP_NTZ." +target = "INT" +note = "stddev_pop of 20000 generated DOUBLE values near 1e9 in 13 steps of 0.1, in the default layout. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/table-changes.toml#t004_types_4"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p073"] required = true [[obligation]] -id = "db.functions.table-changes.t005" -form = "db.functions.table-changes" -kind = "null_argument" -target = "STRING, INT" -note = "table-changes with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-pop.t074" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "INT" +note = "stddev_pop of 20000 generated DOUBLE values near 1e9 in 13 steps of 0.1, repartitioned by REPARTITION(4). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/table-changes.toml#t005_null_1"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p074"] required = true [[obligation]] -id = "db.functions.table-changes.t006" -form = "db.functions.table-changes" -kind = "null_argument" -target = "STRING, INT" -note = "table-changes with NULL as argument 2." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-pop.t075" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "INT" +note = "stddev_pop of 20000 generated DOUBLE values near 1e9 in 13 steps of 0.1, repartitioned by REPARTITION(8, x). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/table-changes.toml#t006_null_2"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p075"] required = true [[obligation]] -id = "db.functions.table-changes.t007" -form = "db.functions.table-changes" -kind = "error_parity" -target = "ARRAY, INT" -note = "table-changes with a ARRAY value where the page documents STRING." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.stddev-pop.t076" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "INT" +note = "stddev_pop of 100000 generated DOUBLE values near 1e9 in 13 steps of 0.1, in id order on one partition. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/table-changes.toml#t011_wrong_kind"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p076"] required = true [[obligation]] -id = "db.functions.tan.t001" -form = "db.functions.tan" +id = "db.functions.stddev-pop.t077" +form = "db.functions.stddev-pop" kind = "type_combination" target = "INT" -note = "tan with arguments of type INT." +note = "stddev_pop of 100000 generated DOUBLE values near 1e9 in 13 steps of 0.1, in a permuted id order on one partition. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tan.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p077"] required = true [[obligation]] -id = "db.functions.tan.t002" -form = "db.functions.tan" +id = "db.functions.stddev-pop.t078" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "DECIMAL(10,2)" -note = "tan with arguments of type DECIMAL(10,2)." +target = "INT" +note = "stddev_pop of 100000 generated DOUBLE values near 1e9 in 13 steps of 0.1, in another permuted id order on one partition. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tan.toml#t002_types_2"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p078"] required = true [[obligation]] -id = "db.functions.tan.t003" -form = "db.functions.tan" +id = "db.functions.stddev-pop.t079" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "DOUBLE" -note = "tan with arguments of type DOUBLE." +target = "INT" +note = "stddev_pop of 100000 generated DOUBLE values near 1e9 in 13 steps of 0.1, in reverse id order on one partition. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tan.toml#t003_types_3"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p079"] required = true [[obligation]] -id = "db.functions.tan.t004" -form = "db.functions.tan" -kind = "null_argument" +id = "db.functions.stddev-pop.t080" +form = "db.functions.stddev-pop" +kind = "type_combination" target = "INT" -note = "tan with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +note = "stddev_pop of 100000 generated DOUBLE values near 1e9 in 13 steps of 0.1, in the default layout. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tan.toml#t004_null_1"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p080"] required = true [[obligation]] -id = "db.functions.tan.t005" -form = "db.functions.tan" -kind = "error_parity" -target = "STRING" -note = "tan with a STRING value where the page documents INT." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.stddev-pop.t081" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "INT" +note = "stddev_pop of 100000 generated DOUBLE values near 1e9 in 13 steps of 0.1, repartitioned by REPARTITION(4). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tan.toml#t007_wrong_kind"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p081"] required = true [[obligation]] -id = "db.functions.tanh.t001" -form = "db.functions.tanh" +id = "db.functions.stddev-pop.t082" +form = "db.functions.stddev-pop" kind = "type_combination" target = "INT" -note = "tanh with arguments of type INT." +note = "stddev_pop of 100000 generated DOUBLE values near 1e9 in 13 steps of 0.1, repartitioned by REPARTITION(8, x). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tanh.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p082"] required = true [[obligation]] -id = "db.functions.tanh.t002" -form = "db.functions.tanh" +id = "db.functions.stddev-pop.t083" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "DECIMAL(10,2)" -note = "tanh with arguments of type DECIMAL(10,2)." +target = "INT" +note = "stddev_pop per group of 3000 generated DOUBLE values near 1e9 in 7 interleaved groups, in id order on one partition. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tanh.toml#t002_types_2"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p083"] required = true [[obligation]] -id = "db.functions.tanh.t003" -form = "db.functions.tanh" +id = "db.functions.stddev-pop.t084" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "DOUBLE" -note = "tanh with arguments of type DOUBLE." +target = "INT" +note = "stddev_pop per group of 3000 generated DOUBLE values near 1e9 in 7 interleaved groups, in a permuted id order on one partition. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tanh.toml#t003_types_3"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p084"] required = true [[obligation]] -id = "db.functions.tanh.t004" -form = "db.functions.tanh" -kind = "null_argument" +id = "db.functions.stddev-pop.t085" +form = "db.functions.stddev-pop" +kind = "type_combination" target = "INT" -note = "tanh with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +note = "stddev_pop per group of 3000 generated DOUBLE values near 1e9 in 7 interleaved groups, in reverse id order on one partition. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tanh.toml#t004_null_1"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p085"] required = true [[obligation]] -id = "db.functions.tanh.t005" -form = "db.functions.tanh" -kind = "error_parity" -target = "STRING" -note = "tanh with a STRING value where the page documents INT." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.stddev-pop.t086" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "INT" +note = "stddev_pop per group of 3000 generated DOUBLE values near 1e9 in 7 interleaved groups, repartitioned by REPARTITION(4). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tanh.toml#t007_wrong_kind"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p086"] required = true [[obligation]] -id = "db.functions.theta-difference.t001" -form = "db.functions.theta-difference" +id = "db.functions.stddev-pop.t087" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "BINARY, BINARY" -note = "theta-difference with arguments of type BINARY, BINARY." +target = "INT" +note = "stddev_pop per group of 3000 generated DOUBLE values near 1e9 in 7 interleaved groups, repartitioned by REPARTITION(7, g). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/theta-difference.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p087"] required = true [[obligation]] -id = "db.functions.theta-difference.t002" -form = "db.functions.theta-difference" -kind = "null_argument" -target = "BINARY, BINARY" -note = "theta-difference with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-pop.t088" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "INT" +note = "stddev_pop of 24 generated DOUBLE values near 1e9 in 13 steps of 0.1, on one partition. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/theta-difference.toml#t002_null_1"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p088"] required = true [[obligation]] -id = "db.functions.theta-difference.t003" -form = "db.functions.theta-difference" -kind = "null_argument" -target = "BINARY, BINARY" -note = "theta-difference with NULL as argument 2." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-pop.t089" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "INT" +note = "stddev_pop of 24 generated DOUBLE values near 1e9 in 13 steps of 0.1, in the default layout. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/theta-difference.toml#t003_null_2"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p089"] required = true [[obligation]] -id = "db.functions.theta-difference.t004" -form = "db.functions.theta-difference" -kind = "error_parity" -target = "STRING, BINARY" -note = "theta-difference with a STRING value where the page documents BINARY." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.stddev-pop.t090" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "INT" +note = "stddev_pop of 24 generated DOUBLE values near 1e9 in 13 steps of 0.1, repartitioned by REPARTITION(2). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/theta-difference.toml#t006_wrong_kind"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p090"] required = true [[obligation]] -id = "db.functions.theta-intersection.t001" -form = "db.functions.theta-intersection" +id = "db.functions.stddev-pop.t091" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "BINARY, BINARY" -note = "theta-intersection with arguments of type BINARY, BINARY." +target = "INT" +note = "stddev_pop of 24 generated DOUBLE values near 1e9 in 13 steps of 0.1, repartitioned by REPARTITION(3). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/theta-intersection.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p091"] required = true [[obligation]] -id = "db.functions.theta-intersection.t002" -form = "db.functions.theta-intersection" -kind = "null_argument" -target = "BINARY, BINARY" -note = "theta-intersection with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-pop.t092" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "INT" +note = "stddev_pop of 24 generated DOUBLE values near 1e9 in 13 steps of 0.1, repartitioned by REPARTITION(8). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/theta-intersection.toml#t002_null_1"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p092"] required = true [[obligation]] -id = "db.functions.theta-intersection.t003" -form = "db.functions.theta-intersection" -kind = "null_argument" -target = "BINARY, BINARY" -note = "theta-intersection with NULL as argument 2." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-pop.t093" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "INT" +note = "stddev_pop of 24 generated DOUBLE values near 1e9 in 13 steps of 0.1, repartitioned by REPARTITION(3, x). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/theta-intersection.toml#t003_null_2"] +cases = ["cases/translation/functions/stddev-pop.families.pm.hand.toml#p093"] required = true [[obligation]] -id = "db.functions.theta-intersection.t004" -form = "db.functions.theta-intersection" -kind = "error_parity" -target = "STRING, BINARY" -note = "theta-intersection with a STRING value where the page documents BINARY." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.stddev-pop.t094" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "INT" +note = "stddev_pop of the same three INT values in one of their six orders, whose streaming update rounds apart. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/theta-intersection.toml#t006_wrong_kind"] +cases = ["cases/translation/functions/stddev-pop.orders.pm.hand.toml#p001"] required = true [[obligation]] -id = "db.functions.theta-intersection-agg.t001" -form = "db.functions.theta-intersection-agg" +id = "db.functions.stddev-pop.t095" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "BINARY" -note = "theta-intersection-agg with arguments of type BINARY." +target = "INT" +note = "stddev_pop of the same three INT values in one of their six orders, whose streaming update rounds apart. Hand-written for the row-order recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/theta-intersection-agg.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-pop.orders.pm.hand.toml#p002"] required = true [[obligation]] -id = "db.functions.theta-intersection-agg.t002" -form = "db.functions.theta-intersection-agg" -kind = "null_argument" -target = "BINARY" -note = "theta-intersection-agg with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-pop.t096" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "INT" +note = "stddev_pop of the same three INT values in one of their six orders, whose streaming update rounds apart. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/theta-intersection-agg.toml#t002_null_1"] +cases = ["cases/translation/functions/stddev-pop.orders.pm.hand.toml#p003"] required = true [[obligation]] -id = "db.functions.theta-intersection-agg.t003" -form = "db.functions.theta-intersection-agg" -kind = "error_parity" -target = "STRING" -note = "theta-intersection-agg with a STRING value where the page documents BINARY." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.stddev-pop.t097" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "INT" +note = "stddev_pop of the same three INT values in one of their six orders, whose streaming update rounds apart. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/theta-intersection-agg.toml#t004_wrong_kind"] +cases = ["cases/translation/functions/stddev-pop.orders.pm.hand.toml#p004"] required = true [[obligation]] -id = "db.functions.theta-sketch-agg.t001" -form = "db.functions.theta-sketch-agg" +id = "db.functions.stddev-pop.t098" +form = "db.functions.stddev-pop" kind = "type_combination" target = "INT" -note = "theta-sketch-agg with arguments of type INT." +note = "stddev_pop of the same three INT values in one of their six orders, whose streaming update rounds apart. Hand-written for the row-order recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/theta-sketch-agg.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-pop.orders.pm.hand.toml#p005"] required = true [[obligation]] -id = "db.functions.theta-sketch-agg.t002" -form = "db.functions.theta-sketch-agg" +id = "db.functions.stddev-pop.t099" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "BIGINT" -note = "theta-sketch-agg with arguments of type BIGINT." +target = "INT" +note = "stddev_pop of the same three INT values in one of their six orders, whose streaming update rounds apart. Hand-written for the row-order recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/theta-sketch-agg.toml#t002_types_2"] +cases = ["cases/translation/functions/stddev-pop.orders.pm.hand.toml#p006"] required = true [[obligation]] -id = "db.functions.theta-sketch-agg.t003" -form = "db.functions.theta-sketch-agg" +id = "db.functions.stddev-pop.t100" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "FLOAT" -note = "theta-sketch-agg with arguments of type FLOAT." +target = "DOUBLE" +note = "stddev_pop of three DOUBLE values sharing a large mean and spread under 1, in one of their six orders. Hand-written for the row-order recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/theta-sketch-agg.toml#t003_types_3"] +cases = ["cases/translation/functions/stddev-pop.orders.pm.hand.toml#p007"] required = true [[obligation]] -id = "db.functions.theta-sketch-agg.t004" -form = "db.functions.theta-sketch-agg" +id = "db.functions.stddev-pop.t101" +form = "db.functions.stddev-pop" kind = "type_combination" target = "DOUBLE" -note = "theta-sketch-agg with arguments of type DOUBLE." +note = "stddev_pop of three DOUBLE values sharing a large mean and spread under 1, in one of their six orders. Hand-written for the row-order recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/theta-sketch-agg.toml#t004_types_4"] +cases = ["cases/translation/functions/stddev-pop.orders.pm.hand.toml#p008"] required = true [[obligation]] -id = "db.functions.theta-sketch-agg.t005" -form = "db.functions.theta-sketch-agg" -kind = "null_argument" -target = "INT" -note = "theta-sketch-agg with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-pop.t102" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "DOUBLE" +note = "stddev_pop of three DOUBLE values sharing a large mean and spread under 1, in one of their six orders. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/theta-sketch-agg.toml#t005_null_1"] +cases = ["cases/translation/functions/stddev-pop.orders.pm.hand.toml#p009"] required = true [[obligation]] -id = "db.functions.theta-sketch-agg.t006" -form = "db.functions.theta-sketch-agg" -kind = "error_parity" -target = "STRING" -note = "theta-sketch-agg with a STRING value where the page documents INT." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.stddev-pop.t103" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "DOUBLE" +note = "stddev_pop of three DOUBLE values sharing a large mean and spread under 1, in one of their six orders. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/theta-sketch-agg.toml#t008_wrong_kind"] +cases = ["cases/translation/functions/stddev-pop.orders.pm.hand.toml#p010"] required = true [[obligation]] -id = "db.functions.theta-sketch-estimate.t001" -form = "db.functions.theta-sketch-estimate" +id = "db.functions.stddev-pop.t104" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "BINARY" -note = "theta-sketch-estimate with arguments of type BINARY." +target = "DOUBLE" +note = "stddev_pop of three DOUBLE values sharing a large mean and spread under 1, in one of their six orders. Hand-written for the row-order recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/theta-sketch-estimate.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-pop.orders.pm.hand.toml#p011"] required = true [[obligation]] -id = "db.functions.theta-sketch-estimate.t002" -form = "db.functions.theta-sketch-estimate" -kind = "null_argument" -target = "BINARY" -note = "theta-sketch-estimate with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-pop.t105" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "DOUBLE" +note = "stddev_pop of three DOUBLE values sharing a large mean and spread under 1, in one of their six orders. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/theta-sketch-estimate.toml#t002_null_1"] +cases = ["cases/translation/functions/stddev-pop.orders.pm.hand.toml#p012"] required = true [[obligation]] -id = "db.functions.theta-sketch-estimate.t003" -form = "db.functions.theta-sketch-estimate" -kind = "error_parity" -target = "STRING" -note = "theta-sketch-estimate with a STRING value where the page documents BINARY." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.stddev-pop.t106" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "DOUBLE" +note = "stddev_pop of four DOUBLE values sharing a large mean, in one order per distinct streaming result. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/theta-sketch-estimate.toml#t004_wrong_kind"] +cases = ["cases/translation/functions/stddev-pop.orders.pm.hand.toml#p013"] required = true [[obligation]] -id = "db.functions.theta-union.t001" -form = "db.functions.theta-union" +id = "db.functions.stddev-pop.t107" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "BINARY, BINARY" -note = "theta-union with arguments of type BINARY, BINARY." +target = "DOUBLE" +note = "stddev_pop of four DOUBLE values sharing a large mean, in one order per distinct streaming result. Hand-written for the row-order recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/theta-union.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-pop.orders.pm.hand.toml#p014"] required = true [[obligation]] -id = "db.functions.theta-union.t002" -form = "db.functions.theta-union" -kind = "null_argument" -target = "BINARY, BINARY" -note = "theta-union with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-pop.t108" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "DOUBLE" +note = "stddev_pop of four DOUBLE values sharing a large mean, in one order per distinct streaming result. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/theta-union.toml#t002_null_1"] +cases = ["cases/translation/functions/stddev-pop.orders.pm.hand.toml#p015"] required = true [[obligation]] -id = "db.functions.theta-union.t003" -form = "db.functions.theta-union" -kind = "null_argument" -target = "BINARY, BINARY" -note = "theta-union with NULL as argument 2." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-pop.t109" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "INT" +note = "stddev-pop with arguments of type INT." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/theta-union.toml#t003_null_2"] +cases = ["cases/translation/functions/stddev-pop.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.theta-union.t004" -form = "db.functions.theta-union" -kind = "error_parity" -target = "STRING, BINARY" -note = "theta-union with a STRING value where the page documents BINARY." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.stddev-pop.t110" +form = "db.functions.stddev-pop" +kind = "type_combination" +target = "DECIMAL(10,2)" +note = "stddev-pop with arguments of type DECIMAL(10,2)." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/theta-union.toml#t006_wrong_kind"] +cases = ["cases/translation/functions/stddev-pop.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.theta-union-agg.t001" -form = "db.functions.theta-union-agg" +id = "db.functions.stddev-pop.t111" +form = "db.functions.stddev-pop" kind = "type_combination" -target = "BINARY" -note = "theta-union-agg with arguments of type BINARY." +target = "DOUBLE" +note = "stddev-pop with arguments of type DOUBLE." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/theta-union-agg.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-pop.toml#t003_types_3"] required = true [[obligation]] -id = "db.functions.theta-union-agg.t002" -form = "db.functions.theta-union-agg" +id = "db.functions.stddev-pop.t112" +form = "db.functions.stddev-pop" kind = "null_argument" -target = "BINARY" -note = "theta-union-agg with NULL as argument 1." +target = "INT" +note = "stddev-pop with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/theta-union-agg.toml#t002_null_1"] +cases = ["cases/translation/functions/stddev-pop.toml#t004_null_1"] required = true [[obligation]] -id = "db.functions.theta-union-agg.t003" -form = "db.functions.theta-union-agg" +id = "db.functions.stddev-pop.t113" +form = "db.functions.stddev-pop" kind = "error_parity" target = "STRING" -note = "theta-union-agg with a STRING value where the page documents BINARY." +note = "stddev-pop with a STRING value where the page documents INT." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/theta-union-agg.toml#t004_wrong_kind"] +cases = ["cases/translation/functions/stddev-pop.toml#t007_wrong_kind"] required = true [[obligation]] -id = "db.functions.tildesign.t001" -form = "db.functions.tildesign" +id = "db.functions.stddev-samp.t001" +form = "db.functions.stddev-samp" kind = "type_combination" target = "INT" -note = "tildesign with arguments of type INT." +note = "stddev_samp of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tildesign.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p001"] required = true [[obligation]] -id = "db.functions.tildesign.t002" -form = "db.functions.tildesign" +id = "db.functions.stddev-samp.t002" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "BIGINT" -note = "tildesign with arguments of type BIGINT." +target = "INT" +note = "stddev_samp of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tildesign.toml#t002_types_2"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p002"] required = true [[obligation]] -id = "db.functions.tildesign.t003" -form = "db.functions.tildesign" +id = "db.functions.stddev-samp.t003" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "SMALLINT" -note = "tildesign with arguments of type SMALLINT." +target = "INT" +note = "stddev_samp of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tildesign.toml#t003_types_3"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p003"] required = true [[obligation]] -id = "db.functions.tildesign.t004" -form = "db.functions.tildesign" -kind = "null_argument" +id = "db.functions.stddev-samp.t004" +form = "db.functions.stddev-samp" +kind = "type_combination" target = "INT" -note = "tildesign with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +note = "stddev_samp of three small INT values, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tildesign.toml#t004_null_1"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p004"] required = true [[obligation]] -id = "db.functions.tildesign.t005" -form = "db.functions.tildesign" -kind = "error_parity" -target = "STRING" -note = "tildesign with a STRING value where the page documents INT." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.stddev-samp.t005" +form = "db.functions.stddev-samp" +kind = "type_combination" +target = "INT" +note = "stddev_samp of three small INT values, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tildesign.toml#t007_wrong_kind"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p005"] required = true [[obligation]] -id = "db.functions.time.t001" -form = "db.functions.time" +id = "db.functions.stddev-samp.t006" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "STRING" -note = "time of strings. Hand-written for the phase-2 recording." +target = "INT" +note = "stddev_samp of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time.pt.hand.toml#p001"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p006"] required = true [[obligation]] -id = "db.functions.time.t002" -form = "db.functions.time" +id = "db.functions.stddev-samp.t007" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "TIME" -note = "time of TIME values. Hand-written for the phase-2 recording." +target = "INT" +note = "stddev_samp of three small INT values, repartitioned by REPARTITION(2). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time.ptt.hand.toml#p001"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p007"] required = true [[obligation]] -id = "db.functions.time.t003" -form = "db.functions.time" +id = "db.functions.stddev-samp.t008" +form = "db.functions.stddev-samp" kind = "type_combination" target = "INT" -note = "time with arguments of type INT." +note = "stddev_samp of three small INT values, repartitioned by REPARTITION(3). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p008"] required = true [[obligation]] -id = "db.functions.time.t004" -form = "db.functions.time" +id = "db.functions.stddev-samp.t009" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "STRING" -note = "time with arguments of type STRING." +target = "INT" +note = "stddev_samp of three small INT values, repartitioned by REPARTITION(3, x1). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time.toml#t002_types_2"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p009"] required = true [[obligation]] -id = "db.functions.time.t005" -form = "db.functions.time" -kind = "null_argument" +id = "db.functions.stddev-samp.t010" +form = "db.functions.stddev-samp" +kind = "type_combination" target = "INT" -note = "time with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +note = "stddev_samp of three small INT values, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time.toml#t003_null_1"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p010"] required = true [[obligation]] -id = "db.functions.time.t006" -form = "db.functions.time" -kind = "error_parity" -target = "STRING" -note = "time with a STRING value where the page documents INT." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.stddev-samp.t011" +form = "db.functions.stddev-samp" +kind = "type_combination" +target = "INT" +note = "stddev_samp of three small INT values, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time.toml#t006_wrong_kind"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p011"] required = true [[obligation]] -id = "db.functions.time-bucket.t001" -form = "db.functions.time-bucket" +id = "db.functions.stddev-samp.t012" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "TIMESTAMP" -note = "time_bucket of timestamps into hours. Hand-written." +target = "INT" +note = "stddev_samp of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-bucket.hand.toml#t001_hour"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p012"] required = true [[obligation]] -id = "db.functions.time-bucket.t002" -form = "db.functions.time-bucket" -kind = "null_argument" -target = "TIMESTAMP" -note = "time_bucket of NULL. Hand-written." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-samp.t013" +form = "db.functions.stddev-samp" +kind = "type_combination" +target = "INT" +note = "stddev_samp of three small INT values, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-bucket.hand.toml#t002_null"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p013"] required = true [[obligation]] -id = "db.functions.time-bucket.t003" -form = "db.functions.time-bucket" +id = "db.functions.stddev-samp.t014" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "INTERVAL DAY" -note = "time-bucket with arguments of type INTERVAL DAY, TIMESTAMP. Arguments 2 onward inlined as constants." +target = "INT" +note = "stddev_samp of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-bucket.lit.toml#t001_types_1_lit"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p014"] required = true [[obligation]] -id = "db.functions.time-bucket.t004" -form = "db.functions.time-bucket" +id = "db.functions.stddev-samp.t015" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "INTERVAL YEAR TO MONTH" -note = "time-bucket with arguments of type INTERVAL YEAR TO MONTH, TIMESTAMP. Arguments 2 onward inlined as constants." +target = "INT" +note = "stddev_samp of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-bucket.lit.toml#t002_types_2_lit"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p015"] required = true [[obligation]] -id = "db.functions.time-bucket.t005" -form = "db.functions.time-bucket" +id = "db.functions.stddev-samp.t016" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "INTERVAL DAY" -note = "time-bucket with arguments of type INTERVAL DAY, TIMESTAMP_NTZ. Arguments 2 onward inlined as constants." +target = "INT" +note = "stddev_samp of three small INT values, repartitioned by REPARTITION(2). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-bucket.lit.toml#t003_types_3_lit"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p016"] required = true [[obligation]] -id = "db.functions.time-bucket.t006" -form = "db.functions.time-bucket" -kind = "null_argument" -target = "INTERVAL DAY" -note = "time-bucket with NULL as argument 1. Arguments 2 onward inlined as constants." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-samp.t017" +form = "db.functions.stddev-samp" +kind = "type_combination" +target = "INT" +note = "stddev_samp of three small INT values, repartitioned by REPARTITION(3). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-bucket.lit.toml#t004_null_1_lit"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p017"] required = true [[obligation]] -id = "db.functions.time-bucket.t007" -form = "db.functions.time-bucket" -kind = "null_argument" -target = "INTERVAL DAY" -note = "time-bucket with NULL as argument 2. Arguments 2 onward inlined as constants." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-samp.t018" +form = "db.functions.stddev-samp" +kind = "type_combination" +target = "INT" +note = "stddev_samp of three small INT values, repartitioned by REPARTITION(3, x1). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-bucket.lit.toml#t005_null_2_lit"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p018"] required = true [[obligation]] -id = "db.functions.time-bucket.t008" -form = "db.functions.time-bucket" -kind = "error_parity" -target = "STRING" -note = "time-bucket with a STRING value where the page documents INTERVAL DAY. Arguments 2 onward inlined as constants." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.stddev-samp.t019" +form = "db.functions.stddev-samp" +kind = "type_combination" +target = "INT" +note = "stddev_samp of three small INT values, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-bucket.lit.toml#t008_wrong_kind_lit"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p019"] required = true [[obligation]] -id = "db.functions.time-bucket.t009" -form = "db.functions.time-bucket" +id = "db.functions.stddev-samp.t020" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "INTERVAL DAY, TIMESTAMP" -note = "time-bucket with arguments of type INTERVAL DAY, TIMESTAMP." +target = "INT" +note = "stddev_samp of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-bucket.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p020"] required = true [[obligation]] -id = "db.functions.time-bucket.t010" -form = "db.functions.time-bucket" +id = "db.functions.stddev-samp.t021" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "INTERVAL YEAR TO MONTH, TIMESTAMP" -note = "time-bucket with arguments of type INTERVAL YEAR TO MONTH, TIMESTAMP." +target = "INT" +note = "stddev_samp of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-bucket.toml#t002_types_2"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p021"] required = true [[obligation]] -id = "db.functions.time-bucket.t011" -form = "db.functions.time-bucket" +id = "db.functions.stddev-samp.t022" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "INTERVAL DAY, TIMESTAMP_NTZ" -note = "time-bucket with arguments of type INTERVAL DAY, TIMESTAMP_NTZ." +target = "INT" +note = "stddev_samp of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-bucket.toml#t003_types_3"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p022"] required = true [[obligation]] -id = "db.functions.time-bucket.t012" -form = "db.functions.time-bucket" -kind = "null_argument" -target = "INTERVAL DAY, TIMESTAMP" -note = "time-bucket with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-samp.t023" +form = "db.functions.stddev-samp" +kind = "type_combination" +target = "INT" +note = "stddev_samp of three small INT values, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-bucket.toml#t004_null_1"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p023"] required = true [[obligation]] -id = "db.functions.time-bucket.t013" -form = "db.functions.time-bucket" -kind = "null_argument" -target = "INTERVAL DAY, TIMESTAMP" -note = "time-bucket with NULL as argument 2." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-samp.t024" +form = "db.functions.stddev-samp" +kind = "type_combination" +target = "INT" +note = "stddev_samp of three small INT values, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-bucket.toml#t005_null_2"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p024"] required = true [[obligation]] -id = "db.functions.time-bucket.t014" -form = "db.functions.time-bucket" -kind = "error_parity" -target = "STRING, TIMESTAMP" -note = "time-bucket with a STRING value where the page documents INTERVAL DAY." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.stddev-samp.t025" +form = "db.functions.stddev-samp" +kind = "type_combination" +target = "INT" +note = "stddev_samp of three small INT values, repartitioned by REPARTITION(2). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-bucket.toml#t008_wrong_kind"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p025"] required = true [[obligation]] -id = "db.functions.time-diff.t001" -form = "db.functions.time-diff" +id = "db.functions.stddev-samp.t026" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "TIME, TIME" -note = "time_diff in hours. Hand-written for the phase-2 recording." +target = "INT" +note = "stddev_samp of three small INT values, repartitioned by REPARTITION(3). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-diff.hour.pa.hand.toml#p001"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p026"] required = true [[obligation]] -id = "db.functions.time-diff.t002" -form = "db.functions.time-diff" +id = "db.functions.stddev-samp.t027" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "TIME, TIME" -note = "time_diff with a lower-case unit. Hand-written for the phase-2 recording." +target = "INT" +note = "stddev_samp of three small INT values, repartitioned by REPARTITION(3, x1). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-diff.lower.pa.hand.toml#p001"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p027"] required = true [[obligation]] -id = "db.functions.time-diff.t003" -form = "db.functions.time-diff" +id = "db.functions.stddev-samp.t028" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "TIME, TIME" -note = "time_diff in milliseconds, truncating either way. Hand-written for the phase-2 recording." +target = "INT" +note = "stddev_samp of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-diff.micro.pa.hand.toml#p001"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p028"] required = true [[obligation]] -id = "db.functions.time-diff.t004" -form = "db.functions.time-diff" +id = "db.functions.stddev-samp.t029" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "TIME, TIME" -note = "time_diff with unit keywords, which Databricks reads as columns it cannot resolve. Hand-written for the phase-2 recording." +target = "INT" +note = "stddev_samp of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-diff.pt.hand.toml#p001"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p029"] required = true [[obligation]] -id = "db.functions.time-diff.t005" -form = "db.functions.time-diff" +id = "db.functions.stddev-samp.t030" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "TIME, TIME" -note = "time_diff in seconds with the unit as a string, truncating and negative. Hand-written for the phase-2 recording." +target = "INT" +note = "stddev_samp of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-diff.strings.pa.hand.toml#p001"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p030"] required = true [[obligation]] -id = "db.functions.time-from-micros.t001" -form = "db.functions.time-from-micros" +id = "db.functions.stddev-samp.t031" +form = "db.functions.stddev-samp" kind = "type_combination" target = "INT" -note = "time-from-micros with arguments of type INT." +note = "stddev_samp of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-from-micros.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p031"] required = true [[obligation]] -id = "db.functions.time-from-micros.t002" -form = "db.functions.time-from-micros" +id = "db.functions.stddev-samp.t032" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "BIGINT" -note = "time-from-micros with arguments of type BIGINT." +target = "INT" +note = "stddev_samp of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-from-micros.toml#t002_types_2"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p032"] required = true [[obligation]] -id = "db.functions.time-from-micros.t003" -form = "db.functions.time-from-micros" +id = "db.functions.stddev-samp.t033" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "SMALLINT" -note = "time-from-micros with arguments of type SMALLINT." +target = "INT" +note = "stddev_samp of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-from-micros.toml#t003_types_3"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p033"] required = true [[obligation]] -id = "db.functions.time-from-micros.t004" -form = "db.functions.time-from-micros" -kind = "null_argument" +id = "db.functions.stddev-samp.t034" +form = "db.functions.stddev-samp" +kind = "type_combination" target = "INT" -note = "time-from-micros with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +note = "stddev_samp of three small INT values, repartitioned by REPARTITION(2). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-from-micros.toml#t004_null_1"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p034"] required = true [[obligation]] -id = "db.functions.time-from-micros.t005" -form = "db.functions.time-from-micros" -kind = "error_parity" -target = "STRING" -note = "time-from-micros with a STRING value where the page documents INT." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.stddev-samp.t035" +form = "db.functions.stddev-samp" +kind = "type_combination" +target = "INT" +note = "stddev_samp of three small INT values, repartitioned by REPARTITION(3). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-from-micros.toml#t007_wrong_kind"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p035"] required = true [[obligation]] -id = "db.functions.time-from-millis.t001" -form = "db.functions.time-from-millis" +id = "db.functions.stddev-samp.t036" +form = "db.functions.stddev-samp" kind = "type_combination" target = "INT" -note = "time-from-millis with arguments of type INT." +note = "stddev_samp of three small INT values, repartitioned by REPARTITION(3, x1). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-from-millis.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p036"] required = true [[obligation]] -id = "db.functions.time-from-millis.t002" -form = "db.functions.time-from-millis" +id = "db.functions.stddev-samp.t037" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "BIGINT" -note = "time-from-millis with arguments of type BIGINT." +target = "DOUBLE" +note = "stddev_samp of eight DOUBLE values mixing 2^53 and 1e16 with small ones, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-from-millis.toml#t002_types_2"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p037"] required = true [[obligation]] -id = "db.functions.time-from-millis.t003" -form = "db.functions.time-from-millis" +id = "db.functions.stddev-samp.t038" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "SMALLINT" -note = "time-from-millis with arguments of type SMALLINT." +target = "DOUBLE" +note = "stddev_samp of eight DOUBLE values mixing 2^53 and 1e16 with small ones, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-from-millis.toml#t003_types_3"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p038"] required = true [[obligation]] -id = "db.functions.time-from-millis.t004" -form = "db.functions.time-from-millis" -kind = "null_argument" -target = "INT" -note = "time-from-millis with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-samp.t039" +form = "db.functions.stddev-samp" +kind = "type_combination" +target = "DOUBLE" +note = "stddev_samp of eight DOUBLE values mixing 2^53 and 1e16 with small ones, repartitioned by REPARTITION(2). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-from-millis.toml#t004_null_1"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p039"] required = true [[obligation]] -id = "db.functions.time-from-millis.t005" -form = "db.functions.time-from-millis" -kind = "error_parity" -target = "STRING" -note = "time-from-millis with a STRING value where the page documents INT." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.stddev-samp.t040" +form = "db.functions.stddev-samp" +kind = "type_combination" +target = "DOUBLE" +note = "stddev_samp of eight DOUBLE values mixing 2^53 and 1e16 with small ones, repartitioned by REPARTITION(3). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-from-millis.toml#t007_wrong_kind"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p040"] required = true [[obligation]] -id = "db.functions.time-from-seconds.t001" -form = "db.functions.time-from-seconds" +id = "db.functions.stddev-samp.t041" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "INT" -note = "time-from-seconds with arguments of type INT." +target = "DOUBLE" +note = "stddev_samp of eight DOUBLE values mixing 2^53 and 1e16 with small ones, repartitioned by REPARTITION(3, x1). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-from-seconds.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p041"] required = true [[obligation]] -id = "db.functions.time-from-seconds.t002" -form = "db.functions.time-from-seconds" +id = "db.functions.stddev-samp.t042" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "DECIMAL(10,2)" -note = "time-from-seconds with arguments of type DECIMAL(10,2)." +target = "DOUBLE" +note = "stddev_samp of eight DOUBLE values mixing 2^53 and 1e16 with small ones, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-from-seconds.toml#t002_types_2"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p042"] required = true [[obligation]] -id = "db.functions.time-from-seconds.t003" -form = "db.functions.time-from-seconds" +id = "db.functions.stddev-samp.t043" +form = "db.functions.stddev-samp" kind = "type_combination" target = "DOUBLE" -note = "time-from-seconds with arguments of type DOUBLE." +note = "stddev_samp of eight DOUBLE values mixing 2^53 and 1e16 with small ones, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-from-seconds.toml#t003_types_3"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p043"] required = true [[obligation]] -id = "db.functions.time-from-seconds.t004" -form = "db.functions.time-from-seconds" -kind = "null_argument" -target = "INT" -note = "time-from-seconds with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-samp.t044" +form = "db.functions.stddev-samp" +kind = "type_combination" +target = "DOUBLE" +note = "stddev_samp of eight DOUBLE values mixing 2^53 and 1e16 with small ones, repartitioned by REPARTITION(2). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-from-seconds.toml#t004_null_1"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p044"] required = true [[obligation]] -id = "db.functions.time-from-seconds.t005" -form = "db.functions.time-from-seconds" -kind = "error_parity" -target = "STRING" -note = "time-from-seconds with a STRING value where the page documents INT." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.stddev-samp.t045" +form = "db.functions.stddev-samp" +kind = "type_combination" +target = "DOUBLE" +note = "stddev_samp of eight DOUBLE values mixing 2^53 and 1e16 with small ones, repartitioned by REPARTITION(3). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-from-seconds.toml#t007_wrong_kind"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p045"] required = true [[obligation]] -id = "db.functions.time-to-micros.t001" -form = "db.functions.time-to-micros" +id = "db.functions.stddev-samp.t046" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "TIME" -note = "time-to-micros with arguments of type TIME." +target = "DOUBLE" +note = "stddev_samp of eight DOUBLE values mixing 2^53 and 1e16 with small ones, repartitioned by REPARTITION(3, x1). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-to-micros.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p046"] required = true [[obligation]] -id = "db.functions.time-to-micros.t002" -form = "db.functions.time-to-micros" -kind = "null_argument" -target = "TIME" -note = "time-to-micros with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-samp.t047" +form = "db.functions.stddev-samp" +kind = "type_combination" +target = "DOUBLE" +note = "stddev_samp of eight DOUBLE values mixing 2^53 and 1e16 with small ones, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-to-micros.toml#t002_null_1"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p047"] required = true [[obligation]] -id = "db.functions.time-to-micros.t003" -form = "db.functions.time-to-micros" -kind = "error_parity" -target = "STRING" -note = "time-to-micros with a STRING value where the page documents TIME." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.stddev-samp.t048" +form = "db.functions.stddev-samp" +kind = "type_combination" +target = "DOUBLE" +note = "stddev_samp of eight DOUBLE values mixing 2^53 and 1e16 with small ones, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-to-micros.toml#t003_wrong_kind"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p048"] required = true [[obligation]] -id = "db.functions.time-to-millis.t001" -form = "db.functions.time-to-millis" +id = "db.functions.stddev-samp.t049" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "TIME" -note = "time-to-millis with arguments of type TIME." +target = "DOUBLE" +note = "stddev_samp of eight DOUBLE values mixing 2^53 and 1e16 with small ones, repartitioned by REPARTITION(2). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-to-millis.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p049"] required = true [[obligation]] -id = "db.functions.time-to-millis.t002" -form = "db.functions.time-to-millis" -kind = "null_argument" -target = "TIME" -note = "time-to-millis with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-samp.t050" +form = "db.functions.stddev-samp" +kind = "type_combination" +target = "DOUBLE" +note = "stddev_samp of eight DOUBLE values mixing 2^53 and 1e16 with small ones, repartitioned by REPARTITION(3). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-to-millis.toml#t002_null_1"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p050"] required = true [[obligation]] -id = "db.functions.time-to-millis.t003" -form = "db.functions.time-to-millis" -kind = "error_parity" -target = "STRING" -note = "time-to-millis with a STRING value where the page documents TIME." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.stddev-samp.t051" +form = "db.functions.stddev-samp" +kind = "type_combination" +target = "DOUBLE" +note = "stddev_samp of eight DOUBLE values mixing 2^53 and 1e16 with small ones, repartitioned by REPARTITION(3, x1). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-to-millis.toml#t003_wrong_kind"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p051"] required = true [[obligation]] -id = "db.functions.time-to-seconds.t001" -form = "db.functions.time-to-seconds" +id = "db.functions.stddev-samp.t052" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "TIME" -note = "time-to-seconds with arguments of type TIME." +target = "DOUBLE" +note = "stddev_samp of six DOUBLE values sharing a large mean and spread under 2, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-to-seconds.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p052"] required = true [[obligation]] -id = "db.functions.time-to-seconds.t002" -form = "db.functions.time-to-seconds" -kind = "null_argument" -target = "TIME" -note = "time-to-seconds with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-samp.t053" +form = "db.functions.stddev-samp" +kind = "type_combination" +target = "DOUBLE" +note = "stddev_samp of six DOUBLE values sharing a large mean and spread under 2, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-to-seconds.toml#t002_null_1"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p053"] required = true [[obligation]] -id = "db.functions.time-to-seconds.t003" -form = "db.functions.time-to-seconds" -kind = "error_parity" -target = "STRING" -note = "time-to-seconds with a STRING value where the page documents TIME." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.stddev-samp.t054" +form = "db.functions.stddev-samp" +kind = "type_combination" +target = "DOUBLE" +note = "stddev_samp of six DOUBLE values sharing a large mean and spread under 2, repartitioned by REPARTITION(2). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-to-seconds.toml#t003_wrong_kind"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p054"] required = true [[obligation]] -id = "db.functions.time-trunc.t001" -form = "db.functions.time-trunc" +id = "db.functions.stddev-samp.t055" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "STRING, TIME" -note = "time-trunc with arguments of type STRING, TIME." +target = "DOUBLE" +note = "stddev_samp of six DOUBLE values sharing a large mean and spread under 2, repartitioned by REPARTITION(3). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-trunc.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p055"] required = true [[obligation]] -id = "db.functions.time-trunc.t002" -form = "db.functions.time-trunc" -kind = "null_argument" -target = "STRING, TIME" -note = "time-trunc with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-samp.t056" +form = "db.functions.stddev-samp" +kind = "type_combination" +target = "DOUBLE" +note = "stddev_samp of six DOUBLE values sharing a large mean and spread under 2, repartitioned by REPARTITION(3, x1). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-trunc.toml#t002_null_1"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p056"] required = true [[obligation]] -id = "db.functions.time-trunc.t003" -form = "db.functions.time-trunc" -kind = "null_argument" -target = "STRING, TIME" -note = "time-trunc with NULL as argument 2." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.stddev-samp.t057" +form = "db.functions.stddev-samp" +kind = "type_combination" +target = "DOUBLE" +note = "stddev_samp of six DOUBLE values sharing a large mean and spread under 2, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-trunc.toml#t003_null_2"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p057"] required = true [[obligation]] -id = "db.functions.time-trunc.t004" -form = "db.functions.time-trunc" -kind = "error_parity" -target = "ARRAY, TIME" -note = "time-trunc with a ARRAY value where the page documents STRING." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.stddev-samp.t058" +form = "db.functions.stddev-samp" +kind = "type_combination" +target = "DOUBLE" +note = "stddev_samp of six DOUBLE values sharing a large mean and spread under 2, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/time-trunc.toml#t006_wrong_kind"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p058"] required = true [[obligation]] -id = "db.functions.timediff.t001" -form = "db.functions.timediff" +id = "db.functions.stddev-samp.t059" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "TIMESTAMP, TIMESTAMP" -note = "timediff in hours and months. Hand-written for the phase-2 recording." +target = "DOUBLE" +note = "stddev_samp of six DOUBLE values sharing a large mean and spread under 2, repartitioned by REPARTITION(2). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timediff.pt.hand.toml#p001"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p059"] required = true [[obligation]] -id = "db.functions.timestamp.t001" -form = "db.functions.timestamp" +id = "db.functions.stddev-samp.t060" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "TIMESTAMP" -note = "timestamp with arguments of type TIMESTAMP." +target = "DOUBLE" +note = "stddev_samp of six DOUBLE values sharing a large mean and spread under 2, repartitioned by REPARTITION(3). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestamp.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p060"] required = true [[obligation]] -id = "db.functions.timestamp.t002" -form = "db.functions.timestamp" +id = "db.functions.stddev-samp.t061" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "INT" -note = "timestamp with arguments of type INT." +target = "DOUBLE" +note = "stddev_samp of six DOUBLE values sharing a large mean and spread under 2, repartitioned by REPARTITION(3, x1). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestamp.toml#t002_types_2"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p061"] required = true [[obligation]] -id = "db.functions.timestamp.t003" -form = "db.functions.timestamp" +id = "db.functions.stddev-samp.t062" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "TIMESTAMP_NTZ" -note = "timestamp with arguments of type TIMESTAMP_NTZ." +target = "INT" +note = "stddev_samp of 20000 generated DOUBLE values near 1e9 in 13 steps of 0.1, in id order on one partition. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestamp.toml#t003_types_3"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p062"] required = true [[obligation]] -id = "db.functions.timestamp.t004" -form = "db.functions.timestamp" +id = "db.functions.stddev-samp.t063" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "STRING" -note = "timestamp with arguments of type STRING." +target = "INT" +note = "stddev_samp of 20000 generated DOUBLE values near 1e9 in 13 steps of 0.1, in a permuted id order on one partition. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestamp.toml#t004_types_4"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p063"] required = true [[obligation]] -id = "db.functions.timestamp.t005" -form = "db.functions.timestamp" -kind = "null_argument" -target = "TIMESTAMP" -note = "timestamp with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" -reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestamp.toml#t005_null_1"] -required = true - -[[obligation]] -id = "db.functions.timestamp.t006" -form = "db.functions.timestamp" -kind = "error_parity" -target = "STRING" -note = "timestamp with a STRING value where the page documents TIMESTAMP." -catches = "a value returned where Databricks rejects the arguments, or another error kind" -reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestamp.toml#t008_wrong_kind"] -required = true - -[[obligation]] -id = "db.functions.timestamp-micros.t001" -form = "db.functions.timestamp-micros" +id = "db.functions.stddev-samp.t064" +form = "db.functions.stddev-samp" kind = "type_combination" target = "INT" -note = "timestamp-micros with arguments of type INT." +note = "stddev_samp of 20000 generated DOUBLE values near 1e9 in 13 steps of 0.1, in another permuted id order on one partition. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestamp-micros.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p064"] required = true [[obligation]] -id = "db.functions.timestamp-micros.t002" -form = "db.functions.timestamp-micros" +id = "db.functions.stddev-samp.t065" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "BIGINT" -note = "timestamp-micros with arguments of type BIGINT." +target = "INT" +note = "stddev_samp of 20000 generated DOUBLE values near 1e9 in 13 steps of 0.1, in reverse id order on one partition. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestamp-micros.toml#t002_types_2"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p065"] required = true [[obligation]] -id = "db.functions.timestamp-micros.t003" -form = "db.functions.timestamp-micros" +id = "db.functions.stddev-samp.t066" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "SMALLINT" -note = "timestamp-micros with arguments of type SMALLINT." +target = "INT" +note = "stddev_samp of 20000 generated DOUBLE values near 1e9 in 13 steps of 0.1, in the default layout. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestamp-micros.toml#t003_types_3"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p066"] required = true [[obligation]] -id = "db.functions.timestamp-micros.t004" -form = "db.functions.timestamp-micros" -kind = "null_argument" +id = "db.functions.stddev-samp.t067" +form = "db.functions.stddev-samp" +kind = "type_combination" target = "INT" -note = "timestamp-micros with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +note = "stddev_samp of 20000 generated DOUBLE values near 1e9 in 13 steps of 0.1, repartitioned by REPARTITION(4). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestamp-micros.toml#t004_null_1"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p067"] required = true [[obligation]] -id = "db.functions.timestamp-micros.t005" -form = "db.functions.timestamp-micros" -kind = "error_parity" -target = "STRING" -note = "timestamp-micros with a STRING value where the page documents INT." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.stddev-samp.t068" +form = "db.functions.stddev-samp" +kind = "type_combination" +target = "INT" +note = "stddev_samp of 20000 generated DOUBLE values near 1e9 in 13 steps of 0.1, repartitioned by REPARTITION(8, x). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestamp-micros.toml#t007_wrong_kind"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p068"] required = true [[obligation]] -id = "db.functions.timestamp-millis.t001" -form = "db.functions.timestamp-millis" +id = "db.functions.stddev-samp.t069" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "BIGINT" -note = "timestamp_millis past the years DuckDB holds. Hand-written for the phase-2 recording." +target = "INT" +note = "stddev_samp of 24 generated DOUBLE values near 1e9 in 13 steps of 0.1, on one partition. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestamp-millis.pb.hand.toml#p001"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p069"] required = true [[obligation]] -id = "db.functions.timestamp-millis.t002" -form = "db.functions.timestamp-millis" +id = "db.functions.stddev-samp.t070" +form = "db.functions.stddev-samp" kind = "type_combination" target = "INT" -note = "timestamp-millis with arguments of type INT." +note = "stddev_samp of 24 generated DOUBLE values near 1e9 in 13 steps of 0.1, in the default layout. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestamp-millis.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p070"] required = true [[obligation]] -id = "db.functions.timestamp-millis.t003" -form = "db.functions.timestamp-millis" +id = "db.functions.stddev-samp.t071" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "BIGINT" -note = "timestamp-millis with arguments of type BIGINT." +target = "INT" +note = "stddev_samp of 24 generated DOUBLE values near 1e9 in 13 steps of 0.1, repartitioned by REPARTITION(2). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestamp-millis.toml#t002_types_2"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p071"] required = true [[obligation]] -id = "db.functions.timestamp-millis.t004" -form = "db.functions.timestamp-millis" +id = "db.functions.stddev-samp.t072" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "SMALLINT" -note = "timestamp-millis with arguments of type SMALLINT." +target = "INT" +note = "stddev_samp of 24 generated DOUBLE values near 1e9 in 13 steps of 0.1, repartitioned by REPARTITION(3). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestamp-millis.toml#t003_types_3"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p072"] required = true [[obligation]] -id = "db.functions.timestamp-millis.t005" -form = "db.functions.timestamp-millis" -kind = "null_argument" +id = "db.functions.stddev-samp.t073" +form = "db.functions.stddev-samp" +kind = "type_combination" target = "INT" -note = "timestamp-millis with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +note = "stddev_samp of 24 generated DOUBLE values near 1e9 in 13 steps of 0.1, repartitioned by REPARTITION(8). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestamp-millis.toml#t004_null_1"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p073"] required = true [[obligation]] -id = "db.functions.timestamp-millis.t006" -form = "db.functions.timestamp-millis" -kind = "error_parity" -target = "STRING" -note = "timestamp-millis with a STRING value where the page documents INT." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.stddev-samp.t074" +form = "db.functions.stddev-samp" +kind = "type_combination" +target = "INT" +note = "stddev_samp of 24 generated DOUBLE values near 1e9 in 13 steps of 0.1, repartitioned by REPARTITION(3, x). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestamp-millis.toml#t007_wrong_kind"] +cases = ["cases/translation/functions/stddev-samp.families.pm.hand.toml#p074"] required = true [[obligation]] -id = "db.functions.timestamp-nanos.t001" -form = "db.functions.timestamp-nanos" +id = "db.functions.stddev-samp.t075" +form = "db.functions.stddev-samp" kind = "type_combination" target = "INT" -note = "timestamp-nanos with arguments of type INT." +note = "stddev_samp of the same three INT values in one of their six orders, whose streaming update rounds apart. Hand-written for the row-order recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestamp-nanos.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-samp.orders.pm.hand.toml#p001"] required = true [[obligation]] -id = "db.functions.timestamp-nanos.t002" -form = "db.functions.timestamp-nanos" +id = "db.functions.stddev-samp.t076" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "DECIMAL(10,2)" -note = "timestamp-nanos with arguments of type DECIMAL(10,2)." +target = "INT" +note = "stddev_samp of the same three INT values in one of their six orders, whose streaming update rounds apart. Hand-written for the row-order recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestamp-nanos.toml#t002_types_2"] +cases = ["cases/translation/functions/stddev-samp.orders.pm.hand.toml#p002"] required = true [[obligation]] -id = "db.functions.timestamp-nanos.t003" -form = "db.functions.timestamp-nanos" +id = "db.functions.stddev-samp.t077" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "BIGINT" -note = "timestamp-nanos with arguments of type BIGINT." +target = "INT" +note = "stddev_samp of the same three INT values in one of their six orders, whose streaming update rounds apart. Hand-written for the row-order recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestamp-nanos.toml#t003_types_3"] +cases = ["cases/translation/functions/stddev-samp.orders.pm.hand.toml#p003"] required = true [[obligation]] -id = "db.functions.timestamp-nanos.t004" -form = "db.functions.timestamp-nanos" +id = "db.functions.stddev-samp.t078" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "SMALLINT" -note = "timestamp-nanos with arguments of type SMALLINT." +target = "INT" +note = "stddev_samp of the same three INT values in one of their six orders, whose streaming update rounds apart. Hand-written for the row-order recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestamp-nanos.toml#t004_types_4"] +cases = ["cases/translation/functions/stddev-samp.orders.pm.hand.toml#p004"] required = true [[obligation]] -id = "db.functions.timestamp-nanos.t005" -form = "db.functions.timestamp-nanos" -kind = "null_argument" +id = "db.functions.stddev-samp.t079" +form = "db.functions.stddev-samp" +kind = "type_combination" target = "INT" -note = "timestamp-nanos with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +note = "stddev_samp of the same three INT values in one of their six orders, whose streaming update rounds apart. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestamp-nanos.toml#t005_null_1"] +cases = ["cases/translation/functions/stddev-samp.orders.pm.hand.toml#p005"] required = true [[obligation]] -id = "db.functions.timestamp-nanos.t006" -form = "db.functions.timestamp-nanos" -kind = "error_parity" -target = "STRING" -note = "timestamp-nanos with a STRING value where the page documents INT." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.stddev-samp.t080" +form = "db.functions.stddev-samp" +kind = "type_combination" +target = "INT" +note = "stddev_samp of the same three INT values in one of their six orders, whose streaming update rounds apart. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestamp-nanos.toml#t008_wrong_kind"] +cases = ["cases/translation/functions/stddev-samp.orders.pm.hand.toml#p006"] required = true [[obligation]] -id = "db.functions.timestamp-seconds.t001" -form = "db.functions.timestamp-seconds" +id = "db.functions.stddev-samp.t081" +form = "db.functions.stddev-samp" kind = "type_combination" target = "DOUBLE" -note = "timestamp_seconds of a large DOUBLE and of NaN. Hand-written for the phase-2 recording." +note = "stddev_samp of three DOUBLE values sharing a large mean and spread under 1, in one of their six orders. Hand-written for the row-order recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestamp-seconds.pb.hand.toml#p001"] +cases = ["cases/translation/functions/stddev-samp.orders.pm.hand.toml#p007"] required = true [[obligation]] -id = "db.functions.timestamp-seconds.t002" -form = "db.functions.timestamp-seconds" +id = "db.functions.stddev-samp.t082" +form = "db.functions.stddev-samp" kind = "type_combination" target = "DOUBLE" -note = "timestamp_seconds of a large DOUBLE and of NaN. Hand-written for the phase-2 recording." +note = "stddev_samp of three DOUBLE values sharing a large mean and spread under 1, in one of their six orders. Hand-written for the row-order recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestamp-seconds.pb.hand.toml#p002"] +cases = ["cases/translation/functions/stddev-samp.orders.pm.hand.toml#p008"] required = true [[obligation]] -id = "db.functions.timestamp-seconds.t003" -form = "db.functions.timestamp-seconds" +id = "db.functions.stddev-samp.t083" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "INT" -note = "timestamp-seconds with arguments of type INT." +target = "DOUBLE" +note = "stddev_samp of three DOUBLE values sharing a large mean and spread under 1, in one of their six orders. Hand-written for the row-order recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestamp-seconds.toml#t001_types_1"] +cases = ["cases/translation/functions/stddev-samp.orders.pm.hand.toml#p009"] required = true [[obligation]] -id = "db.functions.timestamp-seconds.t004" -form = "db.functions.timestamp-seconds" +id = "db.functions.stddev-samp.t084" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "DECIMAL(10,2)" -note = "timestamp-seconds with arguments of type DECIMAL(10,2)." +target = "DOUBLE" +note = "stddev_samp of three DOUBLE values sharing a large mean and spread under 1, in one of their six orders. Hand-written for the row-order recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestamp-seconds.toml#t002_types_2"] +cases = ["cases/translation/functions/stddev-samp.orders.pm.hand.toml#p010"] required = true [[obligation]] -id = "db.functions.timestamp-seconds.t005" -form = "db.functions.timestamp-seconds" +id = "db.functions.stddev-samp.t085" +form = "db.functions.stddev-samp" kind = "type_combination" target = "DOUBLE" -note = "timestamp-seconds with arguments of type DOUBLE." +note = "stddev_samp of three DOUBLE values sharing a large mean and spread under 1, in one of their six orders. Hand-written for the row-order recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestamp-seconds.toml#t003_types_3"] -required = true - -[[obligation]] -id = "db.functions.timestamp-seconds.t006" -form = "db.functions.timestamp-seconds" -kind = "null_argument" -target = "INT" -note = "timestamp-seconds with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" -reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestamp-seconds.toml#t004_null_1"] +cases = ["cases/translation/functions/stddev-samp.orders.pm.hand.toml#p011"] required = true [[obligation]] -id = "db.functions.timestamp-seconds.t007" -form = "db.functions.timestamp-seconds" -kind = "error_parity" -target = "STRING" -note = "timestamp-seconds with a STRING value where the page documents INT." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.stddev-samp.t086" +form = "db.functions.stddev-samp" +kind = "type_combination" +target = "DOUBLE" +note = "stddev_samp of three DOUBLE values sharing a large mean and spread under 1, in one of their six orders. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestamp-seconds.toml#t007_wrong_kind"] +cases = ["cases/translation/functions/stddev-samp.orders.pm.hand.toml#p012"] required = true [[obligation]] -id = "db.functions.timestampadd.t001" -form = "db.functions.timestampadd" +id = "db.functions.stddev-samp.t087" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "TIMESTAMP, INT" -note = "timestampadd of months from month ends and a leap day. Hand-written for the phase-2 recording." +target = "DOUBLE" +note = "stddev_samp of four DOUBLE values sharing a large mean, in one order per distinct streaming result. Hand-written for the row-order recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestampadd.pt.hand.toml#p001"] +cases = ["cases/translation/functions/stddev-samp.orders.pm.hand.toml#p013"] required = true [[obligation]] -id = "db.functions.timestampadd.t002" -form = "db.functions.timestampadd" +id = "db.functions.stddev-samp.t088" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "DATE, INT" -note = "timestampadd of years, quarters and weeks to dates. Hand-written for the phase-2 recording." +target = "DOUBLE" +note = "stddev_samp of four DOUBLE values sharing a large mean, in one order per distinct streaming result. Hand-written for the row-order recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestampadd.ptd.hand.toml#p001"] +cases = ["cases/translation/functions/stddev-samp.orders.pm.hand.toml#p014"] required = true [[obligation]] -id = "db.functions.timestampadd.t003" -form = "db.functions.timestampadd" +id = "db.functions.stddev-samp.t089" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "TIMESTAMP, INT" -note = "timestampadd of days, hours, seconds and microseconds. Hand-written for the phase-2 recording." +target = "DOUBLE" +note = "stddev_samp of four DOUBLE values sharing a large mean, in one order per distinct streaming result. Hand-written for the row-order recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestampadd.ptu.hand.toml#p001"] +cases = ["cases/translation/functions/stddev-samp.orders.pm.hand.toml#p015"] required = true [[obligation]] -id = "db.functions.timestampdiff.t001" -form = "db.functions.timestampdiff" +id = "db.functions.stddev-samp.t090" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "DATE, DATE" -note = "timestampdiff in months between month ends, a leap day and back. Hand-written for the phase-2 recording." +target = "INT" +note = "stddev-samp with arguments of type INT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestampdiff.pt.hand.toml#p001"] +cases = ["cases/translation/functions/stddev-samp.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.timestampdiff.t002" -form = "db.functions.timestampdiff" +id = "db.functions.stddev-samp.t091" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "TIMESTAMP, TIMESTAMP" -note = "timestampdiff in every unit below a month, with partial units. Hand-written for the phase-2 recording." +target = "DECIMAL(10,2)" +note = "stddev-samp with arguments of type DECIMAL(10,2)." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestampdiff.ptu.hand.toml#p001"] +cases = ["cases/translation/functions/stddev-samp.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.timestampdiff.t003" -form = "db.functions.timestampdiff" +id = "db.functions.stddev-samp.t092" +form = "db.functions.stddev-samp" kind = "type_combination" -target = "TIMESTAMP, TIMESTAMP" -note = "timestampdiff in years from a leap day, either way. Hand-written for the phase-2 recording." +target = "DOUBLE" +note = "stddev-samp with arguments of type DOUBLE." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/timestampdiff.pty.hand.toml#p001"] +cases = ["cases/translation/functions/stddev-samp.toml#t003_types_3"] required = true [[obligation]] -id = "db.functions.tinyint.t001" -form = "db.functions.tinyint" -kind = "type_combination" -target = "INT" -note = "tinyint with arguments of type INT." -catches = "the argument types read another way, or the result typed otherwise" -reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tinyint.toml#t001_types_1"] -required = true - -[[obligation]] -id = "db.functions.tinyint.t002" -form = "db.functions.tinyint" -kind = "type_combination" -target = "BIGINT" -note = "tinyint with arguments of type BIGINT." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.stddev-samp.t093" +form = "db.functions.stddev-samp" +kind = "null_argument" +target = "INT" +note = "stddev-samp with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tinyint.toml#t002_types_2"] +cases = ["cases/translation/functions/stddev-samp.toml#t004_null_1"] required = true [[obligation]] -id = "db.functions.tinyint.t003" -form = "db.functions.tinyint" -kind = "type_combination" +id = "db.functions.stddev-samp.t094" +form = "db.functions.stddev-samp" +kind = "error_parity" target = "STRING" -note = "tinyint with arguments of type STRING." -catches = "the argument types read another way, or the result typed otherwise" +note = "stddev-samp with a STRING value where the page documents INT." +catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tinyint.toml#t003_types_3"] +cases = ["cases/translation/functions/stddev-samp.toml#t007_wrong_kind"] required = true [[obligation]] -id = "db.functions.tinyint.t004" -form = "db.functions.tinyint" +id = "db.functions.str-to-map.t001" +form = "db.functions.str-to-map" kind = "type_combination" -target = "SMALLINT" -note = "tinyint with arguments of type SMALLINT." +target = "STRING" +note = "str-to-map with arguments of type STRING." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tinyint.toml#t004_types_4"] +cases = ["cases/translation/functions/str-to-map.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.tinyint.t005" -form = "db.functions.tinyint" +id = "db.functions.str-to-map.t002" +form = "db.functions.str-to-map" kind = "null_argument" -target = "INT" -note = "tinyint with NULL as argument 1." +target = "STRING" +note = "str-to-map with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tinyint.toml#t005_null_1"] +cases = ["cases/translation/functions/str-to-map.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.tinyint.t006" -form = "db.functions.tinyint" +id = "db.functions.str-to-map.t003" +form = "db.functions.str-to-map" kind = "error_parity" -target = "STRING" -note = "tinyint with a STRING value where the page documents INT." +target = "ARRAY" +note = "str-to-map with a ARRAY value where the page documents STRING." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tinyint.toml#t008_wrong_kind"] +cases = ["cases/translation/functions/str-to-map.toml#t005_wrong_kind"] required = true [[obligation]] -id = "db.functions.to-binary.t001" -form = "db.functions.to-binary" +id = "db.functions.string.t001" +form = "db.functions.string" kind = "type_combination" target = "STRING" -note = "to_binary of a non-ASCII character after an invalid one, a lone non-ASCII character and odd-length hex. Hand-written for the phase-2 recording." +note = "string with arguments of type STRING." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-binary.pc.hand.toml#p001"] +cases = ["cases/translation/functions/string.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.to-binary.t002" -form = "db.functions.to-binary" -kind = "type_combination" +id = "db.functions.string.t002" +form = "db.functions.string" +kind = "null_argument" target = "STRING" -note = "to_binary of a non-ASCII character after an invalid one, a lone non-ASCII character and odd-length hex. Hand-written for the phase-2 recording." -catches = "the argument types read another way, or the result typed otherwise" +note = "string with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-binary.pc.hand.toml#p002"] +cases = ["cases/translation/functions/string.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.to-binary.t003" -form = "db.functions.to-binary" -kind = "type_combination" -target = "STRING" -note = "to_binary of a non-ASCII character after an invalid one, a lone non-ASCII character and odd-length hex. Hand-written for the phase-2 recording." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.string.t003" +form = "db.functions.string" +kind = "error_parity" +target = "ARRAY" +note = "string with a ARRAY value where the page documents STRING." +catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-binary.pc.hand.toml#p003"] +cases = ["cases/translation/functions/string.toml#t005_wrong_kind"] required = true [[obligation]] -id = "db.functions.to-binary.t004" -form = "db.functions.to-binary" +id = "db.functions.string-agg.t001" +form = "db.functions.string-agg" kind = "type_combination" -target = "STRING" -note = "to_binary of a non-ASCII character after an invalid one, a lone non-ASCII character and odd-length hex. Hand-written for the phase-2 recording." +target = "STRING, STRING" +note = "string_agg ordered within each group. Hand-written for the phase-2 recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-binary.pc.hand.toml#p004"] +cases = ["cases/translation/functions/string-agg.np.hand.toml#p001"] required = true [[obligation]] -id = "db.functions.to-binary.t005" -form = "db.functions.to-binary" +id = "db.functions.struct.t001" +form = "db.functions.struct" kind = "type_combination" -target = "STRING, STRING" -note = "to_binary with the utf-8 and base64 formats. Hand-written for the phase-2 recording." +target = "INT, STRING" +note = "struct of an expression and an aliased column. Hand-written for the phase-2 recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-binary.pcf.hand.toml#p001"] +cases = ["cases/translation/functions/struct.expression.np.hand.toml#p001"] required = true [[obligation]] -id = "db.functions.to-binary.t006" -form = "db.functions.to-binary" +id = "db.functions.struct.t002" +form = "db.functions.struct" kind = "type_combination" -target = "STRING, STRING" -note = "to_binary with the utf-8 and base64 formats. Hand-written for the phase-2 recording." +target = "INT" +note = "struct with arguments of type INT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-binary.pcf.hand.toml#p002"] +cases = ["cases/translation/functions/struct.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.to-binary.t007" -form = "db.functions.to-binary" +id = "db.functions.struct.t003" +form = "db.functions.struct" kind = "type_combination" target = "STRING" -note = "to-binary with arguments of type STRING." +note = "struct with arguments of type STRING." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-binary.toml#t001_types_1"] +cases = ["cases/translation/functions/struct.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.to-binary.t008" -form = "db.functions.to-binary" +id = "db.functions.struct.t004" +form = "db.functions.struct" kind = "null_argument" -target = "STRING" -note = "to-binary with NULL as argument 1." +target = "INT" +note = "struct with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-binary.toml#t002_null_1"] +cases = ["cases/translation/functions/struct.toml#t003_null_1"] required = true [[obligation]] -id = "db.functions.to-binary.t009" -form = "db.functions.to-binary" +id = "db.functions.struct.t005" +form = "db.functions.struct" kind = "error_parity" -target = "ARRAY" -note = "to-binary with a ARRAY value where the page documents STRING." +target = "STRING" +note = "struct with a STRING value where the page documents INT." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-binary.toml#t005_wrong_kind"] +cases = ["cases/translation/functions/struct.toml#t006_wrong_kind"] required = true [[obligation]] -id = "db.functions.to-char.t001" -form = "db.functions.to-char" +id = "db.functions.struct.t006" +form = "db.functions.struct" kind = "type_combination" -target = "DECIMAL(10,2)" -note = "to_char of a DECIMAL with a format. Hand-written." +target = "INT, STRING" +note = "struct of two columns, fields named after them. Hand-written for the phase-2 recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-char.hand.toml#t001_number"] +cases = ["cases/translation/functions/struct.two.np.hand.toml#p001"] required = true [[obligation]] -id = "db.functions.to-char.t002" -form = "db.functions.to-char" +id = "db.functions.substr.substr.t001" +form = "db.functions.substr.substr" kind = "type_combination" -target = "DATE" -note = "to_char of a DATE with a format. Hand-written." +target = "STRING, BIGINT" +note = "substr at a BIGINT position past INT. Hand-written for the phase-2 recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-char.hand.toml#t002_date"] -required = true - -[[obligation]] -id = "db.functions.to-char.t003" -form = "db.functions.to-char" -kind = "null_argument" -target = "DECIMAL(10,2)" -note = "to_char of NULL. Hand-written." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" -reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-char.hand.toml#t003_null"] +cases = ["cases/translation/functions/substr.substr.pb.hand.toml#p001"] required = true [[obligation]] -id = "db.functions.to-char.t004" -form = "db.functions.to-char" +id = "db.functions.substr.substr.t002" +form = "db.functions.substr.substr" kind = "type_combination" -target = "INT" -note = "to-char with arguments of type INT, INT. Arguments 2 onward inlined as constants." +target = "STRING, INT" +note = "substr with arguments of type STRING, INT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-char.lit.toml#t001_types_1_lit"] +cases = ["cases/translation/functions/substr.substr.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.to-char.t005" -form = "db.functions.to-char" +id = "db.functions.substr.substr.t003" +form = "db.functions.substr.substr" kind = "type_combination" -target = "STRING" -note = "to-char with arguments of type STRING, INT. Arguments 2 onward inlined as constants." +target = "BINARY, INT" +note = "substr with arguments of type BINARY, INT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-char.lit.toml#t002_types_2_lit"] +cases = ["cases/translation/functions/substr.substr.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.to-char.t006" -form = "db.functions.to-char" +id = "db.functions.substr.substr.t004" +form = "db.functions.substr.substr" kind = "type_combination" -target = "BINARY" -note = "to-char with arguments of type BINARY, INT. Arguments 2 onward inlined as constants." +target = "STRING, BIGINT" +note = "substr with arguments of type STRING, BIGINT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-char.lit.toml#t003_types_3_lit"] +cases = ["cases/translation/functions/substr.substr.toml#t003_types_3"] required = true [[obligation]] -id = "db.functions.to-char.t007" -form = "db.functions.to-char" +id = "db.functions.substr.substr.t005" +form = "db.functions.substr.substr" kind = "type_combination" -target = "DECIMAL(10,2)" -note = "to-char with arguments of type DECIMAL(10,2), INT. Arguments 2 onward inlined as constants." +target = "STRING, SMALLINT" +note = "substr with arguments of type STRING, SMALLINT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-char.lit.toml#t004_types_4_lit"] +cases = ["cases/translation/functions/substr.substr.toml#t004_types_4"] required = true [[obligation]] -id = "db.functions.to-char.t008" -form = "db.functions.to-char" +id = "db.functions.substr.substr.t006" +form = "db.functions.substr.substr" kind = "null_argument" -target = "INT" -note = "to-char with NULL as argument 1. Arguments 2 onward inlined as constants." +target = "STRING, INT" +note = "substr with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-char.lit.toml#t005_null_1_lit"] +cases = ["cases/translation/functions/substr.substr.toml#t005_null_1"] required = true [[obligation]] -id = "db.functions.to-char.t009" -form = "db.functions.to-char" +id = "db.functions.substr.substr.t007" +form = "db.functions.substr.substr" kind = "null_argument" -target = "INT" -note = "to-char with NULL as argument 2. Arguments 2 onward inlined as constants." +target = "STRING, INT" +note = "substr with NULL as argument 2." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-char.lit.toml#t006_null_2_lit"] +cases = ["cases/translation/functions/substr.substr.toml#t006_null_2"] required = true [[obligation]] -id = "db.functions.to-char.t010" -form = "db.functions.to-char" +id = "db.functions.substr.substr.t008" +form = "db.functions.substr.substr" kind = "error_parity" -target = "STRING" -note = "to-char with a STRING value where the page documents INT. Arguments 2 onward inlined as constants." +target = "ARRAY, INT" +note = "substr with a ARRAY value where the page documents STRING." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-char.lit.toml#t011_wrong_kind_lit"] +cases = ["cases/translation/functions/substr.substr.toml#t011_wrong_kind"] required = true [[obligation]] -id = "db.functions.to-char.t011" -form = "db.functions.to-char" -kind = "type_combination" -target = "DATE" -note = "to_char of a date with a datetime pattern. Hand-written for the phase-2 recording." -catches = "the argument types read another way, or the result typed otherwise" -reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-char.pb.hand.toml#p001"] -required = true - -[[obligation]] -id = "db.functions.to-char.t012" -form = "db.functions.to-char" +id = "db.functions.substr.substr-from.t001" +form = "db.functions.substr.substr-from" kind = "type_combination" -target = "INT, INT" -note = "to-char with arguments of type INT, INT." +target = "STRING, INT" +note = "substr with arguments of type STRING, INT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-char.toml#t001_types_1"] +cases = ["cases/translation/functions/substr.substr-from.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.to-char.t013" -form = "db.functions.to-char" +id = "db.functions.substr.substr-from.t002" +form = "db.functions.substr.substr-from" kind = "type_combination" -target = "STRING, INT" -note = "to-char with arguments of type STRING, INT." +target = "BINARY, INT" +note = "substr with arguments of type BINARY, INT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-char.toml#t002_types_2"] +cases = ["cases/translation/functions/substr.substr-from.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.to-char.t014" -form = "db.functions.to-char" +id = "db.functions.substr.substr-from.t003" +form = "db.functions.substr.substr-from" kind = "type_combination" -target = "BINARY, INT" -note = "to-char with arguments of type BINARY, INT." +target = "STRING, BIGINT" +note = "substr with arguments of type STRING, BIGINT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-char.toml#t003_types_3"] +cases = ["cases/translation/functions/substr.substr-from.toml#t003_types_3"] required = true [[obligation]] -id = "db.functions.to-char.t015" -form = "db.functions.to-char" +id = "db.functions.substr.substr-from.t004" +form = "db.functions.substr.substr-from" kind = "type_combination" -target = "DECIMAL(10,2), INT" -note = "to-char with arguments of type DECIMAL(10,2), INT." +target = "STRING, SMALLINT" +note = "substr with arguments of type STRING, SMALLINT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-char.toml#t004_types_4"] +cases = ["cases/translation/functions/substr.substr-from.toml#t004_types_4"] required = true [[obligation]] -id = "db.functions.to-char.t016" -form = "db.functions.to-char" +id = "db.functions.substr.substr-from.t005" +form = "db.functions.substr.substr-from" kind = "null_argument" -target = "INT, INT" -note = "to-char with NULL as argument 1." +target = "STRING, INT" +note = "substr with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-char.toml#t005_null_1"] +cases = ["cases/translation/functions/substr.substr-from.toml#t005_null_1"] required = true [[obligation]] -id = "db.functions.to-char.t017" -form = "db.functions.to-char" +id = "db.functions.substr.substr-from.t006" +form = "db.functions.substr.substr-from" kind = "null_argument" -target = "INT, INT" -note = "to-char with NULL as argument 2." +target = "STRING, INT" +note = "substr with NULL as argument 2." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-char.toml#t006_null_2"] +cases = ["cases/translation/functions/substr.substr-from.toml#t006_null_2"] required = true [[obligation]] -id = "db.functions.to-char.t018" -form = "db.functions.to-char" +id = "db.functions.substr.substr-from.t007" +form = "db.functions.substr.substr-from" kind = "error_parity" -target = "STRING, INT" -note = "to-char with a STRING value where the page documents INT." +target = "ARRAY, INT" +note = "substr with a ARRAY value where the page documents STRING." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-char.toml#t011_wrong_kind"] +cases = ["cases/translation/functions/substr.substr-from.toml#t011_wrong_kind"] required = true [[obligation]] -id = "db.functions.to-csv.t001" -form = "db.functions.to-csv" +id = "db.functions.substring-index.t001" +form = "db.functions.substring-index" kind = "type_combination" -target = "STRUCT" -note = "to-csv with arguments of type STRUCT." +target = "STRING, STRING, INT" +note = "substring-index with arguments of type STRING, STRING, INT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-csv.toml#t001_types_1"] +cases = ["cases/translation/functions/substring-index.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.to-csv.t002" -form = "db.functions.to-csv" -kind = "null_argument" -target = "STRUCT" -note = "to-csv with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.substring-index.t002" +form = "db.functions.substring-index" +kind = "type_combination" +target = "BINARY, STRING, INT" +note = "substring-index with arguments of type BINARY, STRING, INT." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-csv.toml#t002_null_1"] +cases = ["cases/translation/functions/substring-index.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.to-csv.t003" -form = "db.functions.to-csv" -kind = "error_parity" -target = "STRING" -note = "to-csv with a STRING value where the page documents STRUCT." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.substring-index.t003" +form = "db.functions.substring-index" +kind = "type_combination" +target = "STRING, BINARY, INT" +note = "substring-index with arguments of type STRING, BINARY, INT." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-csv.toml#t003_wrong_kind"] +cases = ["cases/translation/functions/substring-index.toml#t003_types_3"] required = true [[obligation]] -id = "db.functions.to-date.t001" -form = "db.functions.to-date" +id = "db.functions.substring-index.t004" +form = "db.functions.substring-index" kind = "type_combination" -target = "STRING" -note = "to-date with arguments of type STRING." +target = "STRING, STRING, BIGINT" +note = "substring-index with arguments of type STRING, STRING, BIGINT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-date.toml#t001_types_1"] +cases = ["cases/translation/functions/substring-index.toml#t004_types_4"] required = true [[obligation]] -id = "db.functions.to-date.t002" -form = "db.functions.to-date" +id = "db.functions.substring-index.t005" +form = "db.functions.substring-index" kind = "null_argument" -target = "STRING" -note = "to-date with NULL as argument 1." +target = "STRING, STRING, INT" +note = "substring-index with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-date.toml#t002_null_1"] -required = true - -[[obligation]] -id = "db.functions.to-date.t003" -form = "db.functions.to-date" -kind = "error_parity" -target = "ARRAY" -note = "to-date with a ARRAY value where the page documents STRING." -catches = "a value returned where Databricks rejects the arguments, or another error kind" -reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-date.toml#t005_wrong_kind"] +cases = ["cases/translation/functions/substring-index.toml#t005_null_1"] required = true [[obligation]] -id = "db.functions.to-file.t001" -form = "db.functions.to-file" -kind = "type_combination" -target = "STRING" -note = "to-file with arguments of type STRING." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.substring-index.t006" +form = "db.functions.substring-index" +kind = "null_argument" +target = "STRING, STRING, INT" +note = "substring-index with NULL as argument 2." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-file.toml#t001_types_1"] +cases = ["cases/translation/functions/substring-index.toml#t006_null_2"] required = true [[obligation]] -id = "db.functions.to-file.t002" -form = "db.functions.to-file" +id = "db.functions.substring-index.t007" +form = "db.functions.substring-index" kind = "null_argument" -target = "STRING" -note = "to-file with NULL as argument 1." +target = "STRING, STRING, INT" +note = "substring-index with NULL as argument 3." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-file.toml#t002_null_1"] +cases = ["cases/translation/functions/substring-index.toml#t007_null_3"] required = true [[obligation]] -id = "db.functions.to-file.t003" -form = "db.functions.to-file" +id = "db.functions.substring-index.t008" +form = "db.functions.substring-index" kind = "error_parity" -target = "ARRAY" -note = "to-file with a ARRAY value where the page documents STRING." +target = "ARRAY, STRING, INT" +note = "substring-index with a ARRAY value where the page documents STRING." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-file.toml#t005_wrong_kind"] +cases = ["cases/translation/functions/substring-index.toml#t012_wrong_kind"] required = true [[obligation]] -id = "db.functions.to-geography.t001" -form = "db.functions.to-geography" +id = "db.functions.substring.substring.t001" +form = "db.functions.substring.substring" kind = "type_combination" -target = "STRING" -note = "to-geography with arguments of type STRING." +target = "STRING, INT" +note = "substring with arguments of type STRING, INT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-geography.toml#t001_types_1"] +cases = ["cases/translation/functions/substring.substring.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.to-geography.t002" -form = "db.functions.to-geography" +id = "db.functions.substring.substring.t002" +form = "db.functions.substring.substring" kind = "type_combination" -target = "BINARY" -note = "to-geography with arguments of type BINARY." +target = "BINARY, INT" +note = "substring with arguments of type BINARY, INT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-geography.toml#t002_types_2"] -required = true - -[[obligation]] -id = "db.functions.to-geography.t003" -form = "db.functions.to-geography" -kind = "null_argument" -target = "STRING" -note = "to-geography with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" -reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-geography.toml#t003_null_1"] -required = true - -[[obligation]] -id = "db.functions.to-geography.t004" -form = "db.functions.to-geography" -kind = "error_parity" -target = "ARRAY" -note = "to-geography with a ARRAY value where the page documents STRING." -catches = "a value returned where Databricks rejects the arguments, or another error kind" -reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-geography.toml#t006_wrong_kind"] +cases = ["cases/translation/functions/substring.substring.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.to-geometry.t001" -form = "db.functions.to-geometry" +id = "db.functions.substring.substring.t003" +form = "db.functions.substring.substring" kind = "type_combination" -target = "STRING" -note = "to-geometry with arguments of type STRING." +target = "STRING, BIGINT" +note = "substring with arguments of type STRING, BIGINT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-geometry.toml#t001_types_1"] +cases = ["cases/translation/functions/substring.substring.toml#t003_types_3"] required = true [[obligation]] -id = "db.functions.to-geometry.t002" -form = "db.functions.to-geometry" +id = "db.functions.substring.substring.t004" +form = "db.functions.substring.substring" kind = "type_combination" -target = "BINARY" -note = "to-geometry with arguments of type BINARY." +target = "STRING, SMALLINT" +note = "substring with arguments of type STRING, SMALLINT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-geometry.toml#t002_types_2"] +cases = ["cases/translation/functions/substring.substring.toml#t004_types_4"] required = true [[obligation]] -id = "db.functions.to-geometry.t003" -form = "db.functions.to-geometry" +id = "db.functions.substring.substring.t005" +form = "db.functions.substring.substring" kind = "null_argument" -target = "STRING" -note = "to-geometry with NULL as argument 1." +target = "STRING, INT" +note = "substring with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-geometry.toml#t003_null_1"] +cases = ["cases/translation/functions/substring.substring.toml#t005_null_1"] required = true [[obligation]] -id = "db.functions.to-geometry.t004" -form = "db.functions.to-geometry" -kind = "error_parity" -target = "ARRAY" -note = "to-geometry with a ARRAY value where the page documents STRING." -catches = "a value returned where Databricks rejects the arguments, or another error kind" -reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-geometry.toml#t006_wrong_kind"] -required = true - -[[obligation]] -id = "db.functions.to-json.t001" -form = "db.functions.to-json" -kind = "type_combination" -target = "STRUCT" -note = "to-json with arguments of type STRUCT." -catches = "the argument types read another way, or the result typed otherwise" -reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-json.toml#t001_types_1"] -required = true - -[[obligation]] -id = "db.functions.to-json.t002" -form = "db.functions.to-json" -kind = "type_combination" -target = "VARIANT" -note = "to-json with arguments of type VARIANT." -catches = "the argument types read another way, or the result typed otherwise" -reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-json.toml#t002_types_2"] -required = true - -[[obligation]] -id = "db.functions.to-json.t003" -form = "db.functions.to-json" +id = "db.functions.substring.substring.t006" +form = "db.functions.substring.substring" kind = "null_argument" -target = "STRUCT" -note = "to-json with NULL as argument 1." +target = "STRING, INT" +note = "substring with NULL as argument 2." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-json.toml#t003_null_1"] +cases = ["cases/translation/functions/substring.substring.toml#t006_null_2"] required = true [[obligation]] -id = "db.functions.to-json.t004" -form = "db.functions.to-json" +id = "db.functions.substring.substring.t007" +form = "db.functions.substring.substring" kind = "error_parity" -target = "STRING" -note = "to-json with a STRING value where the page documents STRUCT." +target = "ARRAY, INT" +note = "substring with a ARRAY value where the page documents STRING." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-json.toml#t004_wrong_kind"] +cases = ["cases/translation/functions/substring.substring.toml#t011_wrong_kind"] required = true [[obligation]] -id = "db.functions.to-number.t001" -form = "db.functions.to-number" +id = "db.functions.substring.substring-from.t001" +form = "db.functions.substring.substring-from" kind = "type_combination" -target = "STRING" -note = "to_number of formatted strings. Hand-written." +target = "STRING, INT" +note = "substring with arguments of type STRING, INT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-number.hand.toml#t001_format"] +cases = ["cases/translation/functions/substring.substring-from.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.to-number.t002" -form = "db.functions.to-number" -kind = "error_parity" -target = "STRING" -note = "to_number of a string that does not match. Hand-written." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.substring.substring-from.t002" +form = "db.functions.substring.substring-from" +kind = "type_combination" +target = "BINARY, INT" +note = "substring with arguments of type BINARY, INT." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-number.hand.toml#t002_bad"] +cases = ["cases/translation/functions/substring.substring-from.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.to-number.t003" -form = "db.functions.to-number" -kind = "null_argument" -target = "STRING" -note = "to_number of NULL. Hand-written." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.substring.substring-from.t003" +form = "db.functions.substring.substring-from" +kind = "type_combination" +target = "STRING, BIGINT" +note = "substring with arguments of type STRING, BIGINT." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-number.hand.toml#t003_null"] +cases = ["cases/translation/functions/substring.substring-from.toml#t003_types_3"] required = true [[obligation]] -id = "db.functions.to-number.t004" -form = "db.functions.to-number" +id = "db.functions.substring.substring-from.t004" +form = "db.functions.substring.substring-from" kind = "type_combination" -target = "STRING" -note = "to-number with arguments of type STRING, STRING. Arguments 2 onward inlined as constants." +target = "STRING, SMALLINT" +note = "substring with arguments of type STRING, SMALLINT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-number.lit.toml#t001_types_1_lit"] +cases = ["cases/translation/functions/substring.substring-from.toml#t004_types_4"] required = true [[obligation]] -id = "db.functions.to-number.t005" -form = "db.functions.to-number" +id = "db.functions.substring.substring-from.t005" +form = "db.functions.substring.substring-from" kind = "null_argument" -target = "STRING" -note = "to-number with NULL as argument 1. Arguments 2 onward inlined as constants." +target = "STRING, INT" +note = "substring with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-number.lit.toml#t002_null_1_lit"] +cases = ["cases/translation/functions/substring.substring-from.toml#t005_null_1"] required = true [[obligation]] -id = "db.functions.to-number.t006" -form = "db.functions.to-number" +id = "db.functions.substring.substring-from.t006" +form = "db.functions.substring.substring-from" kind = "null_argument" -target = "STRING" -note = "to-number with NULL as argument 2. Arguments 2 onward inlined as constants." +target = "STRING, INT" +note = "substring with NULL as argument 2." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-number.lit.toml#t003_null_2_lit"] +cases = ["cases/translation/functions/substring.substring-from.toml#t006_null_2"] required = true [[obligation]] -id = "db.functions.to-number.t007" -form = "db.functions.to-number" +id = "db.functions.substring.substring-from.t007" +form = "db.functions.substring.substring-from" kind = "error_parity" -target = "ARRAY" -note = "to-number with a ARRAY value where the page documents STRING. Arguments 2 onward inlined as constants." +target = "ARRAY, INT" +note = "substring with a ARRAY value where the page documents STRING." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-number.lit.toml#t008_wrong_kind_lit"] +cases = ["cases/translation/functions/substring.substring-from.toml#t011_wrong_kind"] required = true [[obligation]] -id = "db.functions.to-number.t008" -form = "db.functions.to-number" +id = "db.functions.sum.t001" +form = "db.functions.sum" kind = "type_combination" -target = "STRING, STRING" -note = "to-number with arguments of type STRING, STRING." +target = "DOUBLE" +note = "sum of DOUBLE values: whole multiples of one power of two, then values whose total depends on the order of addition. Hand-written for the phase-2 recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-number.toml#t001_types_1"] +cases = ["cases/translation/functions/sum.pa.hand.toml#p001"] required = true [[obligation]] -id = "db.functions.to-number.t009" -form = "db.functions.to-number" -kind = "null_argument" -target = "STRING, STRING" -note = "to-number with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.sum.t002" +form = "db.functions.sum" +kind = "type_combination" +target = "DOUBLE" +note = "sum of DOUBLE values: whole multiples of one power of two, then values whose total depends on the order of addition. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-number.toml#t002_null_1"] +cases = ["cases/translation/functions/sum.pa.hand.toml#p002"] required = true [[obligation]] -id = "db.functions.to-number.t010" -form = "db.functions.to-number" -kind = "null_argument" -target = "STRING, STRING" -note = "to-number with NULL as argument 2." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.sum.t003" +form = "db.functions.sum" +kind = "type_combination" +target = "DOUBLE" +note = "sum of DOUBLE values: whole multiples of one power of two, then values whose total depends on the order of addition. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-number.toml#t003_null_2"] +cases = ["cases/translation/functions/sum.pa.hand.toml#p003"] required = true [[obligation]] -id = "db.functions.to-number.t011" -form = "db.functions.to-number" -kind = "error_parity" -target = "ARRAY, STRING" -note = "to-number with a ARRAY value where the page documents STRING." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.sum.t004" +form = "db.functions.sum" +kind = "type_combination" +target = "INT" +note = "sum with arguments of type INT." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-number.toml#t008_wrong_kind"] +cases = ["cases/translation/functions/sum.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.to-protobuf.t001" -form = "db.functions.to-protobuf" +id = "db.functions.sum.t005" +form = "db.functions.sum" kind = "type_combination" -target = "STRUCT, STRING" -note = "to-protobuf with arguments of type STRUCT, STRING." +target = "INTERVAL DAY" +note = "sum with arguments of type INTERVAL DAY." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-protobuf.toml#t001_types_1"] +cases = ["cases/translation/functions/sum.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.to-protobuf.t002" -form = "db.functions.to-protobuf" -kind = "null_argument" -target = "STRUCT, STRING" -note = "to-protobuf with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.sum.t006" +form = "db.functions.sum" +kind = "type_combination" +target = "DECIMAL(10,2)" +note = "sum with arguments of type DECIMAL(10,2)." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-protobuf.toml#t002_null_1"] +cases = ["cases/translation/functions/sum.toml#t003_types_3"] required = true [[obligation]] -id = "db.functions.to-protobuf.t003" -form = "db.functions.to-protobuf" +id = "db.functions.sum.t007" +form = "db.functions.sum" +kind = "type_combination" +target = "INTERVAL YEAR TO MONTH" +note = "sum with arguments of type INTERVAL YEAR TO MONTH." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/sum.toml#t004_types_4"] +required = true + +[[obligation]] +id = "db.functions.sum.t008" +form = "db.functions.sum" kind = "null_argument" -target = "STRUCT, STRING" -note = "to-protobuf with NULL as argument 2." +target = "INT" +note = "sum with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-protobuf.toml#t003_null_2"] +cases = ["cases/translation/functions/sum.toml#t005_null_1"] required = true [[obligation]] -id = "db.functions.to-protobuf.t004" -form = "db.functions.to-protobuf" +id = "db.functions.sum.t009" +form = "db.functions.sum" kind = "error_parity" -target = "STRING, STRING" -note = "to-protobuf with a STRING value where the page documents STRUCT." +target = "STRING" +note = "sum with a STRING value where the page documents INT." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-protobuf.toml#t006_wrong_kind"] +cases = ["cases/translation/functions/sum.toml#t008_wrong_kind"] required = true [[obligation]] -id = "db.functions.to-time.t001" -form = "db.functions.to-time" +id = "db.functions.table-changes.t001" +form = "db.functions.table-changes" kind = "type_combination" -target = "STRING" -note = "to-time with arguments of type STRING." +target = "STRING, INT" +note = "table-changes with arguments of type STRING, INT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-time.toml#t001_types_1"] +cases = ["cases/translation/functions/table-changes.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.to-time.t002" -form = "db.functions.to-time" -kind = "null_argument" -target = "STRING" -note = "to-time with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" -reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-time.toml#t002_null_1"] -required = true - -[[obligation]] -id = "db.functions.to-time.t003" -form = "db.functions.to-time" -kind = "error_parity" -target = "ARRAY" -note = "to-time with a ARRAY value where the page documents STRING." -catches = "a value returned where Databricks rejects the arguments, or another error kind" -reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-time.toml#t005_wrong_kind"] -required = true - -[[obligation]] -id = "db.functions.to-timestamp.t001" -form = "db.functions.to-timestamp" +id = "db.functions.table-changes.t002" +form = "db.functions.table-changes" kind = "type_combination" -target = "INT" -note = "to-timestamp with arguments of type INT." +target = "STRING, TIMESTAMP" +note = "table-changes with arguments of type STRING, TIMESTAMP." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-timestamp.toml#t001_types_1"] +cases = ["cases/translation/functions/table-changes.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.to-timestamp.t002" -form = "db.functions.to-timestamp" +id = "db.functions.table-changes.t003" +form = "db.functions.table-changes" kind = "type_combination" -target = "STRING" -note = "to-timestamp with arguments of type STRING." +target = "STRING, BIGINT" +note = "table-changes with arguments of type STRING, BIGINT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-timestamp.toml#t002_types_2"] +cases = ["cases/translation/functions/table-changes.toml#t003_types_3"] required = true [[obligation]] -id = "db.functions.to-timestamp.t003" -form = "db.functions.to-timestamp" +id = "db.functions.table-changes.t004" +form = "db.functions.table-changes" kind = "type_combination" -target = "DATE" -note = "to-timestamp with arguments of type DATE." +target = "STRING, TIMESTAMP_NTZ" +note = "table-changes with arguments of type STRING, TIMESTAMP_NTZ." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-timestamp.toml#t003_types_3"] +cases = ["cases/translation/functions/table-changes.toml#t004_types_4"] required = true [[obligation]] -id = "db.functions.to-timestamp.t004" -form = "db.functions.to-timestamp" -kind = "type_combination" -target = "TIMESTAMP" -note = "to-timestamp with arguments of type TIMESTAMP." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.table-changes.t005" +form = "db.functions.table-changes" +kind = "null_argument" +target = "STRING, INT" +note = "table-changes with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-timestamp.toml#t004_types_4"] +cases = ["cases/translation/functions/table-changes.toml#t005_null_1"] required = true [[obligation]] -id = "db.functions.to-timestamp.t005" -form = "db.functions.to-timestamp" +id = "db.functions.table-changes.t006" +form = "db.functions.table-changes" kind = "null_argument" -target = "INT" -note = "to-timestamp with NULL as argument 1." +target = "STRING, INT" +note = "table-changes with NULL as argument 2." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-timestamp.toml#t005_null_1"] +cases = ["cases/translation/functions/table-changes.toml#t006_null_2"] required = true [[obligation]] -id = "db.functions.to-timestamp.t006" -form = "db.functions.to-timestamp" +id = "db.functions.table-changes.t007" +form = "db.functions.table-changes" kind = "error_parity" -target = "STRING" -note = "to-timestamp with a STRING value where the page documents INT." +target = "ARRAY, INT" +note = "table-changes with a ARRAY value where the page documents STRING." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-timestamp.toml#t008_wrong_kind"] -required = true - -[[obligation]] -id = "db.functions.to-timestamp-ltz.t001" -form = "db.functions.to-timestamp-ltz" -kind = "type_combination" -target = "STRING" -note = "to_timestamp_ltz of plain timestamp text. Hand-written for the phase-2 recording." -catches = "the argument types read another way, or the result typed otherwise" -reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-timestamp-ltz.pc.hand.toml#p001"] +cases = ["cases/translation/functions/table-changes.toml#t011_wrong_kind"] required = true [[obligation]] -id = "db.functions.to-timestamp-ltz.t002" -form = "db.functions.to-timestamp-ltz" +id = "db.functions.tan.t001" +form = "db.functions.tan" kind = "type_combination" target = "INT" -note = "to-timestamp-ltz with arguments of type INT." -catches = "the argument types read another way, or the result typed otherwise" -reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-timestamp-ltz.toml#t001_types_1"] -required = true - -[[obligation]] -id = "db.functions.to-timestamp-ltz.t003" -form = "db.functions.to-timestamp-ltz" -kind = "type_combination" -target = "STRING" -note = "to-timestamp-ltz with arguments of type STRING." +note = "tan with arguments of type INT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-timestamp-ltz.toml#t002_types_2"] +cases = ["cases/translation/functions/tan.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.to-timestamp-ltz.t004" -form = "db.functions.to-timestamp-ltz" +id = "db.functions.tan.t002" +form = "db.functions.tan" kind = "type_combination" -target = "DATE" -note = "to-timestamp-ltz with arguments of type DATE." +target = "DECIMAL(10,2)" +note = "tan with arguments of type DECIMAL(10,2)." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-timestamp-ltz.toml#t003_types_3"] +cases = ["cases/translation/functions/tan.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.to-timestamp-ltz.t005" -form = "db.functions.to-timestamp-ltz" +id = "db.functions.tan.t003" +form = "db.functions.tan" kind = "type_combination" -target = "TIMESTAMP" -note = "to-timestamp-ltz with arguments of type TIMESTAMP." +target = "DOUBLE" +note = "tan with arguments of type DOUBLE." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-timestamp-ltz.toml#t004_types_4"] +cases = ["cases/translation/functions/tan.toml#t003_types_3"] required = true [[obligation]] -id = "db.functions.to-timestamp-ltz.t006" -form = "db.functions.to-timestamp-ltz" +id = "db.functions.tan.t004" +form = "db.functions.tan" kind = "null_argument" target = "INT" -note = "to-timestamp-ltz with NULL as argument 1." +note = "tan with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-timestamp-ltz.toml#t005_null_1"] +cases = ["cases/translation/functions/tan.toml#t004_null_1"] required = true [[obligation]] -id = "db.functions.to-timestamp-ltz.t007" -form = "db.functions.to-timestamp-ltz" +id = "db.functions.tan.t005" +form = "db.functions.tan" kind = "error_parity" target = "STRING" -note = "to-timestamp-ltz with a STRING value where the page documents INT." +note = "tan with a STRING value where the page documents INT." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-timestamp-ltz.toml#t008_wrong_kind"] +cases = ["cases/translation/functions/tan.toml#t007_wrong_kind"] required = true [[obligation]] -id = "db.functions.to-timestamp-ntz.t001" -form = "db.functions.to-timestamp-ntz" +id = "db.functions.tanh.t001" +form = "db.functions.tanh" kind = "type_combination" -target = "STRING" -note = "to_timestamp_ntz of plain timestamp and date text. Hand-written for the phase-2 recording." +target = "INT" +note = "tanh with arguments of type INT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-timestamp-ntz.pc.hand.toml#p001"] +cases = ["cases/translation/functions/tanh.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.to-timestamp-ntz.t002" -form = "db.functions.to-timestamp-ntz" +id = "db.functions.tanh.t002" +form = "db.functions.tanh" kind = "type_combination" -target = "STRING" -note = "to-timestamp-ntz with arguments of type STRING." +target = "DECIMAL(10,2)" +note = "tanh with arguments of type DECIMAL(10,2)." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-timestamp-ntz.toml#t001_types_1"] +cases = ["cases/translation/functions/tanh.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.to-timestamp-ntz.t003" -form = "db.functions.to-timestamp-ntz" +id = "db.functions.tanh.t003" +form = "db.functions.tanh" kind = "type_combination" -target = "DATE" -note = "to-timestamp-ntz with arguments of type DATE." +target = "DOUBLE" +note = "tanh with arguments of type DOUBLE." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-timestamp-ntz.toml#t002_types_2"] +cases = ["cases/translation/functions/tanh.toml#t003_types_3"] required = true [[obligation]] -id = "db.functions.to-timestamp-ntz.t004" -form = "db.functions.to-timestamp-ntz" -kind = "type_combination" -target = "TIMESTAMP" -note = "to-timestamp-ntz with arguments of type TIMESTAMP." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.tanh.t004" +form = "db.functions.tanh" +kind = "null_argument" +target = "INT" +note = "tanh with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-timestamp-ntz.toml#t003_types_3"] +cases = ["cases/translation/functions/tanh.toml#t004_null_1"] required = true [[obligation]] -id = "db.functions.to-timestamp-ntz.t005" -form = "db.functions.to-timestamp-ntz" +id = "db.functions.tanh.t005" +form = "db.functions.tanh" +kind = "error_parity" +target = "STRING" +note = "tanh with a STRING value where the page documents INT." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/tanh.toml#t007_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.theta-difference.t001" +form = "db.functions.theta-difference" kind = "type_combination" -target = "TIMESTAMP_NTZ" -note = "to-timestamp-ntz with arguments of type TIMESTAMP_NTZ." +target = "BINARY, BINARY" +note = "theta-difference with arguments of type BINARY, BINARY." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-timestamp-ntz.toml#t004_types_4"] +cases = ["cases/translation/functions/theta-difference.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.to-timestamp-ntz.t006" -form = "db.functions.to-timestamp-ntz" +id = "db.functions.theta-difference.t002" +form = "db.functions.theta-difference" kind = "null_argument" -target = "STRING" -note = "to-timestamp-ntz with NULL as argument 1." +target = "BINARY, BINARY" +note = "theta-difference with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-timestamp-ntz.toml#t005_null_1"] +cases = ["cases/translation/functions/theta-difference.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.to-timestamp-ntz.t007" -form = "db.functions.to-timestamp-ntz" +id = "db.functions.theta-difference.t003" +form = "db.functions.theta-difference" +kind = "null_argument" +target = "BINARY, BINARY" +note = "theta-difference with NULL as argument 2." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/theta-difference.toml#t003_null_2"] +required = true + +[[obligation]] +id = "db.functions.theta-difference.t004" +form = "db.functions.theta-difference" kind = "error_parity" -target = "ARRAY" -note = "to-timestamp-ntz with a ARRAY value where the page documents STRING." +target = "STRING, BINARY" +note = "theta-difference with a STRING value where the page documents BINARY." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-timestamp-ntz.toml#t008_wrong_kind"] +cases = ["cases/translation/functions/theta-difference.toml#t006_wrong_kind"] required = true [[obligation]] -id = "db.functions.to-unix-timestamp.t001" -form = "db.functions.to-unix-timestamp" +id = "db.functions.theta-intersection.t001" +form = "db.functions.theta-intersection" kind = "type_combination" -target = "STRING" -note = "to-unix-timestamp with arguments of type STRING." +target = "BINARY, BINARY" +note = "theta-intersection with arguments of type BINARY, BINARY." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-unix-timestamp.toml#t001_types_1"] +cases = ["cases/translation/functions/theta-intersection.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.to-unix-timestamp.t002" -form = "db.functions.to-unix-timestamp" +id = "db.functions.theta-intersection.t002" +form = "db.functions.theta-intersection" kind = "null_argument" -target = "STRING" -note = "to-unix-timestamp with NULL as argument 1." +target = "BINARY, BINARY" +note = "theta-intersection with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-unix-timestamp.toml#t002_null_1"] +cases = ["cases/translation/functions/theta-intersection.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.to-unix-timestamp.t003" -form = "db.functions.to-unix-timestamp" -kind = "error_parity" -target = "ARRAY" -note = "to-unix-timestamp with a ARRAY value where the page documents STRING." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.theta-intersection.t003" +form = "db.functions.theta-intersection" +kind = "null_argument" +target = "BINARY, BINARY" +note = "theta-intersection with NULL as argument 2." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-unix-timestamp.toml#t005_wrong_kind"] +cases = ["cases/translation/functions/theta-intersection.toml#t003_null_2"] required = true [[obligation]] -id = "db.functions.to-utc-timestamp.t001" -form = "db.functions.to-utc-timestamp" -kind = "type_combination" -target = "TIMESTAMP, STRING" -note = "to-utc-timestamp with arguments of type TIMESTAMP, STRING." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.theta-intersection.t004" +form = "db.functions.theta-intersection" +kind = "error_parity" +target = "STRING, BINARY" +note = "theta-intersection with a STRING value where the page documents BINARY." +catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-utc-timestamp.toml#t001_types_1"] +cases = ["cases/translation/functions/theta-intersection.toml#t006_wrong_kind"] required = true [[obligation]] -id = "db.functions.to-utc-timestamp.t002" -form = "db.functions.to-utc-timestamp" +id = "db.functions.theta-intersection-agg.t001" +form = "db.functions.theta-intersection-agg" kind = "type_combination" -target = "TIMESTAMP_NTZ, STRING" -note = "to-utc-timestamp with arguments of type TIMESTAMP_NTZ, STRING." +target = "BINARY" +note = "theta-intersection-agg with arguments of type BINARY." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-utc-timestamp.toml#t002_types_2"] -required = true - -[[obligation]] -id = "db.functions.to-utc-timestamp.t003" -form = "db.functions.to-utc-timestamp" -kind = "null_argument" -target = "TIMESTAMP, STRING" -note = "to-utc-timestamp with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" -reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-utc-timestamp.toml#t003_null_1"] +cases = ["cases/translation/functions/theta-intersection-agg.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.to-utc-timestamp.t004" -form = "db.functions.to-utc-timestamp" +id = "db.functions.theta-intersection-agg.t002" +form = "db.functions.theta-intersection-agg" kind = "null_argument" -target = "TIMESTAMP, STRING" -note = "to-utc-timestamp with NULL as argument 2." +target = "BINARY" +note = "theta-intersection-agg with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-utc-timestamp.toml#t004_null_2"] +cases = ["cases/translation/functions/theta-intersection-agg.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.to-utc-timestamp.t005" -form = "db.functions.to-utc-timestamp" +id = "db.functions.theta-intersection-agg.t003" +form = "db.functions.theta-intersection-agg" kind = "error_parity" -target = "STRING, STRING" -note = "to-utc-timestamp with a STRING value where the page documents TIMESTAMP." +target = "STRING" +note = "theta-intersection-agg with a STRING value where the page documents BINARY." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-utc-timestamp.toml#t009_wrong_kind"] -required = true - -[[obligation]] -id = "db.functions.to-varchar.t001" -form = "db.functions.to-varchar" -kind = "type_combination" -target = "DECIMAL(10,2)" -note = "to_varchar of a DECIMAL with a format. Hand-written." -catches = "the argument types read another way, or the result typed otherwise" -reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-varchar.hand.toml#t001_number"] -required = true - -[[obligation]] -id = "db.functions.to-varchar.t002" -form = "db.functions.to-varchar" -kind = "null_argument" -target = "DECIMAL(10,2)" -note = "to_varchar of NULL. Hand-written." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" -reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-varchar.hand.toml#t002_null"] +cases = ["cases/translation/functions/theta-intersection-agg.toml#t004_wrong_kind"] required = true [[obligation]] -id = "db.functions.to-varchar.t003" -form = "db.functions.to-varchar" +id = "db.functions.theta-sketch-agg.t001" +form = "db.functions.theta-sketch-agg" kind = "type_combination" target = "INT" -note = "to-varchar with arguments of type INT, INT. Arguments 2 onward inlined as constants." +note = "theta-sketch-agg with arguments of type INT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-varchar.lit.toml#t001_types_1_lit"] +cases = ["cases/translation/functions/theta-sketch-agg.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.to-varchar.t004" -form = "db.functions.to-varchar" +id = "db.functions.theta-sketch-agg.t002" +form = "db.functions.theta-sketch-agg" kind = "type_combination" -target = "STRING" -note = "to-varchar with arguments of type STRING, INT. Arguments 2 onward inlined as constants." +target = "BIGINT" +note = "theta-sketch-agg with arguments of type BIGINT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-varchar.lit.toml#t002_types_2_lit"] +cases = ["cases/translation/functions/theta-sketch-agg.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.to-varchar.t005" -form = "db.functions.to-varchar" +id = "db.functions.theta-sketch-agg.t003" +form = "db.functions.theta-sketch-agg" kind = "type_combination" -target = "BINARY" -note = "to-varchar with arguments of type BINARY, INT. Arguments 2 onward inlined as constants." +target = "FLOAT" +note = "theta-sketch-agg with arguments of type FLOAT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-varchar.lit.toml#t003_types_3_lit"] +cases = ["cases/translation/functions/theta-sketch-agg.toml#t003_types_3"] required = true [[obligation]] -id = "db.functions.to-varchar.t006" -form = "db.functions.to-varchar" +id = "db.functions.theta-sketch-agg.t004" +form = "db.functions.theta-sketch-agg" kind = "type_combination" -target = "DECIMAL(10,2)" -note = "to-varchar with arguments of type DECIMAL(10,2), INT. Arguments 2 onward inlined as constants." +target = "DOUBLE" +note = "theta-sketch-agg with arguments of type DOUBLE." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-varchar.lit.toml#t004_types_4_lit"] -required = true - -[[obligation]] -id = "db.functions.to-varchar.t007" -form = "db.functions.to-varchar" -kind = "null_argument" -target = "INT" -note = "to-varchar with NULL as argument 1. Arguments 2 onward inlined as constants." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" -reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-varchar.lit.toml#t005_null_1_lit"] +cases = ["cases/translation/functions/theta-sketch-agg.toml#t004_types_4"] required = true [[obligation]] -id = "db.functions.to-varchar.t008" -form = "db.functions.to-varchar" +id = "db.functions.theta-sketch-agg.t005" +form = "db.functions.theta-sketch-agg" kind = "null_argument" target = "INT" -note = "to-varchar with NULL as argument 2. Arguments 2 onward inlined as constants." +note = "theta-sketch-agg with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-varchar.lit.toml#t006_null_2_lit"] +cases = ["cases/translation/functions/theta-sketch-agg.toml#t005_null_1"] required = true [[obligation]] -id = "db.functions.to-varchar.t009" -form = "db.functions.to-varchar" +id = "db.functions.theta-sketch-agg.t006" +form = "db.functions.theta-sketch-agg" kind = "error_parity" target = "STRING" -note = "to-varchar with a STRING value where the page documents INT. Arguments 2 onward inlined as constants." +note = "theta-sketch-agg with a STRING value where the page documents INT." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-varchar.lit.toml#t011_wrong_kind_lit"] +cases = ["cases/translation/functions/theta-sketch-agg.toml#t008_wrong_kind"] required = true [[obligation]] -id = "db.functions.to-varchar.t010" -form = "db.functions.to-varchar" +id = "db.functions.theta-sketch-estimate.t001" +form = "db.functions.theta-sketch-estimate" kind = "type_combination" -target = "INT, INT" -note = "to-varchar with arguments of type INT, INT." +target = "BINARY" +note = "theta-sketch-estimate with arguments of type BINARY." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-varchar.toml#t001_types_1"] +cases = ["cases/translation/functions/theta-sketch-estimate.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.to-varchar.t011" -form = "db.functions.to-varchar" -kind = "type_combination" -target = "STRING, INT" -note = "to-varchar with arguments of type STRING, INT." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.theta-sketch-estimate.t002" +form = "db.functions.theta-sketch-estimate" +kind = "null_argument" +target = "BINARY" +note = "theta-sketch-estimate with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-varchar.toml#t002_types_2"] +cases = ["cases/translation/functions/theta-sketch-estimate.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.to-varchar.t012" -form = "db.functions.to-varchar" -kind = "type_combination" -target = "BINARY, INT" -note = "to-varchar with arguments of type BINARY, INT." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.theta-sketch-estimate.t003" +form = "db.functions.theta-sketch-estimate" +kind = "error_parity" +target = "STRING" +note = "theta-sketch-estimate with a STRING value where the page documents BINARY." +catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-varchar.toml#t003_types_3"] +cases = ["cases/translation/functions/theta-sketch-estimate.toml#t004_wrong_kind"] required = true [[obligation]] -id = "db.functions.to-varchar.t013" -form = "db.functions.to-varchar" +id = "db.functions.theta-union.t001" +form = "db.functions.theta-union" kind = "type_combination" -target = "DECIMAL(10,2), INT" -note = "to-varchar with arguments of type DECIMAL(10,2), INT." +target = "BINARY, BINARY" +note = "theta-union with arguments of type BINARY, BINARY." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-varchar.toml#t004_types_4"] +cases = ["cases/translation/functions/theta-union.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.to-varchar.t014" -form = "db.functions.to-varchar" +id = "db.functions.theta-union.t002" +form = "db.functions.theta-union" kind = "null_argument" -target = "INT, INT" -note = "to-varchar with NULL as argument 1." +target = "BINARY, BINARY" +note = "theta-union with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-varchar.toml#t005_null_1"] +cases = ["cases/translation/functions/theta-union.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.to-varchar.t015" -form = "db.functions.to-varchar" +id = "db.functions.theta-union.t003" +form = "db.functions.theta-union" kind = "null_argument" -target = "INT, INT" -note = "to-varchar with NULL as argument 2." +target = "BINARY, BINARY" +note = "theta-union with NULL as argument 2." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-varchar.toml#t006_null_2"] +cases = ["cases/translation/functions/theta-union.toml#t003_null_2"] required = true [[obligation]] -id = "db.functions.to-varchar.t016" -form = "db.functions.to-varchar" +id = "db.functions.theta-union.t004" +form = "db.functions.theta-union" kind = "error_parity" -target = "STRING, INT" -note = "to-varchar with a STRING value where the page documents INT." +target = "STRING, BINARY" +note = "theta-union with a STRING value where the page documents BINARY." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-varchar.toml#t011_wrong_kind"] +cases = ["cases/translation/functions/theta-union.toml#t006_wrong_kind"] required = true [[obligation]] -id = "db.functions.to-variant-object.t001" -form = "db.functions.to-variant-object" +id = "db.functions.theta-union-agg.t001" +form = "db.functions.theta-union-agg" kind = "type_combination" -target = "STRING" -note = "to-variant-object with arguments of type STRING." +target = "BINARY" +note = "theta-union-agg with arguments of type BINARY." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-variant-object.toml#t001_types_1"] +cases = ["cases/translation/functions/theta-union-agg.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.to-variant-object.t002" -form = "db.functions.to-variant-object" -kind = "type_combination" -target = "ARRAY" -note = "to-variant-object with arguments of type ARRAY." -catches = "the argument types read another way, or the result typed otherwise" -reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-variant-object.toml#t002_types_2"] -required = true - -[[obligation]] -id = "db.functions.to-variant-object.t003" -form = "db.functions.to-variant-object" -kind = "type_combination" -target = "MAP" -note = "to-variant-object with arguments of type MAP." -catches = "the argument types read another way, or the result typed otherwise" -reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-variant-object.toml#t003_types_3"] -required = true - -[[obligation]] -id = "db.functions.to-variant-object.t004" -form = "db.functions.to-variant-object" -kind = "type_combination" -target = "STRUCT" -note = "to-variant-object with arguments of type STRUCT." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.theta-union-agg.t002" +form = "db.functions.theta-union-agg" +kind = "null_argument" +target = "BINARY" +note = "theta-union-agg with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-variant-object.toml#t004_types_4"] +cases = ["cases/translation/functions/theta-union-agg.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.to-variant-object.t005" -form = "db.functions.to-variant-object" -kind = "null_argument" +id = "db.functions.theta-union-agg.t003" +form = "db.functions.theta-union-agg" +kind = "error_parity" target = "STRING" -note = "to-variant-object with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +note = "theta-union-agg with a STRING value where the page documents BINARY." +catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-variant-object.toml#t005_null_1"] +cases = ["cases/translation/functions/theta-union-agg.toml#t004_wrong_kind"] required = true [[obligation]] -id = "db.functions.to-variant-object.t006" -form = "db.functions.to-variant-object" -kind = "error_parity" -target = "ARRAY" -note = "to-variant-object with a ARRAY value where the page documents STRING." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.tildesign.t001" +form = "db.functions.tildesign" +kind = "type_combination" +target = "INT" +note = "tildesign with arguments of type INT." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-variant-object.toml#t008_wrong_kind"] +cases = ["cases/translation/functions/tildesign.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.to-xml.t001" -form = "db.functions.to-xml" +id = "db.functions.tildesign.t002" +form = "db.functions.tildesign" kind = "type_combination" -target = "STRUCT" -note = "to-xml with arguments of type STRUCT." +target = "BIGINT" +note = "tildesign with arguments of type BIGINT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-xml.toml#t001_types_1"] +cases = ["cases/translation/functions/tildesign.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.to-xml.t002" -form = "db.functions.to-xml" +id = "db.functions.tildesign.t003" +form = "db.functions.tildesign" kind = "type_combination" -target = "VARIANT" -note = "to-xml with arguments of type VARIANT." +target = "SMALLINT" +note = "tildesign with arguments of type SMALLINT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-xml.toml#t002_types_2"] +cases = ["cases/translation/functions/tildesign.toml#t003_types_3"] required = true [[obligation]] -id = "db.functions.to-xml.t003" -form = "db.functions.to-xml" +id = "db.functions.tildesign.t004" +form = "db.functions.tildesign" kind = "null_argument" -target = "STRUCT" -note = "to-xml with NULL as argument 1." +target = "INT" +note = "tildesign with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-xml.toml#t003_null_1"] +cases = ["cases/translation/functions/tildesign.toml#t004_null_1"] required = true [[obligation]] -id = "db.functions.to-xml.t004" -form = "db.functions.to-xml" +id = "db.functions.tildesign.t005" +form = "db.functions.tildesign" kind = "error_parity" target = "STRING" -note = "to-xml with a STRING value where the page documents STRUCT." +note = "tildesign with a STRING value where the page documents INT." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/to-xml.toml#t004_wrong_kind"] +cases = ["cases/translation/functions/tildesign.toml#t007_wrong_kind"] required = true [[obligation]] -id = "db.functions.transform.t001" -form = "db.functions.transform" +id = "db.functions.time.t001" +form = "db.functions.time" kind = "type_combination" -target = "ARRAY" -note = "transform over an INT array, with a NULL element. Hand-written." +target = "STRING" +note = "time of strings. Hand-written for the phase-2 recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/transform.hand.toml#t001_int"] +cases = ["cases/translation/functions/time.pt.hand.toml#p001"] required = true [[obligation]] -id = "db.functions.transform.t002" -form = "db.functions.transform" +id = "db.functions.time.t002" +form = "db.functions.time" kind = "type_combination" -target = "ARRAY" -note = "transform over a STRING array. Hand-written." +target = "TIME" +note = "time of TIME values. Hand-written for the phase-2 recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/transform.hand.toml#t002_string"] +cases = ["cases/translation/functions/time.ptt.hand.toml#p001"] required = true [[obligation]] -id = "db.functions.transform.t003" -form = "db.functions.transform" -kind = "null_argument" -target = "ARRAY" -note = "transform over a NULL array. Hand-written." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.time.t003" +form = "db.functions.time" +kind = "type_combination" +target = "INT" +note = "time with arguments of type INT." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/transform.hand.toml#t003_null_array"] +cases = ["cases/translation/functions/time.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.transform.t004" -form = "db.functions.transform" +id = "db.functions.time.t004" +form = "db.functions.time" kind = "type_combination" -target = "ARRAY" -note = "transform with the element index. Hand-written." +target = "STRING" +note = "time with arguments of type STRING." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/transform.hand.toml#t005_index"] +cases = ["cases/translation/functions/time.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.transform-keys.t001" -form = "db.functions.transform-keys" +id = "db.functions.time.t005" +form = "db.functions.time" +kind = "null_argument" +target = "INT" +note = "time with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time.toml#t003_null_1"] +required = true + +[[obligation]] +id = "db.functions.time.t006" +form = "db.functions.time" +kind = "error_parity" +target = "STRING" +note = "time with a STRING value where the page documents INT." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time.toml#t006_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.time-bucket.t001" +form = "db.functions.time-bucket" kind = "type_combination" -target = "MAP" -note = "transform_keys over a STRING to INT map. Hand-written." +target = "TIMESTAMP" +note = "time_bucket of timestamps into hours. Hand-written." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/transform-keys.hand.toml#t001_map"] +cases = ["cases/translation/functions/time-bucket.hand.toml#t001_hour"] required = true [[obligation]] -id = "db.functions.transform-keys.t002" -form = "db.functions.transform-keys" +id = "db.functions.time-bucket.t002" +form = "db.functions.time-bucket" kind = "null_argument" -target = "MAP" -note = "transform_keys over a NULL map. Hand-written." +target = "TIMESTAMP" +note = "time_bucket of NULL. Hand-written." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/transform-keys.hand.toml#t002_null_map"] +cases = ["cases/translation/functions/time-bucket.hand.toml#t002_null"] required = true [[obligation]] -id = "db.functions.transform-values.t001" -form = "db.functions.transform-values" +id = "db.functions.time-bucket.t003" +form = "db.functions.time-bucket" kind = "type_combination" -target = "MAP" -note = "transform_values over a STRING to INT map. Hand-written." +target = "INTERVAL DAY" +note = "time-bucket with arguments of type INTERVAL DAY, TIMESTAMP. Arguments 2 onward inlined as constants." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/transform-values.hand.toml#t001_map"] +cases = ["cases/translation/functions/time-bucket.lit.toml#t001_types_1_lit"] required = true [[obligation]] -id = "db.functions.transform-values.t002" -form = "db.functions.transform-values" -kind = "null_argument" -target = "MAP" -note = "transform_values over a NULL map. Hand-written." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.time-bucket.t004" +form = "db.functions.time-bucket" +kind = "type_combination" +target = "INTERVAL YEAR TO MONTH" +note = "time-bucket with arguments of type INTERVAL YEAR TO MONTH, TIMESTAMP. Arguments 2 onward inlined as constants." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/transform-values.hand.toml#t002_null_map"] +cases = ["cases/translation/functions/time-bucket.lit.toml#t002_types_2_lit"] required = true [[obligation]] -id = "db.functions.translate.t001" -form = "db.functions.translate" +id = "db.functions.time-bucket.t005" +form = "db.functions.time-bucket" kind = "type_combination" -target = "STRING, STRING, STRING" -note = "translate with arguments of type STRING, STRING, STRING." +target = "INTERVAL DAY" +note = "time-bucket with arguments of type INTERVAL DAY, TIMESTAMP_NTZ. Arguments 2 onward inlined as constants." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/translate.toml#t001_types_1"] +cases = ["cases/translation/functions/time-bucket.lit.toml#t003_types_3_lit"] required = true [[obligation]] -id = "db.functions.translate.t002" -form = "db.functions.translate" +id = "db.functions.time-bucket.t006" +form = "db.functions.time-bucket" kind = "null_argument" -target = "STRING, STRING, STRING" -note = "translate with NULL as argument 1." +target = "INTERVAL DAY" +note = "time-bucket with NULL as argument 1. Arguments 2 onward inlined as constants." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/translate.toml#t002_null_1"] +cases = ["cases/translation/functions/time-bucket.lit.toml#t004_null_1_lit"] required = true [[obligation]] -id = "db.functions.translate.t003" -form = "db.functions.translate" +id = "db.functions.time-bucket.t007" +form = "db.functions.time-bucket" kind = "null_argument" -target = "STRING, STRING, STRING" -note = "translate with NULL as argument 2." +target = "INTERVAL DAY" +note = "time-bucket with NULL as argument 2. Arguments 2 onward inlined as constants." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/translate.toml#t003_null_2"] +cases = ["cases/translation/functions/time-bucket.lit.toml#t005_null_2_lit"] required = true [[obligation]] -id = "db.functions.translate.t004" -form = "db.functions.translate" -kind = "null_argument" -target = "STRING, STRING, STRING" -note = "translate with NULL as argument 3." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.time-bucket.t008" +form = "db.functions.time-bucket" +kind = "error_parity" +target = "STRING" +note = "time-bucket with a STRING value where the page documents INTERVAL DAY. Arguments 2 onward inlined as constants." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-bucket.lit.toml#t008_wrong_kind_lit"] +required = true + +[[obligation]] +id = "db.functions.time-bucket.t009" +form = "db.functions.time-bucket" +kind = "type_combination" +target = "INTERVAL DAY, TIMESTAMP" +note = "time-bucket with arguments of type INTERVAL DAY, TIMESTAMP." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-bucket.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.time-bucket.t010" +form = "db.functions.time-bucket" +kind = "type_combination" +target = "INTERVAL YEAR TO MONTH, TIMESTAMP" +note = "time-bucket with arguments of type INTERVAL YEAR TO MONTH, TIMESTAMP." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-bucket.toml#t002_types_2"] +required = true + +[[obligation]] +id = "db.functions.time-bucket.t011" +form = "db.functions.time-bucket" +kind = "type_combination" +target = "INTERVAL DAY, TIMESTAMP_NTZ" +note = "time-bucket with arguments of type INTERVAL DAY, TIMESTAMP_NTZ." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-bucket.toml#t003_types_3"] +required = true + +[[obligation]] +id = "db.functions.time-bucket.t012" +form = "db.functions.time-bucket" +kind = "null_argument" +target = "INTERVAL DAY, TIMESTAMP" +note = "time-bucket with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-bucket.toml#t004_null_1"] +required = true + +[[obligation]] +id = "db.functions.time-bucket.t013" +form = "db.functions.time-bucket" +kind = "null_argument" +target = "INTERVAL DAY, TIMESTAMP" +note = "time-bucket with NULL as argument 2." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-bucket.toml#t005_null_2"] +required = true + +[[obligation]] +id = "db.functions.time-bucket.t014" +form = "db.functions.time-bucket" +kind = "error_parity" +target = "STRING, TIMESTAMP" +note = "time-bucket with a STRING value where the page documents INTERVAL DAY." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-bucket.toml#t008_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.time-diff.t001" +form = "db.functions.time-diff" +kind = "type_combination" +target = "TIME, TIME" +note = "time_diff in hours. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-diff.hour.pa.hand.toml#p001"] +required = true + +[[obligation]] +id = "db.functions.time-diff.t002" +form = "db.functions.time-diff" +kind = "type_combination" +target = "TIME, TIME" +note = "time_diff with a lower-case unit. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-diff.lower.pa.hand.toml#p001"] +required = true + +[[obligation]] +id = "db.functions.time-diff.t003" +form = "db.functions.time-diff" +kind = "type_combination" +target = "TIME, TIME" +note = "time_diff in milliseconds, truncating either way. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-diff.micro.pa.hand.toml#p001"] +required = true + +[[obligation]] +id = "db.functions.time-diff.t004" +form = "db.functions.time-diff" +kind = "type_combination" +target = "TIME, TIME" +note = "time_diff with unit keywords, which Databricks reads as columns it cannot resolve. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-diff.pt.hand.toml#p001"] +required = true + +[[obligation]] +id = "db.functions.time-diff.t005" +form = "db.functions.time-diff" +kind = "type_combination" +target = "TIME, TIME" +note = "time_diff in seconds with the unit as a string, truncating and negative. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-diff.strings.pa.hand.toml#p001"] +required = true + +[[obligation]] +id = "db.functions.time-from-micros.t001" +form = "db.functions.time-from-micros" +kind = "type_combination" +target = "INT" +note = "time-from-micros with arguments of type INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-from-micros.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.time-from-micros.t002" +form = "db.functions.time-from-micros" +kind = "type_combination" +target = "BIGINT" +note = "time-from-micros with arguments of type BIGINT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-from-micros.toml#t002_types_2"] +required = true + +[[obligation]] +id = "db.functions.time-from-micros.t003" +form = "db.functions.time-from-micros" +kind = "type_combination" +target = "SMALLINT" +note = "time-from-micros with arguments of type SMALLINT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-from-micros.toml#t003_types_3"] +required = true + +[[obligation]] +id = "db.functions.time-from-micros.t004" +form = "db.functions.time-from-micros" +kind = "null_argument" +target = "INT" +note = "time-from-micros with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-from-micros.toml#t004_null_1"] +required = true + +[[obligation]] +id = "db.functions.time-from-micros.t005" +form = "db.functions.time-from-micros" +kind = "error_parity" +target = "STRING" +note = "time-from-micros with a STRING value where the page documents INT." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-from-micros.toml#t007_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.time-from-millis.t001" +form = "db.functions.time-from-millis" +kind = "type_combination" +target = "INT" +note = "time-from-millis with arguments of type INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-from-millis.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.time-from-millis.t002" +form = "db.functions.time-from-millis" +kind = "type_combination" +target = "BIGINT" +note = "time-from-millis with arguments of type BIGINT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-from-millis.toml#t002_types_2"] +required = true + +[[obligation]] +id = "db.functions.time-from-millis.t003" +form = "db.functions.time-from-millis" +kind = "type_combination" +target = "SMALLINT" +note = "time-from-millis with arguments of type SMALLINT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-from-millis.toml#t003_types_3"] +required = true + +[[obligation]] +id = "db.functions.time-from-millis.t004" +form = "db.functions.time-from-millis" +kind = "null_argument" +target = "INT" +note = "time-from-millis with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-from-millis.toml#t004_null_1"] +required = true + +[[obligation]] +id = "db.functions.time-from-millis.t005" +form = "db.functions.time-from-millis" +kind = "error_parity" +target = "STRING" +note = "time-from-millis with a STRING value where the page documents INT." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-from-millis.toml#t007_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.time-from-seconds.t001" +form = "db.functions.time-from-seconds" +kind = "type_combination" +target = "INT" +note = "time-from-seconds with arguments of type INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-from-seconds.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.time-from-seconds.t002" +form = "db.functions.time-from-seconds" +kind = "type_combination" +target = "DECIMAL(10,2)" +note = "time-from-seconds with arguments of type DECIMAL(10,2)." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-from-seconds.toml#t002_types_2"] +required = true + +[[obligation]] +id = "db.functions.time-from-seconds.t003" +form = "db.functions.time-from-seconds" +kind = "type_combination" +target = "DOUBLE" +note = "time-from-seconds with arguments of type DOUBLE." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-from-seconds.toml#t003_types_3"] +required = true + +[[obligation]] +id = "db.functions.time-from-seconds.t004" +form = "db.functions.time-from-seconds" +kind = "null_argument" +target = "INT" +note = "time-from-seconds with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-from-seconds.toml#t004_null_1"] +required = true + +[[obligation]] +id = "db.functions.time-from-seconds.t005" +form = "db.functions.time-from-seconds" +kind = "error_parity" +target = "STRING" +note = "time-from-seconds with a STRING value where the page documents INT." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-from-seconds.toml#t007_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.time-to-micros.t001" +form = "db.functions.time-to-micros" +kind = "type_combination" +target = "TIME" +note = "time-to-micros with arguments of type TIME." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-to-micros.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.time-to-micros.t002" +form = "db.functions.time-to-micros" +kind = "null_argument" +target = "TIME" +note = "time-to-micros with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-to-micros.toml#t002_null_1"] +required = true + +[[obligation]] +id = "db.functions.time-to-micros.t003" +form = "db.functions.time-to-micros" +kind = "error_parity" +target = "STRING" +note = "time-to-micros with a STRING value where the page documents TIME." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-to-micros.toml#t003_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.time-to-millis.t001" +form = "db.functions.time-to-millis" +kind = "type_combination" +target = "TIME" +note = "time-to-millis with arguments of type TIME." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-to-millis.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.time-to-millis.t002" +form = "db.functions.time-to-millis" +kind = "null_argument" +target = "TIME" +note = "time-to-millis with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-to-millis.toml#t002_null_1"] +required = true + +[[obligation]] +id = "db.functions.time-to-millis.t003" +form = "db.functions.time-to-millis" +kind = "error_parity" +target = "STRING" +note = "time-to-millis with a STRING value where the page documents TIME." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-to-millis.toml#t003_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.time-to-seconds.t001" +form = "db.functions.time-to-seconds" +kind = "type_combination" +target = "TIME" +note = "time-to-seconds with arguments of type TIME." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-to-seconds.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.time-to-seconds.t002" +form = "db.functions.time-to-seconds" +kind = "null_argument" +target = "TIME" +note = "time-to-seconds with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-to-seconds.toml#t002_null_1"] +required = true + +[[obligation]] +id = "db.functions.time-to-seconds.t003" +form = "db.functions.time-to-seconds" +kind = "error_parity" +target = "STRING" +note = "time-to-seconds with a STRING value where the page documents TIME." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-to-seconds.toml#t003_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.time-trunc.t001" +form = "db.functions.time-trunc" +kind = "type_combination" +target = "STRING, TIME" +note = "time-trunc with arguments of type STRING, TIME." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-trunc.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.time-trunc.t002" +form = "db.functions.time-trunc" +kind = "null_argument" +target = "STRING, TIME" +note = "time-trunc with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-trunc.toml#t002_null_1"] +required = true + +[[obligation]] +id = "db.functions.time-trunc.t003" +form = "db.functions.time-trunc" +kind = "null_argument" +target = "STRING, TIME" +note = "time-trunc with NULL as argument 2." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-trunc.toml#t003_null_2"] +required = true + +[[obligation]] +id = "db.functions.time-trunc.t004" +form = "db.functions.time-trunc" +kind = "error_parity" +target = "ARRAY, TIME" +note = "time-trunc with a ARRAY value where the page documents STRING." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/time-trunc.toml#t006_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.timediff.t001" +form = "db.functions.timediff" +kind = "type_combination" +target = "TIMESTAMP, TIMESTAMP" +note = "timediff in hours and months. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timediff.pt.hand.toml#p001"] +required = true + +[[obligation]] +id = "db.functions.timestamp.t001" +form = "db.functions.timestamp" +kind = "type_combination" +target = "TIMESTAMP" +note = "timestamp with arguments of type TIMESTAMP." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestamp.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.timestamp.t002" +form = "db.functions.timestamp" +kind = "type_combination" +target = "INT" +note = "timestamp with arguments of type INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestamp.toml#t002_types_2"] +required = true + +[[obligation]] +id = "db.functions.timestamp.t003" +form = "db.functions.timestamp" +kind = "type_combination" +target = "TIMESTAMP_NTZ" +note = "timestamp with arguments of type TIMESTAMP_NTZ." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestamp.toml#t003_types_3"] +required = true + +[[obligation]] +id = "db.functions.timestamp.t004" +form = "db.functions.timestamp" +kind = "type_combination" +target = "STRING" +note = "timestamp with arguments of type STRING." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestamp.toml#t004_types_4"] +required = true + +[[obligation]] +id = "db.functions.timestamp.t005" +form = "db.functions.timestamp" +kind = "null_argument" +target = "TIMESTAMP" +note = "timestamp with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestamp.toml#t005_null_1"] +required = true + +[[obligation]] +id = "db.functions.timestamp.t006" +form = "db.functions.timestamp" +kind = "error_parity" +target = "STRING" +note = "timestamp with a STRING value where the page documents TIMESTAMP." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestamp.toml#t008_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.timestamp-micros.t001" +form = "db.functions.timestamp-micros" +kind = "type_combination" +target = "INT" +note = "timestamp-micros with arguments of type INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestamp-micros.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.timestamp-micros.t002" +form = "db.functions.timestamp-micros" +kind = "type_combination" +target = "BIGINT" +note = "timestamp-micros with arguments of type BIGINT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestamp-micros.toml#t002_types_2"] +required = true + +[[obligation]] +id = "db.functions.timestamp-micros.t003" +form = "db.functions.timestamp-micros" +kind = "type_combination" +target = "SMALLINT" +note = "timestamp-micros with arguments of type SMALLINT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestamp-micros.toml#t003_types_3"] +required = true + +[[obligation]] +id = "db.functions.timestamp-micros.t004" +form = "db.functions.timestamp-micros" +kind = "null_argument" +target = "INT" +note = "timestamp-micros with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestamp-micros.toml#t004_null_1"] +required = true + +[[obligation]] +id = "db.functions.timestamp-micros.t005" +form = "db.functions.timestamp-micros" +kind = "error_parity" +target = "STRING" +note = "timestamp-micros with a STRING value where the page documents INT." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestamp-micros.toml#t007_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.timestamp-millis.t001" +form = "db.functions.timestamp-millis" +kind = "type_combination" +target = "BIGINT" +note = "timestamp_millis past the years DuckDB holds. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestamp-millis.pb.hand.toml#p001"] +required = true + +[[obligation]] +id = "db.functions.timestamp-millis.t002" +form = "db.functions.timestamp-millis" +kind = "type_combination" +target = "INT" +note = "timestamp-millis with arguments of type INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestamp-millis.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.timestamp-millis.t003" +form = "db.functions.timestamp-millis" +kind = "type_combination" +target = "BIGINT" +note = "timestamp-millis with arguments of type BIGINT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestamp-millis.toml#t002_types_2"] +required = true + +[[obligation]] +id = "db.functions.timestamp-millis.t004" +form = "db.functions.timestamp-millis" +kind = "type_combination" +target = "SMALLINT" +note = "timestamp-millis with arguments of type SMALLINT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestamp-millis.toml#t003_types_3"] +required = true + +[[obligation]] +id = "db.functions.timestamp-millis.t005" +form = "db.functions.timestamp-millis" +kind = "null_argument" +target = "INT" +note = "timestamp-millis with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestamp-millis.toml#t004_null_1"] +required = true + +[[obligation]] +id = "db.functions.timestamp-millis.t006" +form = "db.functions.timestamp-millis" +kind = "error_parity" +target = "STRING" +note = "timestamp-millis with a STRING value where the page documents INT." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestamp-millis.toml#t007_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.timestamp-nanos.t001" +form = "db.functions.timestamp-nanos" +kind = "type_combination" +target = "INT" +note = "timestamp-nanos with arguments of type INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestamp-nanos.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.timestamp-nanos.t002" +form = "db.functions.timestamp-nanos" +kind = "type_combination" +target = "DECIMAL(10,2)" +note = "timestamp-nanos with arguments of type DECIMAL(10,2)." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestamp-nanos.toml#t002_types_2"] +required = true + +[[obligation]] +id = "db.functions.timestamp-nanos.t003" +form = "db.functions.timestamp-nanos" +kind = "type_combination" +target = "BIGINT" +note = "timestamp-nanos with arguments of type BIGINT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestamp-nanos.toml#t003_types_3"] +required = true + +[[obligation]] +id = "db.functions.timestamp-nanos.t004" +form = "db.functions.timestamp-nanos" +kind = "type_combination" +target = "SMALLINT" +note = "timestamp-nanos with arguments of type SMALLINT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestamp-nanos.toml#t004_types_4"] +required = true + +[[obligation]] +id = "db.functions.timestamp-nanos.t005" +form = "db.functions.timestamp-nanos" +kind = "null_argument" +target = "INT" +note = "timestamp-nanos with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestamp-nanos.toml#t005_null_1"] +required = true + +[[obligation]] +id = "db.functions.timestamp-nanos.t006" +form = "db.functions.timestamp-nanos" +kind = "error_parity" +target = "STRING" +note = "timestamp-nanos with a STRING value where the page documents INT." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestamp-nanos.toml#t008_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.timestamp-seconds.t001" +form = "db.functions.timestamp-seconds" +kind = "type_combination" +target = "DOUBLE" +note = "timestamp_seconds of a large DOUBLE and of NaN. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestamp-seconds.pb.hand.toml#p001"] +required = true + +[[obligation]] +id = "db.functions.timestamp-seconds.t002" +form = "db.functions.timestamp-seconds" +kind = "type_combination" +target = "DOUBLE" +note = "timestamp_seconds of a large DOUBLE and of NaN. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestamp-seconds.pb.hand.toml#p002"] +required = true + +[[obligation]] +id = "db.functions.timestamp-seconds.t003" +form = "db.functions.timestamp-seconds" +kind = "type_combination" +target = "INT" +note = "timestamp-seconds with arguments of type INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestamp-seconds.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.timestamp-seconds.t004" +form = "db.functions.timestamp-seconds" +kind = "type_combination" +target = "DECIMAL(10,2)" +note = "timestamp-seconds with arguments of type DECIMAL(10,2)." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestamp-seconds.toml#t002_types_2"] +required = true + +[[obligation]] +id = "db.functions.timestamp-seconds.t005" +form = "db.functions.timestamp-seconds" +kind = "type_combination" +target = "DOUBLE" +note = "timestamp-seconds with arguments of type DOUBLE." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestamp-seconds.toml#t003_types_3"] +required = true + +[[obligation]] +id = "db.functions.timestamp-seconds.t006" +form = "db.functions.timestamp-seconds" +kind = "null_argument" +target = "INT" +note = "timestamp-seconds with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestamp-seconds.toml#t004_null_1"] +required = true + +[[obligation]] +id = "db.functions.timestamp-seconds.t007" +form = "db.functions.timestamp-seconds" +kind = "error_parity" +target = "STRING" +note = "timestamp-seconds with a STRING value where the page documents INT." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestamp-seconds.toml#t007_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.timestampadd.t001" +form = "db.functions.timestampadd" +kind = "type_combination" +target = "TIMESTAMP, INT" +note = "timestampadd of months from month ends and a leap day. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestampadd.pt.hand.toml#p001"] +required = true + +[[obligation]] +id = "db.functions.timestampadd.t002" +form = "db.functions.timestampadd" +kind = "type_combination" +target = "DATE, INT" +note = "timestampadd of years, quarters and weeks to dates. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestampadd.ptd.hand.toml#p001"] +required = true + +[[obligation]] +id = "db.functions.timestampadd.t003" +form = "db.functions.timestampadd" +kind = "type_combination" +target = "TIMESTAMP, INT" +note = "timestampadd of days, hours, seconds and microseconds. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestampadd.ptu.hand.toml#p001"] +required = true + +[[obligation]] +id = "db.functions.timestampdiff.t001" +form = "db.functions.timestampdiff" +kind = "type_combination" +target = "DATE, DATE" +note = "timestampdiff in months between month ends, a leap day and back. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestampdiff.pt.hand.toml#p001"] +required = true + +[[obligation]] +id = "db.functions.timestampdiff.t002" +form = "db.functions.timestampdiff" +kind = "type_combination" +target = "TIMESTAMP, TIMESTAMP" +note = "timestampdiff in every unit below a month, with partial units. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestampdiff.ptu.hand.toml#p001"] +required = true + +[[obligation]] +id = "db.functions.timestampdiff.t003" +form = "db.functions.timestampdiff" +kind = "type_combination" +target = "TIMESTAMP, TIMESTAMP" +note = "timestampdiff in years from a leap day, either way. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/timestampdiff.pty.hand.toml#p001"] +required = true + +[[obligation]] +id = "db.functions.tinyint.t001" +form = "db.functions.tinyint" +kind = "type_combination" +target = "INT" +note = "tinyint with arguments of type INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/tinyint.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.tinyint.t002" +form = "db.functions.tinyint" +kind = "type_combination" +target = "BIGINT" +note = "tinyint with arguments of type BIGINT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/tinyint.toml#t002_types_2"] +required = true + +[[obligation]] +id = "db.functions.tinyint.t003" +form = "db.functions.tinyint" +kind = "type_combination" +target = "STRING" +note = "tinyint with arguments of type STRING." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/tinyint.toml#t003_types_3"] +required = true + +[[obligation]] +id = "db.functions.tinyint.t004" +form = "db.functions.tinyint" +kind = "type_combination" +target = "SMALLINT" +note = "tinyint with arguments of type SMALLINT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/tinyint.toml#t004_types_4"] +required = true + +[[obligation]] +id = "db.functions.tinyint.t005" +form = "db.functions.tinyint" +kind = "null_argument" +target = "INT" +note = "tinyint with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/tinyint.toml#t005_null_1"] +required = true + +[[obligation]] +id = "db.functions.tinyint.t006" +form = "db.functions.tinyint" +kind = "error_parity" +target = "STRING" +note = "tinyint with a STRING value where the page documents INT." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/tinyint.toml#t008_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.to-binary.t001" +form = "db.functions.to-binary" +kind = "type_combination" +target = "STRING" +note = "to_binary of a non-ASCII character after an invalid one, a lone non-ASCII character and odd-length hex. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-binary.pc.hand.toml#p001"] +required = true + +[[obligation]] +id = "db.functions.to-binary.t002" +form = "db.functions.to-binary" +kind = "type_combination" +target = "STRING" +note = "to_binary of a non-ASCII character after an invalid one, a lone non-ASCII character and odd-length hex. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-binary.pc.hand.toml#p002"] +required = true + +[[obligation]] +id = "db.functions.to-binary.t003" +form = "db.functions.to-binary" +kind = "type_combination" +target = "STRING" +note = "to_binary of a non-ASCII character after an invalid one, a lone non-ASCII character and odd-length hex. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-binary.pc.hand.toml#p003"] +required = true + +[[obligation]] +id = "db.functions.to-binary.t004" +form = "db.functions.to-binary" +kind = "type_combination" +target = "STRING" +note = "to_binary of a non-ASCII character after an invalid one, a lone non-ASCII character and odd-length hex. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-binary.pc.hand.toml#p004"] +required = true + +[[obligation]] +id = "db.functions.to-binary.t005" +form = "db.functions.to-binary" +kind = "type_combination" +target = "STRING, STRING" +note = "to_binary with the utf-8 and base64 formats. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-binary.pcf.hand.toml#p001"] +required = true + +[[obligation]] +id = "db.functions.to-binary.t006" +form = "db.functions.to-binary" +kind = "type_combination" +target = "STRING, STRING" +note = "to_binary with the utf-8 and base64 formats. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-binary.pcf.hand.toml#p002"] +required = true + +[[obligation]] +id = "db.functions.to-binary.t007" +form = "db.functions.to-binary" +kind = "type_combination" +target = "STRING" +note = "to-binary with arguments of type STRING." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-binary.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.to-binary.t008" +form = "db.functions.to-binary" +kind = "null_argument" +target = "STRING" +note = "to-binary with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-binary.toml#t002_null_1"] +required = true + +[[obligation]] +id = "db.functions.to-binary.t009" +form = "db.functions.to-binary" +kind = "error_parity" +target = "ARRAY" +note = "to-binary with a ARRAY value where the page documents STRING." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-binary.toml#t005_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.to-char.t001" +form = "db.functions.to-char" +kind = "type_combination" +target = "DECIMAL(10,2)" +note = "to_char of a DECIMAL with a format. Hand-written." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-char.hand.toml#t001_number"] +required = true + +[[obligation]] +id = "db.functions.to-char.t002" +form = "db.functions.to-char" +kind = "type_combination" +target = "DATE" +note = "to_char of a DATE with a format. Hand-written." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-char.hand.toml#t002_date"] +required = true + +[[obligation]] +id = "db.functions.to-char.t003" +form = "db.functions.to-char" +kind = "null_argument" +target = "DECIMAL(10,2)" +note = "to_char of NULL. Hand-written." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-char.hand.toml#t003_null"] +required = true + +[[obligation]] +id = "db.functions.to-char.t004" +form = "db.functions.to-char" +kind = "type_combination" +target = "INT" +note = "to-char with arguments of type INT, INT. Arguments 2 onward inlined as constants." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-char.lit.toml#t001_types_1_lit"] +required = true + +[[obligation]] +id = "db.functions.to-char.t005" +form = "db.functions.to-char" +kind = "type_combination" +target = "STRING" +note = "to-char with arguments of type STRING, INT. Arguments 2 onward inlined as constants." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-char.lit.toml#t002_types_2_lit"] +required = true + +[[obligation]] +id = "db.functions.to-char.t006" +form = "db.functions.to-char" +kind = "type_combination" +target = "BINARY" +note = "to-char with arguments of type BINARY, INT. Arguments 2 onward inlined as constants." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-char.lit.toml#t003_types_3_lit"] +required = true + +[[obligation]] +id = "db.functions.to-char.t007" +form = "db.functions.to-char" +kind = "type_combination" +target = "DECIMAL(10,2)" +note = "to-char with arguments of type DECIMAL(10,2), INT. Arguments 2 onward inlined as constants." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-char.lit.toml#t004_types_4_lit"] +required = true + +[[obligation]] +id = "db.functions.to-char.t008" +form = "db.functions.to-char" +kind = "null_argument" +target = "INT" +note = "to-char with NULL as argument 1. Arguments 2 onward inlined as constants." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-char.lit.toml#t005_null_1_lit"] +required = true + +[[obligation]] +id = "db.functions.to-char.t009" +form = "db.functions.to-char" +kind = "null_argument" +target = "INT" +note = "to-char with NULL as argument 2. Arguments 2 onward inlined as constants." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-char.lit.toml#t006_null_2_lit"] +required = true + +[[obligation]] +id = "db.functions.to-char.t010" +form = "db.functions.to-char" +kind = "error_parity" +target = "STRING" +note = "to-char with a STRING value where the page documents INT. Arguments 2 onward inlined as constants." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-char.lit.toml#t011_wrong_kind_lit"] +required = true + +[[obligation]] +id = "db.functions.to-char.t011" +form = "db.functions.to-char" +kind = "type_combination" +target = "DATE" +note = "to_char of a date with a datetime pattern. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-char.pb.hand.toml#p001"] +required = true + +[[obligation]] +id = "db.functions.to-char.t012" +form = "db.functions.to-char" +kind = "type_combination" +target = "INT, INT" +note = "to-char with arguments of type INT, INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-char.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.to-char.t013" +form = "db.functions.to-char" +kind = "type_combination" +target = "STRING, INT" +note = "to-char with arguments of type STRING, INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-char.toml#t002_types_2"] +required = true + +[[obligation]] +id = "db.functions.to-char.t014" +form = "db.functions.to-char" +kind = "type_combination" +target = "BINARY, INT" +note = "to-char with arguments of type BINARY, INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-char.toml#t003_types_3"] +required = true + +[[obligation]] +id = "db.functions.to-char.t015" +form = "db.functions.to-char" +kind = "type_combination" +target = "DECIMAL(10,2), INT" +note = "to-char with arguments of type DECIMAL(10,2), INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-char.toml#t004_types_4"] +required = true + +[[obligation]] +id = "db.functions.to-char.t016" +form = "db.functions.to-char" +kind = "null_argument" +target = "INT, INT" +note = "to-char with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-char.toml#t005_null_1"] +required = true + +[[obligation]] +id = "db.functions.to-char.t017" +form = "db.functions.to-char" +kind = "null_argument" +target = "INT, INT" +note = "to-char with NULL as argument 2." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-char.toml#t006_null_2"] +required = true + +[[obligation]] +id = "db.functions.to-char.t018" +form = "db.functions.to-char" +kind = "error_parity" +target = "STRING, INT" +note = "to-char with a STRING value where the page documents INT." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-char.toml#t011_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.to-csv.t001" +form = "db.functions.to-csv" +kind = "type_combination" +target = "STRUCT" +note = "to-csv with arguments of type STRUCT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-csv.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.to-csv.t002" +form = "db.functions.to-csv" +kind = "null_argument" +target = "STRUCT" +note = "to-csv with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-csv.toml#t002_null_1"] +required = true + +[[obligation]] +id = "db.functions.to-csv.t003" +form = "db.functions.to-csv" +kind = "error_parity" +target = "STRING" +note = "to-csv with a STRING value where the page documents STRUCT." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-csv.toml#t003_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.to-date.t001" +form = "db.functions.to-date" +kind = "type_combination" +target = "STRING" +note = "to-date with arguments of type STRING." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-date.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.to-date.t002" +form = "db.functions.to-date" +kind = "null_argument" +target = "STRING" +note = "to-date with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-date.toml#t002_null_1"] +required = true + +[[obligation]] +id = "db.functions.to-date.t003" +form = "db.functions.to-date" +kind = "error_parity" +target = "ARRAY" +note = "to-date with a ARRAY value where the page documents STRING." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-date.toml#t005_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.to-file.t001" +form = "db.functions.to-file" +kind = "type_combination" +target = "STRING" +note = "to-file with arguments of type STRING." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-file.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.to-file.t002" +form = "db.functions.to-file" +kind = "null_argument" +target = "STRING" +note = "to-file with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-file.toml#t002_null_1"] +required = true + +[[obligation]] +id = "db.functions.to-file.t003" +form = "db.functions.to-file" +kind = "error_parity" +target = "ARRAY" +note = "to-file with a ARRAY value where the page documents STRING." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-file.toml#t005_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.to-geography.t001" +form = "db.functions.to-geography" +kind = "type_combination" +target = "STRING" +note = "to-geography with arguments of type STRING." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-geography.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.to-geography.t002" +form = "db.functions.to-geography" +kind = "type_combination" +target = "BINARY" +note = "to-geography with arguments of type BINARY." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-geography.toml#t002_types_2"] +required = true + +[[obligation]] +id = "db.functions.to-geography.t003" +form = "db.functions.to-geography" +kind = "null_argument" +target = "STRING" +note = "to-geography with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-geography.toml#t003_null_1"] +required = true + +[[obligation]] +id = "db.functions.to-geography.t004" +form = "db.functions.to-geography" +kind = "error_parity" +target = "ARRAY" +note = "to-geography with a ARRAY value where the page documents STRING." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-geography.toml#t006_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.to-geometry.t001" +form = "db.functions.to-geometry" +kind = "type_combination" +target = "STRING" +note = "to-geometry with arguments of type STRING." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-geometry.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.to-geometry.t002" +form = "db.functions.to-geometry" +kind = "type_combination" +target = "BINARY" +note = "to-geometry with arguments of type BINARY." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-geometry.toml#t002_types_2"] +required = true + +[[obligation]] +id = "db.functions.to-geometry.t003" +form = "db.functions.to-geometry" +kind = "null_argument" +target = "STRING" +note = "to-geometry with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-geometry.toml#t003_null_1"] +required = true + +[[obligation]] +id = "db.functions.to-geometry.t004" +form = "db.functions.to-geometry" +kind = "error_parity" +target = "ARRAY" +note = "to-geometry with a ARRAY value where the page documents STRING." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-geometry.toml#t006_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.to-json.t001" +form = "db.functions.to-json" +kind = "type_combination" +target = "STRUCT" +note = "to-json with arguments of type STRUCT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-json.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.to-json.t002" +form = "db.functions.to-json" +kind = "type_combination" +target = "VARIANT" +note = "to-json with arguments of type VARIANT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-json.toml#t002_types_2"] +required = true + +[[obligation]] +id = "db.functions.to-json.t003" +form = "db.functions.to-json" +kind = "null_argument" +target = "STRUCT" +note = "to-json with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-json.toml#t003_null_1"] +required = true + +[[obligation]] +id = "db.functions.to-json.t004" +form = "db.functions.to-json" +kind = "error_parity" +target = "STRING" +note = "to-json with a STRING value where the page documents STRUCT." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-json.toml#t004_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.to-number.t001" +form = "db.functions.to-number" +kind = "type_combination" +target = "STRING" +note = "to_number of formatted strings. Hand-written." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-number.hand.toml#t001_format"] +required = true + +[[obligation]] +id = "db.functions.to-number.t002" +form = "db.functions.to-number" +kind = "error_parity" +target = "STRING" +note = "to_number of a string that does not match. Hand-written." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-number.hand.toml#t002_bad"] +required = true + +[[obligation]] +id = "db.functions.to-number.t003" +form = "db.functions.to-number" +kind = "null_argument" +target = "STRING" +note = "to_number of NULL. Hand-written." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-number.hand.toml#t003_null"] +required = true + +[[obligation]] +id = "db.functions.to-number.t004" +form = "db.functions.to-number" +kind = "type_combination" +target = "STRING" +note = "to-number with arguments of type STRING, STRING. Arguments 2 onward inlined as constants." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-number.lit.toml#t001_types_1_lit"] +required = true + +[[obligation]] +id = "db.functions.to-number.t005" +form = "db.functions.to-number" +kind = "null_argument" +target = "STRING" +note = "to-number with NULL as argument 1. Arguments 2 onward inlined as constants." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-number.lit.toml#t002_null_1_lit"] +required = true + +[[obligation]] +id = "db.functions.to-number.t006" +form = "db.functions.to-number" +kind = "null_argument" +target = "STRING" +note = "to-number with NULL as argument 2. Arguments 2 onward inlined as constants." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-number.lit.toml#t003_null_2_lit"] +required = true + +[[obligation]] +id = "db.functions.to-number.t007" +form = "db.functions.to-number" +kind = "error_parity" +target = "ARRAY" +note = "to-number with a ARRAY value where the page documents STRING. Arguments 2 onward inlined as constants." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-number.lit.toml#t008_wrong_kind_lit"] +required = true + +[[obligation]] +id = "db.functions.to-number.t008" +form = "db.functions.to-number" +kind = "type_combination" +target = "STRING, STRING" +note = "to-number with arguments of type STRING, STRING." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-number.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.to-number.t009" +form = "db.functions.to-number" +kind = "null_argument" +target = "STRING, STRING" +note = "to-number with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-number.toml#t002_null_1"] +required = true + +[[obligation]] +id = "db.functions.to-number.t010" +form = "db.functions.to-number" +kind = "null_argument" +target = "STRING, STRING" +note = "to-number with NULL as argument 2." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-number.toml#t003_null_2"] +required = true + +[[obligation]] +id = "db.functions.to-number.t011" +form = "db.functions.to-number" +kind = "error_parity" +target = "ARRAY, STRING" +note = "to-number with a ARRAY value where the page documents STRING." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-number.toml#t008_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.to-protobuf.t001" +form = "db.functions.to-protobuf" +kind = "type_combination" +target = "STRUCT, STRING" +note = "to-protobuf with arguments of type STRUCT, STRING." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-protobuf.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.to-protobuf.t002" +form = "db.functions.to-protobuf" +kind = "null_argument" +target = "STRUCT, STRING" +note = "to-protobuf with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-protobuf.toml#t002_null_1"] +required = true + +[[obligation]] +id = "db.functions.to-protobuf.t003" +form = "db.functions.to-protobuf" +kind = "null_argument" +target = "STRUCT, STRING" +note = "to-protobuf with NULL as argument 2." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-protobuf.toml#t003_null_2"] +required = true + +[[obligation]] +id = "db.functions.to-protobuf.t004" +form = "db.functions.to-protobuf" +kind = "error_parity" +target = "STRING, STRING" +note = "to-protobuf with a STRING value where the page documents STRUCT." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-protobuf.toml#t006_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.to-time.t001" +form = "db.functions.to-time" +kind = "type_combination" +target = "STRING" +note = "to-time with arguments of type STRING." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-time.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.to-time.t002" +form = "db.functions.to-time" +kind = "null_argument" +target = "STRING" +note = "to-time with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-time.toml#t002_null_1"] +required = true + +[[obligation]] +id = "db.functions.to-time.t003" +form = "db.functions.to-time" +kind = "error_parity" +target = "ARRAY" +note = "to-time with a ARRAY value where the page documents STRING." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-time.toml#t005_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.to-timestamp.t001" +form = "db.functions.to-timestamp" +kind = "type_combination" +target = "INT" +note = "to-timestamp with arguments of type INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-timestamp.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.to-timestamp.t002" +form = "db.functions.to-timestamp" +kind = "type_combination" +target = "STRING" +note = "to-timestamp with arguments of type STRING." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-timestamp.toml#t002_types_2"] +required = true + +[[obligation]] +id = "db.functions.to-timestamp.t003" +form = "db.functions.to-timestamp" +kind = "type_combination" +target = "DATE" +note = "to-timestamp with arguments of type DATE." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-timestamp.toml#t003_types_3"] +required = true + +[[obligation]] +id = "db.functions.to-timestamp.t004" +form = "db.functions.to-timestamp" +kind = "type_combination" +target = "TIMESTAMP" +note = "to-timestamp with arguments of type TIMESTAMP." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-timestamp.toml#t004_types_4"] +required = true + +[[obligation]] +id = "db.functions.to-timestamp.t005" +form = "db.functions.to-timestamp" +kind = "null_argument" +target = "INT" +note = "to-timestamp with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-timestamp.toml#t005_null_1"] +required = true + +[[obligation]] +id = "db.functions.to-timestamp.t006" +form = "db.functions.to-timestamp" +kind = "error_parity" +target = "STRING" +note = "to-timestamp with a STRING value where the page documents INT." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-timestamp.toml#t008_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.to-timestamp-ltz.t001" +form = "db.functions.to-timestamp-ltz" +kind = "type_combination" +target = "STRING" +note = "to_timestamp_ltz of plain timestamp text. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-timestamp-ltz.pc.hand.toml#p001"] +required = true + +[[obligation]] +id = "db.functions.to-timestamp-ltz.t002" +form = "db.functions.to-timestamp-ltz" +kind = "type_combination" +target = "INT" +note = "to-timestamp-ltz with arguments of type INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-timestamp-ltz.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.to-timestamp-ltz.t003" +form = "db.functions.to-timestamp-ltz" +kind = "type_combination" +target = "STRING" +note = "to-timestamp-ltz with arguments of type STRING." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-timestamp-ltz.toml#t002_types_2"] +required = true + +[[obligation]] +id = "db.functions.to-timestamp-ltz.t004" +form = "db.functions.to-timestamp-ltz" +kind = "type_combination" +target = "DATE" +note = "to-timestamp-ltz with arguments of type DATE." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-timestamp-ltz.toml#t003_types_3"] +required = true + +[[obligation]] +id = "db.functions.to-timestamp-ltz.t005" +form = "db.functions.to-timestamp-ltz" +kind = "type_combination" +target = "TIMESTAMP" +note = "to-timestamp-ltz with arguments of type TIMESTAMP." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-timestamp-ltz.toml#t004_types_4"] +required = true + +[[obligation]] +id = "db.functions.to-timestamp-ltz.t006" +form = "db.functions.to-timestamp-ltz" +kind = "null_argument" +target = "INT" +note = "to-timestamp-ltz with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-timestamp-ltz.toml#t005_null_1"] +required = true + +[[obligation]] +id = "db.functions.to-timestamp-ltz.t007" +form = "db.functions.to-timestamp-ltz" +kind = "error_parity" +target = "STRING" +note = "to-timestamp-ltz with a STRING value where the page documents INT." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-timestamp-ltz.toml#t008_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.to-timestamp-ntz.t001" +form = "db.functions.to-timestamp-ntz" +kind = "type_combination" +target = "STRING" +note = "to_timestamp_ntz of plain timestamp and date text. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-timestamp-ntz.pc.hand.toml#p001"] +required = true + +[[obligation]] +id = "db.functions.to-timestamp-ntz.t002" +form = "db.functions.to-timestamp-ntz" +kind = "type_combination" +target = "STRING" +note = "to-timestamp-ntz with arguments of type STRING." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-timestamp-ntz.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.to-timestamp-ntz.t003" +form = "db.functions.to-timestamp-ntz" +kind = "type_combination" +target = "DATE" +note = "to-timestamp-ntz with arguments of type DATE." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-timestamp-ntz.toml#t002_types_2"] +required = true + +[[obligation]] +id = "db.functions.to-timestamp-ntz.t004" +form = "db.functions.to-timestamp-ntz" +kind = "type_combination" +target = "TIMESTAMP" +note = "to-timestamp-ntz with arguments of type TIMESTAMP." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-timestamp-ntz.toml#t003_types_3"] +required = true + +[[obligation]] +id = "db.functions.to-timestamp-ntz.t005" +form = "db.functions.to-timestamp-ntz" +kind = "type_combination" +target = "TIMESTAMP_NTZ" +note = "to-timestamp-ntz with arguments of type TIMESTAMP_NTZ." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-timestamp-ntz.toml#t004_types_4"] +required = true + +[[obligation]] +id = "db.functions.to-timestamp-ntz.t006" +form = "db.functions.to-timestamp-ntz" +kind = "null_argument" +target = "STRING" +note = "to-timestamp-ntz with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-timestamp-ntz.toml#t005_null_1"] +required = true + +[[obligation]] +id = "db.functions.to-timestamp-ntz.t007" +form = "db.functions.to-timestamp-ntz" +kind = "error_parity" +target = "ARRAY" +note = "to-timestamp-ntz with a ARRAY value where the page documents STRING." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-timestamp-ntz.toml#t008_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.to-unix-timestamp.t001" +form = "db.functions.to-unix-timestamp" +kind = "type_combination" +target = "STRING" +note = "to-unix-timestamp with arguments of type STRING." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-unix-timestamp.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.to-unix-timestamp.t002" +form = "db.functions.to-unix-timestamp" +kind = "null_argument" +target = "STRING" +note = "to-unix-timestamp with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-unix-timestamp.toml#t002_null_1"] +required = true + +[[obligation]] +id = "db.functions.to-unix-timestamp.t003" +form = "db.functions.to-unix-timestamp" +kind = "error_parity" +target = "ARRAY" +note = "to-unix-timestamp with a ARRAY value where the page documents STRING." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-unix-timestamp.toml#t005_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.to-utc-timestamp.t001" +form = "db.functions.to-utc-timestamp" +kind = "type_combination" +target = "TIMESTAMP, STRING" +note = "to-utc-timestamp with arguments of type TIMESTAMP, STRING." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-utc-timestamp.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.to-utc-timestamp.t002" +form = "db.functions.to-utc-timestamp" +kind = "type_combination" +target = "TIMESTAMP_NTZ, STRING" +note = "to-utc-timestamp with arguments of type TIMESTAMP_NTZ, STRING." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-utc-timestamp.toml#t002_types_2"] +required = true + +[[obligation]] +id = "db.functions.to-utc-timestamp.t003" +form = "db.functions.to-utc-timestamp" +kind = "null_argument" +target = "TIMESTAMP, STRING" +note = "to-utc-timestamp with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-utc-timestamp.toml#t003_null_1"] +required = true + +[[obligation]] +id = "db.functions.to-utc-timestamp.t004" +form = "db.functions.to-utc-timestamp" +kind = "null_argument" +target = "TIMESTAMP, STRING" +note = "to-utc-timestamp with NULL as argument 2." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-utc-timestamp.toml#t004_null_2"] +required = true + +[[obligation]] +id = "db.functions.to-utc-timestamp.t005" +form = "db.functions.to-utc-timestamp" +kind = "error_parity" +target = "STRING, STRING" +note = "to-utc-timestamp with a STRING value where the page documents TIMESTAMP." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-utc-timestamp.toml#t009_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.to-varchar.t001" +form = "db.functions.to-varchar" +kind = "type_combination" +target = "DECIMAL(10,2)" +note = "to_varchar of a DECIMAL with a format. Hand-written." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-varchar.hand.toml#t001_number"] +required = true + +[[obligation]] +id = "db.functions.to-varchar.t002" +form = "db.functions.to-varchar" +kind = "null_argument" +target = "DECIMAL(10,2)" +note = "to_varchar of NULL. Hand-written." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-varchar.hand.toml#t002_null"] +required = true + +[[obligation]] +id = "db.functions.to-varchar.t003" +form = "db.functions.to-varchar" +kind = "type_combination" +target = "INT" +note = "to-varchar with arguments of type INT, INT. Arguments 2 onward inlined as constants." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-varchar.lit.toml#t001_types_1_lit"] +required = true + +[[obligation]] +id = "db.functions.to-varchar.t004" +form = "db.functions.to-varchar" +kind = "type_combination" +target = "STRING" +note = "to-varchar with arguments of type STRING, INT. Arguments 2 onward inlined as constants." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-varchar.lit.toml#t002_types_2_lit"] +required = true + +[[obligation]] +id = "db.functions.to-varchar.t005" +form = "db.functions.to-varchar" +kind = "type_combination" +target = "BINARY" +note = "to-varchar with arguments of type BINARY, INT. Arguments 2 onward inlined as constants." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-varchar.lit.toml#t003_types_3_lit"] +required = true + +[[obligation]] +id = "db.functions.to-varchar.t006" +form = "db.functions.to-varchar" +kind = "type_combination" +target = "DECIMAL(10,2)" +note = "to-varchar with arguments of type DECIMAL(10,2), INT. Arguments 2 onward inlined as constants." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-varchar.lit.toml#t004_types_4_lit"] +required = true + +[[obligation]] +id = "db.functions.to-varchar.t007" +form = "db.functions.to-varchar" +kind = "null_argument" +target = "INT" +note = "to-varchar with NULL as argument 1. Arguments 2 onward inlined as constants." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-varchar.lit.toml#t005_null_1_lit"] +required = true + +[[obligation]] +id = "db.functions.to-varchar.t008" +form = "db.functions.to-varchar" +kind = "null_argument" +target = "INT" +note = "to-varchar with NULL as argument 2. Arguments 2 onward inlined as constants." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-varchar.lit.toml#t006_null_2_lit"] +required = true + +[[obligation]] +id = "db.functions.to-varchar.t009" +form = "db.functions.to-varchar" +kind = "error_parity" +target = "STRING" +note = "to-varchar with a STRING value where the page documents INT. Arguments 2 onward inlined as constants." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-varchar.lit.toml#t011_wrong_kind_lit"] +required = true + +[[obligation]] +id = "db.functions.to-varchar.t010" +form = "db.functions.to-varchar" +kind = "type_combination" +target = "INT, INT" +note = "to-varchar with arguments of type INT, INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-varchar.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.to-varchar.t011" +form = "db.functions.to-varchar" +kind = "type_combination" +target = "STRING, INT" +note = "to-varchar with arguments of type STRING, INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-varchar.toml#t002_types_2"] +required = true + +[[obligation]] +id = "db.functions.to-varchar.t012" +form = "db.functions.to-varchar" +kind = "type_combination" +target = "BINARY, INT" +note = "to-varchar with arguments of type BINARY, INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-varchar.toml#t003_types_3"] +required = true + +[[obligation]] +id = "db.functions.to-varchar.t013" +form = "db.functions.to-varchar" +kind = "type_combination" +target = "DECIMAL(10,2), INT" +note = "to-varchar with arguments of type DECIMAL(10,2), INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-varchar.toml#t004_types_4"] +required = true + +[[obligation]] +id = "db.functions.to-varchar.t014" +form = "db.functions.to-varchar" +kind = "null_argument" +target = "INT, INT" +note = "to-varchar with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-varchar.toml#t005_null_1"] +required = true + +[[obligation]] +id = "db.functions.to-varchar.t015" +form = "db.functions.to-varchar" +kind = "null_argument" +target = "INT, INT" +note = "to-varchar with NULL as argument 2." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-varchar.toml#t006_null_2"] +required = true + +[[obligation]] +id = "db.functions.to-varchar.t016" +form = "db.functions.to-varchar" +kind = "error_parity" +target = "STRING, INT" +note = "to-varchar with a STRING value where the page documents INT." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-varchar.toml#t011_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.to-variant-object.t001" +form = "db.functions.to-variant-object" +kind = "type_combination" +target = "STRING" +note = "to-variant-object with arguments of type STRING." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-variant-object.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.to-variant-object.t002" +form = "db.functions.to-variant-object" +kind = "type_combination" +target = "ARRAY" +note = "to-variant-object with arguments of type ARRAY." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-variant-object.toml#t002_types_2"] +required = true + +[[obligation]] +id = "db.functions.to-variant-object.t003" +form = "db.functions.to-variant-object" +kind = "type_combination" +target = "MAP" +note = "to-variant-object with arguments of type MAP." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-variant-object.toml#t003_types_3"] +required = true + +[[obligation]] +id = "db.functions.to-variant-object.t004" +form = "db.functions.to-variant-object" +kind = "type_combination" +target = "STRUCT" +note = "to-variant-object with arguments of type STRUCT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-variant-object.toml#t004_types_4"] +required = true + +[[obligation]] +id = "db.functions.to-variant-object.t005" +form = "db.functions.to-variant-object" +kind = "null_argument" +target = "STRING" +note = "to-variant-object with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-variant-object.toml#t005_null_1"] +required = true + +[[obligation]] +id = "db.functions.to-variant-object.t006" +form = "db.functions.to-variant-object" +kind = "error_parity" +target = "ARRAY" +note = "to-variant-object with a ARRAY value where the page documents STRING." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-variant-object.toml#t008_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.to-xml.t001" +form = "db.functions.to-xml" +kind = "type_combination" +target = "STRUCT" +note = "to-xml with arguments of type STRUCT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-xml.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.to-xml.t002" +form = "db.functions.to-xml" +kind = "type_combination" +target = "VARIANT" +note = "to-xml with arguments of type VARIANT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-xml.toml#t002_types_2"] +required = true + +[[obligation]] +id = "db.functions.to-xml.t003" +form = "db.functions.to-xml" +kind = "null_argument" +target = "STRUCT" +note = "to-xml with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-xml.toml#t003_null_1"] +required = true + +[[obligation]] +id = "db.functions.to-xml.t004" +form = "db.functions.to-xml" +kind = "error_parity" +target = "STRING" +note = "to-xml with a STRING value where the page documents STRUCT." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/to-xml.toml#t004_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.transform.t001" +form = "db.functions.transform" +kind = "type_combination" +target = "ARRAY" +note = "transform over an INT array, with a NULL element. Hand-written." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/transform.hand.toml#t001_int"] +required = true + +[[obligation]] +id = "db.functions.transform.t002" +form = "db.functions.transform" +kind = "type_combination" +target = "ARRAY" +note = "transform over a STRING array. Hand-written." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/transform.hand.toml#t002_string"] +required = true + +[[obligation]] +id = "db.functions.transform.t003" +form = "db.functions.transform" +kind = "null_argument" +target = "ARRAY" +note = "transform over a NULL array. Hand-written." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/transform.hand.toml#t003_null_array"] +required = true + +[[obligation]] +id = "db.functions.transform.t004" +form = "db.functions.transform" +kind = "type_combination" +target = "ARRAY" +note = "transform with the element index. Hand-written." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/transform.hand.toml#t005_index"] +required = true + +[[obligation]] +id = "db.functions.transform-keys.t001" +form = "db.functions.transform-keys" +kind = "type_combination" +target = "MAP" +note = "transform_keys over a STRING to INT map. Hand-written." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/transform-keys.hand.toml#t001_map"] +required = true + +[[obligation]] +id = "db.functions.transform-keys.t002" +form = "db.functions.transform-keys" +kind = "null_argument" +target = "MAP" +note = "transform_keys over a NULL map. Hand-written." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/transform-keys.hand.toml#t002_null_map"] +required = true + +[[obligation]] +id = "db.functions.transform-values.t001" +form = "db.functions.transform-values" +kind = "type_combination" +target = "MAP" +note = "transform_values over a STRING to INT map. Hand-written." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/transform-values.hand.toml#t001_map"] +required = true + +[[obligation]] +id = "db.functions.transform-values.t002" +form = "db.functions.transform-values" +kind = "null_argument" +target = "MAP" +note = "transform_values over a NULL map. Hand-written." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/transform-values.hand.toml#t002_null_map"] +required = true + +[[obligation]] +id = "db.functions.translate.t001" +form = "db.functions.translate" +kind = "type_combination" +target = "STRING, STRING, STRING" +note = "translate with arguments of type STRING, STRING, STRING." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/translate.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.translate.t002" +form = "db.functions.translate" +kind = "null_argument" +target = "STRING, STRING, STRING" +note = "translate with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/translate.toml#t002_null_1"] +required = true + +[[obligation]] +id = "db.functions.translate.t003" +form = "db.functions.translate" +kind = "null_argument" +target = "STRING, STRING, STRING" +note = "translate with NULL as argument 2." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/translate.toml#t003_null_2"] +required = true + +[[obligation]] +id = "db.functions.translate.t004" +form = "db.functions.translate" +kind = "null_argument" +target = "STRING, STRING, STRING" +note = "translate with NULL as argument 3." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/translate.toml#t004_null_3"] +required = true + +[[obligation]] +id = "db.functions.translate.t005" +form = "db.functions.translate" +kind = "error_parity" +target = "ARRAY, STRING, STRING" +note = "translate with a ARRAY value where the page documents STRING." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/translate.toml#t009_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.trim.trim.t001" +form = "db.functions.trim.trim" +kind = "type_combination" +target = "STRING" +note = "trim with arguments of type STRING." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/trim.trim.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.trim.trim.t002" +form = "db.functions.trim.trim" +kind = "null_argument" +target = "STRING" +note = "trim with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/trim.trim.toml#t002_null_1"] +required = true + +[[obligation]] +id = "db.functions.trim.trim.t003" +form = "db.functions.trim.trim" +kind = "error_parity" +target = "ARRAY" +note = "trim with a ARRAY value where the page documents STRING." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/trim.trim.toml#t005_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.trim.trim-both-from.t001" +form = "db.functions.trim.trim-both-from" +kind = "type_combination" +target = "STRING" +note = "trim with arguments of type STRING." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/trim.trim-both-from.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.trim.trim-both-from.t002" +form = "db.functions.trim.trim-both-from" +kind = "null_argument" +target = "STRING" +note = "trim with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/trim.trim-both-from.toml#t002_null_1"] +required = true + +[[obligation]] +id = "db.functions.trim.trim-both-from.t003" +form = "db.functions.trim.trim-both-from" +kind = "error_parity" +target = "ARRAY" +note = "trim with a ARRAY value where the page documents STRING." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/trim.trim-both-from.toml#t005_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.trim.trim-both-from.syntax.t001" +form = "db.functions.trim.trim-both-from.syntax" +kind = "type_combination" +target = "STRING, STRING" +note = "trim with arguments of type STRING, STRING." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/trim.trim-both-from.syntax.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.trim.trim-both-from.syntax.t002" +form = "db.functions.trim.trim-both-from.syntax" +kind = "null_argument" +target = "STRING, STRING" +note = "trim with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/trim.trim-both-from.syntax.toml#t002_null_1"] +required = true + +[[obligation]] +id = "db.functions.trim.trim-both-from.syntax.t003" +form = "db.functions.trim.trim-both-from.syntax" +kind = "null_argument" +target = "STRING, STRING" +note = "trim with NULL as argument 2." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/trim.trim-both-from.syntax.toml#t003_null_2"] +required = true + +[[obligation]] +id = "db.functions.trim.trim-both-from.syntax.t004" +form = "db.functions.trim.trim-both-from.syntax" +kind = "error_parity" +target = "ARRAY, STRING" +note = "trim with a ARRAY value where the page documents STRING." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/trim.trim-both-from.syntax.toml#t008_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.trim.trim-from.t001" +form = "db.functions.trim.trim-from" +kind = "type_combination" +target = "STRING, STRING" +note = "trim with arguments of type STRING, STRING." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/trim.trim-from.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.trim.trim-from.t002" +form = "db.functions.trim.trim-from" +kind = "null_argument" +target = "STRING, STRING" +note = "trim with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/trim.trim-from.toml#t002_null_1"] +required = true + +[[obligation]] +id = "db.functions.trim.trim-from.t003" +form = "db.functions.trim.trim-from" +kind = "null_argument" +target = "STRING, STRING" +note = "trim with NULL as argument 2." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/trim.trim-from.toml#t003_null_2"] +required = true + +[[obligation]] +id = "db.functions.trim.trim-from.t004" +form = "db.functions.trim.trim-from" +kind = "error_parity" +target = "ARRAY, STRING" +note = "trim with a ARRAY value where the page documents STRING." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/trim.trim-from.toml#t008_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.trim.trim-leading-from.t001" +form = "db.functions.trim.trim-leading-from" +kind = "type_combination" +target = "STRING" +note = "trim with arguments of type STRING." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/trim.trim-leading-from.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.trim.trim-leading-from.t002" +form = "db.functions.trim.trim-leading-from" +kind = "null_argument" +target = "STRING" +note = "trim with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/trim.trim-leading-from.toml#t002_null_1"] +required = true + +[[obligation]] +id = "db.functions.trim.trim-leading-from.t003" +form = "db.functions.trim.trim-leading-from" +kind = "error_parity" +target = "ARRAY" +note = "trim with a ARRAY value where the page documents STRING." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/trim.trim-leading-from.toml#t005_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.trim.trim-leading-from.syntax.t001" +form = "db.functions.trim.trim-leading-from.syntax" +kind = "type_combination" +target = "STRING, STRING" +note = "trim with arguments of type STRING, STRING." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/trim.trim-leading-from.syntax.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.trim.trim-leading-from.syntax.t002" +form = "db.functions.trim.trim-leading-from.syntax" +kind = "null_argument" +target = "STRING, STRING" +note = "trim with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/trim.trim-leading-from.syntax.toml#t002_null_1"] +required = true + +[[obligation]] +id = "db.functions.trim.trim-leading-from.syntax.t003" +form = "db.functions.trim.trim-leading-from.syntax" +kind = "null_argument" +target = "STRING, STRING" +note = "trim with NULL as argument 2." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/trim.trim-leading-from.syntax.toml#t003_null_2"] +required = true + +[[obligation]] +id = "db.functions.trim.trim-leading-from.syntax.t004" +form = "db.functions.trim.trim-leading-from.syntax" +kind = "error_parity" +target = "ARRAY, STRING" +note = "trim with a ARRAY value where the page documents STRING." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/trim.trim-leading-from.syntax.toml#t008_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.trim.trim-trailing-from.t001" +form = "db.functions.trim.trim-trailing-from" +kind = "type_combination" +target = "STRING" +note = "trim with arguments of type STRING." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/trim.trim-trailing-from.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.trim.trim-trailing-from.t002" +form = "db.functions.trim.trim-trailing-from" +kind = "null_argument" +target = "STRING" +note = "trim with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/trim.trim-trailing-from.toml#t002_null_1"] +required = true + +[[obligation]] +id = "db.functions.trim.trim-trailing-from.t003" +form = "db.functions.trim.trim-trailing-from" +kind = "error_parity" +target = "ARRAY" +note = "trim with a ARRAY value where the page documents STRING." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/trim.trim-trailing-from.toml#t005_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.trim.trim-trailing-from.syntax.t001" +form = "db.functions.trim.trim-trailing-from.syntax" +kind = "type_combination" +target = "STRING, STRING" +note = "trim with arguments of type STRING, STRING." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/trim.trim-trailing-from.syntax.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.trim.trim-trailing-from.syntax.t002" +form = "db.functions.trim.trim-trailing-from.syntax" +kind = "null_argument" +target = "STRING, STRING" +note = "trim with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/trim.trim-trailing-from.syntax.toml#t002_null_1"] +required = true + +[[obligation]] +id = "db.functions.trim.trim-trailing-from.syntax.t003" +form = "db.functions.trim.trim-trailing-from.syntax" +kind = "null_argument" +target = "STRING, STRING" +note = "trim with NULL as argument 2." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/trim.trim-trailing-from.syntax.toml#t003_null_2"] +required = true + +[[obligation]] +id = "db.functions.trim.trim-trailing-from.syntax.t004" +form = "db.functions.trim.trim-trailing-from.syntax" +kind = "error_parity" +target = "ARRAY, STRING" +note = "trim with a ARRAY value where the page documents STRING." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/trim.trim-trailing-from.syntax.toml#t008_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.trunc.t001" +form = "db.functions.trunc" +kind = "type_combination" +target = "DATE, STRING" +note = "trunc with arguments of type DATE, STRING." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/trunc.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.trunc.t002" +form = "db.functions.trunc" +kind = "null_argument" +target = "DATE, STRING" +note = "trunc with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/trunc.toml#t002_null_1"] +required = true + +[[obligation]] +id = "db.functions.trunc.t003" +form = "db.functions.trunc" +kind = "null_argument" +target = "DATE, STRING" +note = "trunc with NULL as argument 2." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/trunc.toml#t003_null_2"] +required = true + +[[obligation]] +id = "db.functions.trunc.t004" +form = "db.functions.trunc" +kind = "error_parity" +target = "STRING, STRING" +note = "trunc with a STRING value where the page documents DATE." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/trunc.toml#t008_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.try-add.t001" +form = "db.functions.try-add" +kind = "type_combination" +target = "INT, INT" +note = "try-add with arguments of type INT, INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-add.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.try-add.t002" +form = "db.functions.try-add" +kind = "type_combination" +target = "DATE, INT" +note = "try-add with arguments of type DATE, INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-add.toml#t002_types_2"] +required = true + +[[obligation]] +id = "db.functions.try-add.t003" +form = "db.functions.try-add" +kind = "type_combination" +target = "TIMESTAMP, INT" +note = "try-add with arguments of type TIMESTAMP, INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-add.toml#t003_types_3"] +required = true + +[[obligation]] +id = "db.functions.try-add.t004" +form = "db.functions.try-add" +kind = "type_combination" +target = "INTERVAL DAY, INT" +note = "try-add with arguments of type INTERVAL DAY, INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-add.toml#t004_types_4"] +required = true + +[[obligation]] +id = "db.functions.try-add.t005" +form = "db.functions.try-add" +kind = "null_argument" +target = "INT, INT" +note = "try-add with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-add.toml#t005_null_1"] +required = true + +[[obligation]] +id = "db.functions.try-add.t006" +form = "db.functions.try-add" +kind = "null_argument" +target = "INT, INT" +note = "try-add with NULL as argument 2." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-add.toml#t006_null_2"] +required = true + +[[obligation]] +id = "db.functions.try-add.t007" +form = "db.functions.try-add" +kind = "error_parity" +target = "STRING, INT" +note = "try-add with a STRING value where the page documents INT." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-add.toml#t011_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.try-aes-decrypt.t001" +form = "db.functions.try-aes-decrypt" +kind = "type_combination" +target = "BINARY, BINARY" +note = "try-aes-decrypt with arguments of type BINARY, BINARY." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-aes-decrypt.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.try-aes-decrypt.t002" +form = "db.functions.try-aes-decrypt" +kind = "null_argument" +target = "BINARY, BINARY" +note = "try-aes-decrypt with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-aes-decrypt.toml#t002_null_1"] +required = true + +[[obligation]] +id = "db.functions.try-aes-decrypt.t003" +form = "db.functions.try-aes-decrypt" +kind = "null_argument" +target = "BINARY, BINARY" +note = "try-aes-decrypt with NULL as argument 2." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-aes-decrypt.toml#t003_null_2"] +required = true + +[[obligation]] +id = "db.functions.try-aes-decrypt.t004" +form = "db.functions.try-aes-decrypt" +kind = "error_parity" +target = "STRING, BINARY" +note = "try-aes-decrypt with a STRING value where the page documents BINARY." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-aes-decrypt.toml#t006_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.try-avg.t001" +form = "db.functions.try-avg" +kind = "type_combination" +target = "INT" +note = "try-avg with arguments of type INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-avg.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.try-avg.t002" +form = "db.functions.try-avg" +kind = "type_combination" +target = "INTERVAL DAY" +note = "try-avg with arguments of type INTERVAL DAY." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-avg.toml#t002_types_2"] +required = true + +[[obligation]] +id = "db.functions.try-avg.t003" +form = "db.functions.try-avg" +kind = "type_combination" +target = "DECIMAL(10,2)" +note = "try-avg with arguments of type DECIMAL(10,2)." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-avg.toml#t003_types_3"] +required = true + +[[obligation]] +id = "db.functions.try-avg.t004" +form = "db.functions.try-avg" +kind = "type_combination" +target = "INTERVAL YEAR TO MONTH" +note = "try-avg with arguments of type INTERVAL YEAR TO MONTH." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-avg.toml#t004_types_4"] +required = true + +[[obligation]] +id = "db.functions.try-avg.t005" +form = "db.functions.try-avg" +kind = "null_argument" +target = "INT" +note = "try-avg with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-avg.toml#t005_null_1"] +required = true + +[[obligation]] +id = "db.functions.try-avg.t006" +form = "db.functions.try-avg" +kind = "error_parity" +target = "STRING" +note = "try-avg with a STRING value where the page documents INT." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-avg.toml#t008_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.try-cast.t001" +form = "db.functions.try-cast" +kind = "null_argument" +target = "STRING" +note = "try_cast of NULL. Hand-written for the phase-2 recording." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-cast.null.pa.hand.toml#p001"] +required = true + +[[obligation]] +id = "db.functions.try-cast.t002" +form = "db.functions.try-cast" +kind = "type_combination" +target = "STRING" +note = "try_cast of STRING to INT, NULL where the text reads as none. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-cast.string-int.pa.hand.toml#p001"] +required = true + +[[obligation]] +id = "db.functions.try-divide.t001" +form = "db.functions.try-divide" +kind = "type_combination" +target = "INT, INT" +note = "try-divide with arguments of type INT, INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-divide.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.try-divide.t002" +form = "db.functions.try-divide" +kind = "type_combination" +target = "INTERVAL DAY, INT" +note = "try-divide with arguments of type INTERVAL DAY, INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-divide.toml#t002_types_2"] +required = true + +[[obligation]] +id = "db.functions.try-divide.t003" +form = "db.functions.try-divide" +kind = "type_combination" +target = "DECIMAL(10,2), INT" +note = "try-divide with arguments of type DECIMAL(10,2), INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-divide.toml#t003_types_3"] +required = true + +[[obligation]] +id = "db.functions.try-divide.t004" +form = "db.functions.try-divide" +kind = "type_combination" +target = "INTERVAL YEAR TO MONTH, INT" +note = "try-divide with arguments of type INTERVAL YEAR TO MONTH, INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-divide.toml#t004_types_4"] +required = true + +[[obligation]] +id = "db.functions.try-divide.t005" +form = "db.functions.try-divide" +kind = "null_argument" +target = "INT, INT" +note = "try-divide with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-divide.toml#t005_null_1"] +required = true + +[[obligation]] +id = "db.functions.try-divide.t006" +form = "db.functions.try-divide" +kind = "null_argument" +target = "INT, INT" +note = "try-divide with NULL as argument 2." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-divide.toml#t006_null_2"] +required = true + +[[obligation]] +id = "db.functions.try-divide.t007" +form = "db.functions.try-divide" +kind = "error_parity" +target = "STRING, INT" +note = "try-divide with a STRING value where the page documents INT." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-divide.toml#t011_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.try-element-at.t001" +form = "db.functions.try-element-at" +kind = "type_combination" +target = "ARRAY, INT" +note = "try-element-at with arguments of type ARRAY, INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-element-at.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.try-element-at.t002" +form = "db.functions.try-element-at" +kind = "type_combination" +target = "ARRAY, INT" +note = "try-element-at with arguments of type ARRAY, INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-element-at.toml#t002_types_2"] +required = true + +[[obligation]] +id = "db.functions.try-element-at.t003" +form = "db.functions.try-element-at" +kind = "type_combination" +target = "ARRAY, BIGINT" +note = "try-element-at with arguments of type ARRAY, BIGINT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-element-at.toml#t003_types_3"] +required = true + +[[obligation]] +id = "db.functions.try-element-at.t004" +form = "db.functions.try-element-at" +kind = "type_combination" +target = "ARRAY, SMALLINT" +note = "try-element-at with arguments of type ARRAY, SMALLINT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-element-at.toml#t004_types_4"] +required = true + +[[obligation]] +id = "db.functions.try-element-at.t005" +form = "db.functions.try-element-at" +kind = "null_argument" +target = "ARRAY, INT" +note = "try-element-at with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-element-at.toml#t005_null_1"] +required = true + +[[obligation]] +id = "db.functions.try-element-at.t006" +form = "db.functions.try-element-at" +kind = "null_argument" +target = "ARRAY, INT" +note = "try-element-at with NULL as argument 2." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-element-at.toml#t006_null_2"] +required = true + +[[obligation]] +id = "db.functions.try-element-at.t007" +form = "db.functions.try-element-at" +kind = "error_parity" +target = "STRING, INT" +note = "try-element-at with a STRING value where the page documents ARRAY." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-element-at.toml#t011_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.try-ip-as-binary.t001" +form = "db.functions.try-ip-as-binary" +kind = "type_combination" +target = "STRING" +note = "try-ip-as-binary with arguments of type STRING." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-ip-as-binary.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.try-ip-as-binary.t002" +form = "db.functions.try-ip-as-binary" +kind = "type_combination" +target = "BINARY" +note = "try-ip-as-binary with arguments of type BINARY." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-ip-as-binary.toml#t002_types_2"] +required = true + +[[obligation]] +id = "db.functions.try-ip-as-binary.t003" +form = "db.functions.try-ip-as-binary" +kind = "null_argument" +target = "STRING" +note = "try-ip-as-binary with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-ip-as-binary.toml#t003_null_1"] +required = true + +[[obligation]] +id = "db.functions.try-ip-as-binary.t004" +form = "db.functions.try-ip-as-binary" +kind = "error_parity" +target = "ARRAY" +note = "try-ip-as-binary with a ARRAY value where the page documents STRING." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-ip-as-binary.toml#t006_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.try-ip-as-string.t001" +form = "db.functions.try-ip-as-string" +kind = "type_combination" +target = "STRING" +note = "try-ip-as-string with arguments of type STRING." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-ip-as-string.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.try-ip-as-string.t002" +form = "db.functions.try-ip-as-string" +kind = "type_combination" +target = "BINARY" +note = "try-ip-as-string with arguments of type BINARY." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-ip-as-string.toml#t002_types_2"] +required = true + +[[obligation]] +id = "db.functions.try-ip-as-string.t003" +form = "db.functions.try-ip-as-string" +kind = "null_argument" +target = "STRING" +note = "try-ip-as-string with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-ip-as-string.toml#t003_null_1"] +required = true + +[[obligation]] +id = "db.functions.try-ip-as-string.t004" +form = "db.functions.try-ip-as-string" +kind = "error_parity" +target = "ARRAY" +note = "try-ip-as-string with a ARRAY value where the page documents STRING." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-ip-as-string.toml#t006_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.try-ip-cidr.t001" +form = "db.functions.try-ip-cidr" +kind = "type_combination" +target = "STRING" +note = "try-ip-cidr with arguments of type STRING." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-ip-cidr.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.try-ip-cidr.t002" +form = "db.functions.try-ip-cidr" +kind = "type_combination" +target = "BINARY" +note = "try-ip-cidr with arguments of type BINARY." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-ip-cidr.toml#t002_types_2"] +required = true + +[[obligation]] +id = "db.functions.try-ip-cidr.t003" +form = "db.functions.try-ip-cidr" +kind = "null_argument" +target = "STRING" +note = "try-ip-cidr with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-ip-cidr.toml#t003_null_1"] +required = true + +[[obligation]] +id = "db.functions.try-ip-cidr.t004" +form = "db.functions.try-ip-cidr" +kind = "error_parity" +target = "ARRAY" +note = "try-ip-cidr with a ARRAY value where the page documents STRING." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-ip-cidr.toml#t006_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.try-ip-host.t001" +form = "db.functions.try-ip-host" +kind = "type_combination" +target = "STRING" +note = "try_ip_host returning NULL for invalid input. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-ip-host.np.hand.toml#p001"] +required = true + +[[obligation]] +id = "db.functions.try-ip-host.t002" +form = "db.functions.try-ip-host" +kind = "type_combination" +target = "STRING" +note = "try-ip-host with arguments of type STRING." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-ip-host.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.try-ip-host.t003" +form = "db.functions.try-ip-host" +kind = "type_combination" +target = "BINARY" +note = "try-ip-host with arguments of type BINARY." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-ip-host.toml#t002_types_2"] +required = true + +[[obligation]] +id = "db.functions.try-ip-host.t004" +form = "db.functions.try-ip-host" +kind = "null_argument" +target = "STRING" +note = "try-ip-host with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-ip-host.toml#t003_null_1"] +required = true + +[[obligation]] +id = "db.functions.try-ip-host.t005" +form = "db.functions.try-ip-host" +kind = "error_parity" +target = "ARRAY" +note = "try-ip-host with a ARRAY value where the page documents STRING." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-ip-host.toml#t006_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.try-make-interval.t001" +form = "db.functions.try-make-interval" +kind = "type_combination" +target = "INT" +note = "try-make-interval with arguments of type INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-make-interval.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.try-make-interval.t002" +form = "db.functions.try-make-interval" +kind = "type_combination" +target = "BIGINT" +note = "try-make-interval with arguments of type BIGINT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-make-interval.toml#t002_types_2"] +required = true + +[[obligation]] +id = "db.functions.try-make-interval.t003" +form = "db.functions.try-make-interval" +kind = "type_combination" +target = "SMALLINT" +note = "try-make-interval with arguments of type SMALLINT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-make-interval.toml#t003_types_3"] +required = true + +[[obligation]] +id = "db.functions.try-make-interval.t004" +form = "db.functions.try-make-interval" +kind = "null_argument" +target = "INT" +note = "try-make-interval with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-make-interval.toml#t004_null_1"] +required = true + +[[obligation]] +id = "db.functions.try-make-interval.t005" +form = "db.functions.try-make-interval" +kind = "error_parity" +target = "STRING" +note = "try-make-interval with a STRING value where the page documents INT." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-make-interval.toml#t007_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.try-make-timestamp.t001" +form = "db.functions.try-make-timestamp" +kind = "type_combination" +target = "INT, INT, INT, INT, INT, INT" +note = "try_make_timestamp of a day its month lacks, a leap day and a month past 12. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-make-timestamp.pc.hand.toml#p001"] +required = true + +[[obligation]] +id = "db.functions.try-make-timestamp.t002" +form = "db.functions.try-make-timestamp" +kind = "type_combination" +target = "STRING" +note = "try_make_timestamp of a year read from text. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-make-timestamp.pc2.hand.toml#p001"] +required = true + +[[obligation]] +id = "db.functions.try-make-timestamp.t003" +form = "db.functions.try-make-timestamp" +kind = "type_combination" +target = "INT, INT, INT, INT, INT, INT" +note = "try-make-timestamp with arguments of type INT, INT, INT, INT, INT, INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-make-timestamp.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.try-make-timestamp.t004" +form = "db.functions.try-make-timestamp" +kind = "type_combination" +target = "BIGINT, INT, INT, INT, INT, INT" +note = "try-make-timestamp with arguments of type BIGINT, INT, INT, INT, INT, INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-make-timestamp.toml#t002_types_2"] +required = true + +[[obligation]] +id = "db.functions.try-make-timestamp.t005" +form = "db.functions.try-make-timestamp" +kind = "type_combination" +target = "SMALLINT, INT, INT, INT, INT, INT" +note = "try-make-timestamp with arguments of type SMALLINT, INT, INT, INT, INT, INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-make-timestamp.toml#t003_types_3"] +required = true + +[[obligation]] +id = "db.functions.try-make-timestamp.t006" +form = "db.functions.try-make-timestamp" +kind = "type_combination" +target = "INT, BIGINT, INT, INT, INT, INT" +note = "try-make-timestamp with arguments of type INT, BIGINT, INT, INT, INT, INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-make-timestamp.toml#t004_types_4"] +required = true + +[[obligation]] +id = "db.functions.try-make-timestamp.t007" +form = "db.functions.try-make-timestamp" +kind = "null_argument" +target = "INT, INT, INT, INT, INT, INT" +note = "try-make-timestamp with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-make-timestamp.toml#t005_null_1"] +required = true + +[[obligation]] +id = "db.functions.try-make-timestamp.t008" +form = "db.functions.try-make-timestamp" +kind = "null_argument" +target = "INT, INT, INT, INT, INT, INT" +note = "try-make-timestamp with NULL as argument 2." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-make-timestamp.toml#t006_null_2"] +required = true + +[[obligation]] +id = "db.functions.try-make-timestamp.t009" +form = "db.functions.try-make-timestamp" +kind = "null_argument" +target = "INT, INT, INT, INT, INT, INT" +note = "try-make-timestamp with NULL as argument 3." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-make-timestamp.toml#t007_null_3"] +required = true + +[[obligation]] +id = "db.functions.try-make-timestamp.t010" +form = "db.functions.try-make-timestamp" +kind = "null_argument" +target = "INT, INT, INT, INT, INT, INT" +note = "try-make-timestamp with NULL as argument 4." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-make-timestamp.toml#t008_null_4"] +required = true + +[[obligation]] +id = "db.functions.try-make-timestamp.t011" +form = "db.functions.try-make-timestamp" +kind = "null_argument" +target = "INT, INT, INT, INT, INT, INT" +note = "try-make-timestamp with NULL as argument 5." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-make-timestamp.toml#t009_null_5"] +required = true + +[[obligation]] +id = "db.functions.try-make-timestamp.t012" +form = "db.functions.try-make-timestamp" +kind = "null_argument" +target = "INT, INT, INT, INT, INT, INT" +note = "try-make-timestamp with NULL as argument 6." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-make-timestamp.toml#t010_null_6"] +required = true + +[[obligation]] +id = "db.functions.try-make-timestamp.t013" +form = "db.functions.try-make-timestamp" +kind = "error_parity" +target = "STRING, INT, INT, INT, INT, INT" +note = "try-make-timestamp with a STRING value where the page documents INT." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-make-timestamp.toml#t015_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.try-make-timestamp-ltz.t001" +form = "db.functions.try-make-timestamp-ltz" +kind = "type_combination" +target = "INT, INT, INT, INT, INT, INT" +note = "try-make-timestamp-ltz with arguments of type INT, INT, INT, INT, INT, INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-make-timestamp-ltz.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.try-make-timestamp-ltz.t002" +form = "db.functions.try-make-timestamp-ltz" +kind = "type_combination" +target = "BIGINT, INT, INT, INT, INT, INT" +note = "try-make-timestamp-ltz with arguments of type BIGINT, INT, INT, INT, INT, INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-make-timestamp-ltz.toml#t002_types_2"] +required = true + +[[obligation]] +id = "db.functions.try-make-timestamp-ltz.t003" +form = "db.functions.try-make-timestamp-ltz" +kind = "type_combination" +target = "SMALLINT, INT, INT, INT, INT, INT" +note = "try-make-timestamp-ltz with arguments of type SMALLINT, INT, INT, INT, INT, INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-make-timestamp-ltz.toml#t003_types_3"] +required = true + +[[obligation]] +id = "db.functions.try-make-timestamp-ltz.t004" +form = "db.functions.try-make-timestamp-ltz" +kind = "type_combination" +target = "INT, BIGINT, INT, INT, INT, INT" +note = "try-make-timestamp-ltz with arguments of type INT, BIGINT, INT, INT, INT, INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-make-timestamp-ltz.toml#t004_types_4"] +required = true + +[[obligation]] +id = "db.functions.try-make-timestamp-ltz.t005" +form = "db.functions.try-make-timestamp-ltz" +kind = "null_argument" +target = "INT, INT, INT, INT, INT, INT" +note = "try-make-timestamp-ltz with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-make-timestamp-ltz.toml#t005_null_1"] +required = true + +[[obligation]] +id = "db.functions.try-make-timestamp-ltz.t006" +form = "db.functions.try-make-timestamp-ltz" +kind = "null_argument" +target = "INT, INT, INT, INT, INT, INT" +note = "try-make-timestamp-ltz with NULL as argument 2." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-make-timestamp-ltz.toml#t006_null_2"] +required = true + +[[obligation]] +id = "db.functions.try-make-timestamp-ltz.t007" +form = "db.functions.try-make-timestamp-ltz" +kind = "null_argument" +target = "INT, INT, INT, INT, INT, INT" +note = "try-make-timestamp-ltz with NULL as argument 3." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-make-timestamp-ltz.toml#t007_null_3"] +required = true + +[[obligation]] +id = "db.functions.try-make-timestamp-ltz.t008" +form = "db.functions.try-make-timestamp-ltz" +kind = "null_argument" +target = "INT, INT, INT, INT, INT, INT" +note = "try-make-timestamp-ltz with NULL as argument 4." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-make-timestamp-ltz.toml#t008_null_4"] +required = true + +[[obligation]] +id = "db.functions.try-make-timestamp-ltz.t009" +form = "db.functions.try-make-timestamp-ltz" +kind = "null_argument" +target = "INT, INT, INT, INT, INT, INT" +note = "try-make-timestamp-ltz with NULL as argument 5." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-make-timestamp-ltz.toml#t009_null_5"] +required = true + +[[obligation]] +id = "db.functions.try-make-timestamp-ltz.t010" +form = "db.functions.try-make-timestamp-ltz" +kind = "null_argument" +target = "INT, INT, INT, INT, INT, INT" +note = "try-make-timestamp-ltz with NULL as argument 6." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-make-timestamp-ltz.toml#t010_null_6"] +required = true + +[[obligation]] +id = "db.functions.try-make-timestamp-ltz.t011" +form = "db.functions.try-make-timestamp-ltz" +kind = "error_parity" +target = "STRING, INT, INT, INT, INT, INT" +note = "try-make-timestamp-ltz with a STRING value where the page documents INT." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-make-timestamp-ltz.toml#t015_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.try-make-timestamp-ntz.t001" +form = "db.functions.try-make-timestamp-ntz" +kind = "type_combination" +target = "INT, INT, INT, INT, INT, INT" +note = "try-make-timestamp-ntz with arguments of type INT, INT, INT, INT, INT, INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-make-timestamp-ntz.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.try-make-timestamp-ntz.t002" +form = "db.functions.try-make-timestamp-ntz" +kind = "type_combination" +target = "BIGINT, INT, INT, INT, INT, INT" +note = "try-make-timestamp-ntz with arguments of type BIGINT, INT, INT, INT, INT, INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-make-timestamp-ntz.toml#t002_types_2"] +required = true + +[[obligation]] +id = "db.functions.try-make-timestamp-ntz.t003" +form = "db.functions.try-make-timestamp-ntz" +kind = "type_combination" +target = "SMALLINT, INT, INT, INT, INT, INT" +note = "try-make-timestamp-ntz with arguments of type SMALLINT, INT, INT, INT, INT, INT." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-make-timestamp-ntz.toml#t003_types_3"] +required = true + +[[obligation]] +id = "db.functions.try-make-timestamp-ntz.t004" +form = "db.functions.try-make-timestamp-ntz" +kind = "type_combination" +target = "INT, BIGINT, INT, INT, INT, INT" +note = "try-make-timestamp-ntz with arguments of type INT, BIGINT, INT, INT, INT, INT." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/translate.toml#t004_null_3"] +cases = ["cases/translation/functions/try-make-timestamp-ntz.toml#t004_types_4"] required = true [[obligation]] -id = "db.functions.translate.t005" -form = "db.functions.translate" -kind = "error_parity" -target = "ARRAY, STRING, STRING" -note = "translate with a ARRAY value where the page documents STRING." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.try-make-timestamp-ntz.t005" +form = "db.functions.try-make-timestamp-ntz" +kind = "null_argument" +target = "INT, INT, INT, INT, INT, INT" +note = "try-make-timestamp-ntz with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/translate.toml#t009_wrong_kind"] +cases = ["cases/translation/functions/try-make-timestamp-ntz.toml#t005_null_1"] required = true [[obligation]] -id = "db.functions.trim.trim.t001" -form = "db.functions.trim.trim" -kind = "type_combination" -target = "STRING" -note = "trim with arguments of type STRING." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.try-make-timestamp-ntz.t006" +form = "db.functions.try-make-timestamp-ntz" +kind = "null_argument" +target = "INT, INT, INT, INT, INT, INT" +note = "try-make-timestamp-ntz with NULL as argument 2." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/trim.trim.toml#t001_types_1"] +cases = ["cases/translation/functions/try-make-timestamp-ntz.toml#t006_null_2"] required = true [[obligation]] -id = "db.functions.trim.trim.t002" -form = "db.functions.trim.trim" +id = "db.functions.try-make-timestamp-ntz.t007" +form = "db.functions.try-make-timestamp-ntz" kind = "null_argument" -target = "STRING" -note = "trim with NULL as argument 1." +target = "INT, INT, INT, INT, INT, INT" +note = "try-make-timestamp-ntz with NULL as argument 3." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/trim.trim.toml#t002_null_1"] +cases = ["cases/translation/functions/try-make-timestamp-ntz.toml#t007_null_3"] required = true [[obligation]] -id = "db.functions.trim.trim.t003" -form = "db.functions.trim.trim" -kind = "error_parity" -target = "ARRAY" -note = "trim with a ARRAY value where the page documents STRING." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.try-make-timestamp-ntz.t008" +form = "db.functions.try-make-timestamp-ntz" +kind = "null_argument" +target = "INT, INT, INT, INT, INT, INT" +note = "try-make-timestamp-ntz with NULL as argument 4." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/trim.trim.toml#t005_wrong_kind"] +cases = ["cases/translation/functions/try-make-timestamp-ntz.toml#t008_null_4"] required = true [[obligation]] -id = "db.functions.trim.trim-both-from.t001" -form = "db.functions.trim.trim-both-from" -kind = "type_combination" -target = "STRING" -note = "trim with arguments of type STRING." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.try-make-timestamp-ntz.t009" +form = "db.functions.try-make-timestamp-ntz" +kind = "null_argument" +target = "INT, INT, INT, INT, INT, INT" +note = "try-make-timestamp-ntz with NULL as argument 5." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/trim.trim-both-from.toml#t001_types_1"] +cases = ["cases/translation/functions/try-make-timestamp-ntz.toml#t009_null_5"] required = true [[obligation]] -id = "db.functions.trim.trim-both-from.t002" -form = "db.functions.trim.trim-both-from" +id = "db.functions.try-make-timestamp-ntz.t010" +form = "db.functions.try-make-timestamp-ntz" kind = "null_argument" -target = "STRING" -note = "trim with NULL as argument 1." +target = "INT, INT, INT, INT, INT, INT" +note = "try-make-timestamp-ntz with NULL as argument 6." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/trim.trim-both-from.toml#t002_null_1"] +cases = ["cases/translation/functions/try-make-timestamp-ntz.toml#t010_null_6"] required = true [[obligation]] -id = "db.functions.trim.trim-both-from.t003" -form = "db.functions.trim.trim-both-from" +id = "db.functions.try-make-timestamp-ntz.t011" +form = "db.functions.try-make-timestamp-ntz" kind = "error_parity" -target = "ARRAY" -note = "trim with a ARRAY value where the page documents STRING." +target = "STRING, INT, INT, INT, INT, INT" +note = "try-make-timestamp-ntz with a STRING value where the page documents INT." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/trim.trim-both-from.toml#t005_wrong_kind"] +cases = ["cases/translation/functions/try-make-timestamp-ntz.toml#t015_wrong_kind"] required = true [[obligation]] -id = "db.functions.trim.trim-both-from.syntax.t001" -form = "db.functions.trim.trim-both-from.syntax" +id = "db.functions.try-mod.t001" +form = "db.functions.try-mod" kind = "type_combination" -target = "STRING, STRING" -note = "trim with arguments of type STRING, STRING." +target = "STRING, INT" +note = "try_mod of numeric text. Hand-written for the phase-2 recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/trim.trim-both-from.syntax.toml#t001_types_1"] +cases = ["cases/translation/functions/try-mod.pb.hand.toml#p001"] required = true [[obligation]] -id = "db.functions.trim.trim-both-from.syntax.t002" -form = "db.functions.trim.trim-both-from.syntax" -kind = "null_argument" -target = "STRING, STRING" -note = "trim with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.try-mod.t002" +form = "db.functions.try-mod" +kind = "type_combination" +target = "INT, INT" +note = "try-mod with arguments of type INT, INT." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/trim.trim-both-from.syntax.toml#t002_null_1"] +cases = ["cases/translation/functions/try-mod.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.trim.trim-both-from.syntax.t003" -form = "db.functions.trim.trim-both-from.syntax" -kind = "null_argument" -target = "STRING, STRING" -note = "trim with NULL as argument 2." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.try-mod.t003" +form = "db.functions.try-mod" +kind = "type_combination" +target = "DECIMAL(10,2), INT" +note = "try-mod with arguments of type DECIMAL(10,2), INT." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/trim.trim-both-from.syntax.toml#t003_null_2"] +cases = ["cases/translation/functions/try-mod.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.trim.trim-both-from.syntax.t004" -form = "db.functions.trim.trim-both-from.syntax" -kind = "error_parity" -target = "ARRAY, STRING" -note = "trim with a ARRAY value where the page documents STRING." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.try-mod.t004" +form = "db.functions.try-mod" +kind = "type_combination" +target = "DOUBLE, INT" +note = "try-mod with arguments of type DOUBLE, INT." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/trim.trim-both-from.syntax.toml#t008_wrong_kind"] +cases = ["cases/translation/functions/try-mod.toml#t003_types_3"] required = true [[obligation]] -id = "db.functions.trim.trim-from.t001" -form = "db.functions.trim.trim-from" +id = "db.functions.try-mod.t005" +form = "db.functions.try-mod" kind = "type_combination" -target = "STRING, STRING" -note = "trim with arguments of type STRING, STRING." +target = "INT, DECIMAL(10,2)" +note = "try-mod with arguments of type INT, DECIMAL(10,2)." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/trim.trim-from.toml#t001_types_1"] +cases = ["cases/translation/functions/try-mod.toml#t004_types_4"] required = true [[obligation]] -id = "db.functions.trim.trim-from.t002" -form = "db.functions.trim.trim-from" +id = "db.functions.try-mod.t006" +form = "db.functions.try-mod" kind = "null_argument" -target = "STRING, STRING" -note = "trim with NULL as argument 1." +target = "INT, INT" +note = "try-mod with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/trim.trim-from.toml#t002_null_1"] +cases = ["cases/translation/functions/try-mod.toml#t005_null_1"] required = true [[obligation]] -id = "db.functions.trim.trim-from.t003" -form = "db.functions.trim.trim-from" +id = "db.functions.try-mod.t007" +form = "db.functions.try-mod" kind = "null_argument" -target = "STRING, STRING" -note = "trim with NULL as argument 2." +target = "INT, INT" +note = "try-mod with NULL as argument 2." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/trim.trim-from.toml#t003_null_2"] +cases = ["cases/translation/functions/try-mod.toml#t006_null_2"] required = true [[obligation]] -id = "db.functions.trim.trim-from.t004" -form = "db.functions.trim.trim-from" +id = "db.functions.try-mod.t008" +form = "db.functions.try-mod" kind = "error_parity" -target = "ARRAY, STRING" -note = "trim with a ARRAY value where the page documents STRING." +target = "STRING, INT" +note = "try-mod with a STRING value where the page documents INT." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/trim.trim-from.toml#t008_wrong_kind"] +cases = ["cases/translation/functions/try-mod.toml#t011_wrong_kind"] required = true [[obligation]] -id = "db.functions.trim.trim-leading-from.t001" -form = "db.functions.trim.trim-leading-from" +id = "db.functions.try-multiply.t001" +form = "db.functions.try-multiply" kind = "type_combination" -target = "STRING" -note = "trim with arguments of type STRING." +target = "INT, INT" +note = "try-multiply with arguments of type INT, INT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/trim.trim-leading-from.toml#t001_types_1"] +cases = ["cases/translation/functions/try-multiply.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.trim.trim-leading-from.t002" -form = "db.functions.trim.trim-leading-from" -kind = "null_argument" -target = "STRING" -note = "trim with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.try-multiply.t002" +form = "db.functions.try-multiply" +kind = "type_combination" +target = "INTERVAL DAY, INT" +note = "try-multiply with arguments of type INTERVAL DAY, INT." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/trim.trim-leading-from.toml#t002_null_1"] +cases = ["cases/translation/functions/try-multiply.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.trim.trim-leading-from.t003" -form = "db.functions.trim.trim-leading-from" -kind = "error_parity" -target = "ARRAY" -note = "trim with a ARRAY value where the page documents STRING." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.try-multiply.t003" +form = "db.functions.try-multiply" +kind = "type_combination" +target = "DECIMAL(10,2), INT" +note = "try-multiply with arguments of type DECIMAL(10,2), INT." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/trim.trim-leading-from.toml#t005_wrong_kind"] +cases = ["cases/translation/functions/try-multiply.toml#t003_types_3"] required = true [[obligation]] -id = "db.functions.trim.trim-leading-from.syntax.t001" -form = "db.functions.trim.trim-leading-from.syntax" +id = "db.functions.try-multiply.t004" +form = "db.functions.try-multiply" kind = "type_combination" -target = "STRING, STRING" -note = "trim with arguments of type STRING, STRING." +target = "INTERVAL YEAR TO MONTH, INT" +note = "try-multiply with arguments of type INTERVAL YEAR TO MONTH, INT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/trim.trim-leading-from.syntax.toml#t001_types_1"] +cases = ["cases/translation/functions/try-multiply.toml#t004_types_4"] required = true [[obligation]] -id = "db.functions.trim.trim-leading-from.syntax.t002" -form = "db.functions.trim.trim-leading-from.syntax" +id = "db.functions.try-multiply.t005" +form = "db.functions.try-multiply" kind = "null_argument" -target = "STRING, STRING" -note = "trim with NULL as argument 1." +target = "INT, INT" +note = "try-multiply with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/trim.trim-leading-from.syntax.toml#t002_null_1"] +cases = ["cases/translation/functions/try-multiply.toml#t005_null_1"] required = true [[obligation]] -id = "db.functions.trim.trim-leading-from.syntax.t003" -form = "db.functions.trim.trim-leading-from.syntax" +id = "db.functions.try-multiply.t006" +form = "db.functions.try-multiply" kind = "null_argument" -target = "STRING, STRING" -note = "trim with NULL as argument 2." +target = "INT, INT" +note = "try-multiply with NULL as argument 2." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/trim.trim-leading-from.syntax.toml#t003_null_2"] +cases = ["cases/translation/functions/try-multiply.toml#t006_null_2"] required = true [[obligation]] -id = "db.functions.trim.trim-leading-from.syntax.t004" -form = "db.functions.trim.trim-leading-from.syntax" +id = "db.functions.try-multiply.t007" +form = "db.functions.try-multiply" kind = "error_parity" -target = "ARRAY, STRING" -note = "trim with a ARRAY value where the page documents STRING." +target = "STRING, INT" +note = "try-multiply with a STRING value where the page documents INT." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/trim.trim-leading-from.syntax.toml#t008_wrong_kind"] +cases = ["cases/translation/functions/try-multiply.toml#t011_wrong_kind"] required = true [[obligation]] -id = "db.functions.trim.trim-trailing-from.t001" -form = "db.functions.trim.trim-trailing-from" +id = "db.functions.try-parse-json.t001" +form = "db.functions.try-parse-json" kind = "type_combination" target = "STRING" -note = "trim with arguments of type STRING." +note = "try-parse-json with arguments of type STRING." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/trim.trim-trailing-from.toml#t001_types_1"] +cases = ["cases/translation/functions/try-parse-json.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.trim.trim-trailing-from.t002" -form = "db.functions.trim.trim-trailing-from" +id = "db.functions.try-parse-json.t002" +form = "db.functions.try-parse-json" kind = "null_argument" target = "STRING" -note = "trim with NULL as argument 1." +note = "try-parse-json with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/trim.trim-trailing-from.toml#t002_null_1"] +cases = ["cases/translation/functions/try-parse-json.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.trim.trim-trailing-from.t003" -form = "db.functions.trim.trim-trailing-from" +id = "db.functions.try-parse-json.t003" +form = "db.functions.try-parse-json" kind = "error_parity" target = "ARRAY" -note = "trim with a ARRAY value where the page documents STRING." +note = "try-parse-json with a ARRAY value where the page documents STRING." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/trim.trim-trailing-from.toml#t005_wrong_kind"] +cases = ["cases/translation/functions/try-parse-json.toml#t005_wrong_kind"] required = true [[obligation]] -id = "db.functions.trim.trim-trailing-from.syntax.t001" -form = "db.functions.trim.trim-trailing-from.syntax" +id = "db.functions.try-parse-timestamp.t001" +form = "db.functions.try-parse-timestamp" kind = "type_combination" -target = "STRING, STRING" -note = "trim with arguments of type STRING, STRING." +target = "INT" +note = "try-parse-timestamp with arguments of type INT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/trim.trim-trailing-from.syntax.toml#t001_types_1"] -required = true - -[[obligation]] -id = "db.functions.trim.trim-trailing-from.syntax.t002" -form = "db.functions.trim.trim-trailing-from.syntax" -kind = "null_argument" -target = "STRING, STRING" -note = "trim with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" -reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/trim.trim-trailing-from.syntax.toml#t002_null_1"] -required = true - -[[obligation]] -id = "db.functions.trim.trim-trailing-from.syntax.t003" -form = "db.functions.trim.trim-trailing-from.syntax" -kind = "null_argument" -target = "STRING, STRING" -note = "trim with NULL as argument 2." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" -reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/trim.trim-trailing-from.syntax.toml#t003_null_2"] +cases = ["cases/translation/functions/try-parse-timestamp.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.trim.trim-trailing-from.syntax.t004" -form = "db.functions.trim.trim-trailing-from.syntax" -kind = "error_parity" -target = "ARRAY, STRING" -note = "trim with a ARRAY value where the page documents STRING." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.try-parse-timestamp.t002" +form = "db.functions.try-parse-timestamp" +kind = "type_combination" +target = "STRING" +note = "try-parse-timestamp with arguments of type STRING." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/trim.trim-trailing-from.syntax.toml#t008_wrong_kind"] +cases = ["cases/translation/functions/try-parse-timestamp.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.trunc.t001" -form = "db.functions.trunc" +id = "db.functions.try-parse-timestamp.t003" +form = "db.functions.try-parse-timestamp" kind = "type_combination" -target = "DATE, STRING" -note = "trunc with arguments of type DATE, STRING." +target = "TIMESTAMP" +note = "try-parse-timestamp with arguments of type TIMESTAMP." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/trunc.toml#t001_types_1"] +cases = ["cases/translation/functions/try-parse-timestamp.toml#t003_types_3"] required = true [[obligation]] -id = "db.functions.trunc.t002" -form = "db.functions.trunc" -kind = "null_argument" -target = "DATE, STRING" -note = "trunc with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.try-parse-timestamp.t004" +form = "db.functions.try-parse-timestamp" +kind = "type_combination" +target = "DECIMAL(10,2)" +note = "try-parse-timestamp with arguments of type DECIMAL(10,2)." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/trunc.toml#t002_null_1"] +cases = ["cases/translation/functions/try-parse-timestamp.toml#t004_types_4"] required = true [[obligation]] -id = "db.functions.trunc.t003" -form = "db.functions.trunc" +id = "db.functions.try-parse-timestamp.t005" +form = "db.functions.try-parse-timestamp" kind = "null_argument" -target = "DATE, STRING" -note = "trunc with NULL as argument 2." +target = "INT" +note = "try-parse-timestamp with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/trunc.toml#t003_null_2"] +cases = ["cases/translation/functions/try-parse-timestamp.toml#t005_null_1"] required = true [[obligation]] -id = "db.functions.trunc.t004" -form = "db.functions.trunc" +id = "db.functions.try-parse-timestamp.t006" +form = "db.functions.try-parse-timestamp" kind = "error_parity" -target = "STRING, STRING" -note = "trunc with a STRING value where the page documents DATE." +target = "STRING" +note = "try-parse-timestamp with a STRING value where the page documents INT." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/trunc.toml#t008_wrong_kind"] +cases = ["cases/translation/functions/try-parse-timestamp.toml#t008_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-add.t001" -form = "db.functions.try-add" +id = "db.functions.try-subtract.t001" +form = "db.functions.try-subtract" kind = "type_combination" target = "INT, INT" -note = "try-add with arguments of type INT, INT." +note = "try-subtract with arguments of type INT, INT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-add.toml#t001_types_1"] +cases = ["cases/translation/functions/try-subtract.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-add.t002" -form = "db.functions.try-add" +id = "db.functions.try-subtract.t002" +form = "db.functions.try-subtract" kind = "type_combination" target = "DATE, INT" -note = "try-add with arguments of type DATE, INT." +note = "try-subtract with arguments of type DATE, INT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-add.toml#t002_types_2"] +cases = ["cases/translation/functions/try-subtract.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.try-add.t003" -form = "db.functions.try-add" +id = "db.functions.try-subtract.t003" +form = "db.functions.try-subtract" kind = "type_combination" target = "TIMESTAMP, INT" -note = "try-add with arguments of type TIMESTAMP, INT." +note = "try-subtract with arguments of type TIMESTAMP, INT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-add.toml#t003_types_3"] +cases = ["cases/translation/functions/try-subtract.toml#t003_types_3"] required = true [[obligation]] -id = "db.functions.try-add.t004" -form = "db.functions.try-add" +id = "db.functions.try-subtract.t004" +form = "db.functions.try-subtract" kind = "type_combination" target = "INTERVAL DAY, INT" -note = "try-add with arguments of type INTERVAL DAY, INT." +note = "try-subtract with arguments of type INTERVAL DAY, INT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-add.toml#t004_types_4"] +cases = ["cases/translation/functions/try-subtract.toml#t004_types_4"] required = true [[obligation]] -id = "db.functions.try-add.t005" -form = "db.functions.try-add" +id = "db.functions.try-subtract.t005" +form = "db.functions.try-subtract" kind = "null_argument" target = "INT, INT" -note = "try-add with NULL as argument 1." +note = "try-subtract with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-add.toml#t005_null_1"] +cases = ["cases/translation/functions/try-subtract.toml#t005_null_1"] required = true [[obligation]] -id = "db.functions.try-add.t006" -form = "db.functions.try-add" +id = "db.functions.try-subtract.t006" +form = "db.functions.try-subtract" kind = "null_argument" target = "INT, INT" -note = "try-add with NULL as argument 2." +note = "try-subtract with NULL as argument 2." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-add.toml#t006_null_2"] +cases = ["cases/translation/functions/try-subtract.toml#t006_null_2"] required = true [[obligation]] -id = "db.functions.try-add.t007" -form = "db.functions.try-add" +id = "db.functions.try-subtract.t007" +form = "db.functions.try-subtract" kind = "error_parity" target = "STRING, INT" -note = "try-add with a STRING value where the page documents INT." +note = "try-subtract with a STRING value where the page documents INT." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-add.toml#t011_wrong_kind"] +cases = ["cases/translation/functions/try-subtract.toml#t011_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-aes-decrypt.t001" -form = "db.functions.try-aes-decrypt" +id = "db.functions.try-sum.t001" +form = "db.functions.try-sum" kind = "type_combination" -target = "BINARY, BINARY" -note = "try-aes-decrypt with arguments of type BINARY, BINARY." +target = "DOUBLE" +note = "try_sum of DOUBLE values: whole multiples of one power of two, then values whose total depends on the order of addition. Hand-written for the phase-2 recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-aes-decrypt.toml#t001_types_1"] -required = true - -[[obligation]] -id = "db.functions.try-aes-decrypt.t002" -form = "db.functions.try-aes-decrypt" -kind = "null_argument" -target = "BINARY, BINARY" -note = "try-aes-decrypt with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" -reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-aes-decrypt.toml#t002_null_1"] +cases = ["cases/translation/functions/try-sum.pa.hand.toml#p001"] required = true [[obligation]] -id = "db.functions.try-aes-decrypt.t003" -form = "db.functions.try-aes-decrypt" -kind = "null_argument" -target = "BINARY, BINARY" -note = "try-aes-decrypt with NULL as argument 2." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.try-sum.t002" +form = "db.functions.try-sum" +kind = "type_combination" +target = "DOUBLE" +note = "try_sum of DOUBLE values: whole multiples of one power of two, then values whose total depends on the order of addition. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-aes-decrypt.toml#t003_null_2"] +cases = ["cases/translation/functions/try-sum.pa.hand.toml#p002"] required = true [[obligation]] -id = "db.functions.try-aes-decrypt.t004" -form = "db.functions.try-aes-decrypt" -kind = "error_parity" -target = "STRING, BINARY" -note = "try-aes-decrypt with a STRING value where the page documents BINARY." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.try-sum.t003" +form = "db.functions.try-sum" +kind = "type_combination" +target = "DOUBLE" +note = "try_sum of DOUBLE values: whole multiples of one power of two, then values whose total depends on the order of addition. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-aes-decrypt.toml#t006_wrong_kind"] +cases = ["cases/translation/functions/try-sum.pa.hand.toml#p003"] required = true [[obligation]] -id = "db.functions.try-avg.t001" -form = "db.functions.try-avg" +id = "db.functions.try-sum.t004" +form = "db.functions.try-sum" kind = "type_combination" target = "INT" -note = "try-avg with arguments of type INT." +note = "try-sum with arguments of type INT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-avg.toml#t001_types_1"] +cases = ["cases/translation/functions/try-sum.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-avg.t002" -form = "db.functions.try-avg" +id = "db.functions.try-sum.t005" +form = "db.functions.try-sum" kind = "type_combination" target = "INTERVAL DAY" -note = "try-avg with arguments of type INTERVAL DAY." +note = "try-sum with arguments of type INTERVAL DAY." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-avg.toml#t002_types_2"] +cases = ["cases/translation/functions/try-sum.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.try-avg.t003" -form = "db.functions.try-avg" +id = "db.functions.try-sum.t006" +form = "db.functions.try-sum" kind = "type_combination" target = "DECIMAL(10,2)" -note = "try-avg with arguments of type DECIMAL(10,2)." +note = "try-sum with arguments of type DECIMAL(10,2)." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-avg.toml#t003_types_3"] +cases = ["cases/translation/functions/try-sum.toml#t003_types_3"] required = true [[obligation]] -id = "db.functions.try-avg.t004" -form = "db.functions.try-avg" +id = "db.functions.try-sum.t007" +form = "db.functions.try-sum" kind = "type_combination" target = "INTERVAL YEAR TO MONTH" -note = "try-avg with arguments of type INTERVAL YEAR TO MONTH." +note = "try-sum with arguments of type INTERVAL YEAR TO MONTH." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-avg.toml#t004_types_4"] +cases = ["cases/translation/functions/try-sum.toml#t004_types_4"] required = true [[obligation]] -id = "db.functions.try-avg.t005" -form = "db.functions.try-avg" +id = "db.functions.try-sum.t008" +form = "db.functions.try-sum" kind = "null_argument" target = "INT" -note = "try-avg with NULL as argument 1." +note = "try-sum with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-avg.toml#t005_null_1"] +cases = ["cases/translation/functions/try-sum.toml#t005_null_1"] required = true [[obligation]] -id = "db.functions.try-avg.t006" -form = "db.functions.try-avg" +id = "db.functions.try-sum.t009" +form = "db.functions.try-sum" kind = "error_parity" target = "STRING" -note = "try-avg with a STRING value where the page documents INT." +note = "try-sum with a STRING value where the page documents INT." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-avg.toml#t008_wrong_kind"] +cases = ["cases/translation/functions/try-sum.toml#t008_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-cast.t001" -form = "db.functions.try-cast" -kind = "null_argument" +id = "db.functions.try-to-binary.t001" +form = "db.functions.try-to-binary" +kind = "type_combination" target = "STRING" -note = "try_cast of NULL. Hand-written for the phase-2 recording." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +note = "try-to-binary with arguments of type STRING." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-cast.null.pa.hand.toml#p001"] +cases = ["cases/translation/functions/try-to-binary.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-cast.t002" -form = "db.functions.try-cast" -kind = "type_combination" +id = "db.functions.try-to-binary.t002" +form = "db.functions.try-to-binary" +kind = "null_argument" target = "STRING" -note = "try_cast of STRING to INT, NULL where the text reads as none. Hand-written for the phase-2 recording." -catches = "the argument types read another way, or the result typed otherwise" +note = "try-to-binary with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-cast.string-int.pa.hand.toml#p001"] +cases = ["cases/translation/functions/try-to-binary.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.try-divide.t001" -form = "db.functions.try-divide" -kind = "type_combination" -target = "INT, INT" -note = "try-divide with arguments of type INT, INT." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.try-to-binary.t003" +form = "db.functions.try-to-binary" +kind = "error_parity" +target = "ARRAY" +note = "try-to-binary with a ARRAY value where the page documents STRING." +catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-divide.toml#t001_types_1"] +cases = ["cases/translation/functions/try-to-binary.toml#t005_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-divide.t002" -form = "db.functions.try-divide" +id = "db.functions.try-to-date.t001" +form = "db.functions.try-to-date" kind = "type_combination" -target = "INTERVAL DAY, INT" -note = "try-divide with arguments of type INTERVAL DAY, INT." +target = "STRING" +note = "try-to-date with arguments of type STRING." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-divide.toml#t002_types_2"] +cases = ["cases/translation/functions/try-to-date.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-divide.t003" -form = "db.functions.try-divide" +id = "db.functions.try-to-date.t002" +form = "db.functions.try-to-date" kind = "type_combination" -target = "DECIMAL(10,2), INT" -note = "try-divide with arguments of type DECIMAL(10,2), INT." +target = "DATE" +note = "try-to-date with arguments of type DATE." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-divide.toml#t003_types_3"] +cases = ["cases/translation/functions/try-to-date.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.try-divide.t004" -form = "db.functions.try-divide" +id = "db.functions.try-to-date.t003" +form = "db.functions.try-to-date" kind = "type_combination" -target = "INTERVAL YEAR TO MONTH, INT" -note = "try-divide with arguments of type INTERVAL YEAR TO MONTH, INT." +target = "TIMESTAMP" +note = "try-to-date with arguments of type TIMESTAMP." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-divide.toml#t004_types_4"] +cases = ["cases/translation/functions/try-to-date.toml#t003_types_3"] required = true [[obligation]] -id = "db.functions.try-divide.t005" -form = "db.functions.try-divide" -kind = "null_argument" -target = "INT, INT" -note = "try-divide with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.try-to-date.t004" +form = "db.functions.try-to-date" +kind = "type_combination" +target = "TIMESTAMP_NTZ" +note = "try-to-date with arguments of type TIMESTAMP_NTZ." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-divide.toml#t005_null_1"] +cases = ["cases/translation/functions/try-to-date.toml#t004_types_4"] required = true [[obligation]] -id = "db.functions.try-divide.t006" -form = "db.functions.try-divide" +id = "db.functions.try-to-date.t005" +form = "db.functions.try-to-date" kind = "null_argument" -target = "INT, INT" -note = "try-divide with NULL as argument 2." +target = "STRING" +note = "try-to-date with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-divide.toml#t006_null_2"] +cases = ["cases/translation/functions/try-to-date.toml#t005_null_1"] required = true [[obligation]] -id = "db.functions.try-divide.t007" -form = "db.functions.try-divide" +id = "db.functions.try-to-date.t006" +form = "db.functions.try-to-date" kind = "error_parity" -target = "STRING, INT" -note = "try-divide with a STRING value where the page documents INT." +target = "ARRAY" +note = "try-to-date with a ARRAY value where the page documents STRING." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-divide.toml#t011_wrong_kind"] +cases = ["cases/translation/functions/try-to-date.toml#t008_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-element-at.t001" -form = "db.functions.try-element-at" +id = "db.functions.try-to-file.t001" +form = "db.functions.try-to-file" kind = "type_combination" -target = "ARRAY, INT" -note = "try-element-at with arguments of type ARRAY, INT." +target = "STRING" +note = "try-to-file with arguments of type STRING." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-element-at.toml#t001_types_1"] +cases = ["cases/translation/functions/try-to-file.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-element-at.t002" -form = "db.functions.try-element-at" -kind = "type_combination" -target = "ARRAY, INT" -note = "try-element-at with arguments of type ARRAY, INT." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.try-to-file.t002" +form = "db.functions.try-to-file" +kind = "null_argument" +target = "STRING" +note = "try-to-file with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-element-at.toml#t002_types_2"] +cases = ["cases/translation/functions/try-to-file.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.try-element-at.t003" -form = "db.functions.try-element-at" -kind = "type_combination" -target = "ARRAY, BIGINT" -note = "try-element-at with arguments of type ARRAY, BIGINT." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.try-to-file.t003" +form = "db.functions.try-to-file" +kind = "error_parity" +target = "ARRAY" +note = "try-to-file with a ARRAY value where the page documents STRING." +catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-element-at.toml#t003_types_3"] +cases = ["cases/translation/functions/try-to-file.toml#t005_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-element-at.t004" -form = "db.functions.try-element-at" +id = "db.functions.try-to-geography.t001" +form = "db.functions.try-to-geography" kind = "type_combination" -target = "ARRAY, SMALLINT" -note = "try-element-at with arguments of type ARRAY, SMALLINT." +target = "STRING" +note = "try-to-geography with arguments of type STRING." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-element-at.toml#t004_types_4"] +cases = ["cases/translation/functions/try-to-geography.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-element-at.t005" -form = "db.functions.try-element-at" -kind = "null_argument" -target = "ARRAY, INT" -note = "try-element-at with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.try-to-geography.t002" +form = "db.functions.try-to-geography" +kind = "type_combination" +target = "BINARY" +note = "try-to-geography with arguments of type BINARY." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-element-at.toml#t005_null_1"] +cases = ["cases/translation/functions/try-to-geography.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.try-element-at.t006" -form = "db.functions.try-element-at" +id = "db.functions.try-to-geography.t003" +form = "db.functions.try-to-geography" kind = "null_argument" -target = "ARRAY, INT" -note = "try-element-at with NULL as argument 2." +target = "STRING" +note = "try-to-geography with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-element-at.toml#t006_null_2"] +cases = ["cases/translation/functions/try-to-geography.toml#t003_null_1"] required = true [[obligation]] -id = "db.functions.try-element-at.t007" -form = "db.functions.try-element-at" +id = "db.functions.try-to-geography.t004" +form = "db.functions.try-to-geography" kind = "error_parity" -target = "STRING, INT" -note = "try-element-at with a STRING value where the page documents ARRAY." +target = "ARRAY" +note = "try-to-geography with a ARRAY value where the page documents STRING." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-element-at.toml#t011_wrong_kind"] +cases = ["cases/translation/functions/try-to-geography.toml#t006_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-ip-as-binary.t001" -form = "db.functions.try-ip-as-binary" +id = "db.functions.try-to-geometry.t001" +form = "db.functions.try-to-geometry" kind = "type_combination" target = "STRING" -note = "try-ip-as-binary with arguments of type STRING." +note = "try-to-geometry with arguments of type STRING." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-ip-as-binary.toml#t001_types_1"] +cases = ["cases/translation/functions/try-to-geometry.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-ip-as-binary.t002" -form = "db.functions.try-ip-as-binary" +id = "db.functions.try-to-geometry.t002" +form = "db.functions.try-to-geometry" kind = "type_combination" target = "BINARY" -note = "try-ip-as-binary with arguments of type BINARY." +note = "try-to-geometry with arguments of type BINARY." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-ip-as-binary.toml#t002_types_2"] +cases = ["cases/translation/functions/try-to-geometry.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.try-ip-as-binary.t003" -form = "db.functions.try-ip-as-binary" +id = "db.functions.try-to-geometry.t003" +form = "db.functions.try-to-geometry" kind = "null_argument" target = "STRING" -note = "try-ip-as-binary with NULL as argument 1." +note = "try-to-geometry with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-ip-as-binary.toml#t003_null_1"] +cases = ["cases/translation/functions/try-to-geometry.toml#t003_null_1"] required = true [[obligation]] -id = "db.functions.try-ip-as-binary.t004" -form = "db.functions.try-ip-as-binary" +id = "db.functions.try-to-geometry.t004" +form = "db.functions.try-to-geometry" kind = "error_parity" target = "ARRAY" -note = "try-ip-as-binary with a ARRAY value where the page documents STRING." +note = "try-to-geometry with a ARRAY value where the page documents STRING." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-ip-as-binary.toml#t006_wrong_kind"] +cases = ["cases/translation/functions/try-to-geometry.toml#t006_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-ip-as-string.t001" -form = "db.functions.try-ip-as-string" +id = "db.functions.try-to-number.t001" +form = "db.functions.try-to-number" kind = "type_combination" target = "STRING" -note = "try-ip-as-string with arguments of type STRING." +note = "try_to_number of good and bad strings. Hand-written." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-to-number.hand.toml#t001_format"] +required = true + +[[obligation]] +id = "db.functions.try-to-number.t002" +form = "db.functions.try-to-number" +kind = "null_argument" +target = "STRING" +note = "try_to_number of NULL. Hand-written." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/try-to-number.hand.toml#t002_null"] +required = true + +[[obligation]] +id = "db.functions.try-to-number.t003" +form = "db.functions.try-to-number" +kind = "type_combination" +target = "STRING" +note = "try-to-number with arguments of type STRING, STRING. Arguments 2 onward inlined as constants." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-ip-as-string.toml#t001_types_1"] +cases = ["cases/translation/functions/try-to-number.lit.toml#t001_types_1_lit"] required = true [[obligation]] -id = "db.functions.try-ip-as-string.t002" -form = "db.functions.try-ip-as-string" -kind = "type_combination" -target = "BINARY" -note = "try-ip-as-string with arguments of type BINARY." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.try-to-number.t004" +form = "db.functions.try-to-number" +kind = "null_argument" +target = "STRING" +note = "try-to-number with NULL as argument 1. Arguments 2 onward inlined as constants." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-ip-as-string.toml#t002_types_2"] +cases = ["cases/translation/functions/try-to-number.lit.toml#t002_null_1_lit"] required = true [[obligation]] -id = "db.functions.try-ip-as-string.t003" -form = "db.functions.try-ip-as-string" +id = "db.functions.try-to-number.t005" +form = "db.functions.try-to-number" kind = "null_argument" target = "STRING" -note = "try-ip-as-string with NULL as argument 1." +note = "try-to-number with NULL as argument 2. Arguments 2 onward inlined as constants." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-ip-as-string.toml#t003_null_1"] +cases = ["cases/translation/functions/try-to-number.lit.toml#t003_null_2_lit"] required = true [[obligation]] -id = "db.functions.try-ip-as-string.t004" -form = "db.functions.try-ip-as-string" +id = "db.functions.try-to-number.t006" +form = "db.functions.try-to-number" kind = "error_parity" target = "ARRAY" -note = "try-ip-as-string with a ARRAY value where the page documents STRING." +note = "try-to-number with a ARRAY value where the page documents STRING. Arguments 2 onward inlined as constants." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-ip-as-string.toml#t006_wrong_kind"] +cases = ["cases/translation/functions/try-to-number.lit.toml#t008_wrong_kind_lit"] required = true [[obligation]] -id = "db.functions.try-ip-cidr.t001" -form = "db.functions.try-ip-cidr" +id = "db.functions.try-to-number.t007" +form = "db.functions.try-to-number" kind = "type_combination" -target = "STRING" -note = "try-ip-cidr with arguments of type STRING." +target = "STRING, STRING" +note = "try-to-number with arguments of type STRING, STRING." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-ip-cidr.toml#t001_types_1"] +cases = ["cases/translation/functions/try-to-number.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-ip-cidr.t002" -form = "db.functions.try-ip-cidr" -kind = "type_combination" -target = "BINARY" -note = "try-ip-cidr with arguments of type BINARY." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.try-to-number.t008" +form = "db.functions.try-to-number" +kind = "null_argument" +target = "STRING, STRING" +note = "try-to-number with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-ip-cidr.toml#t002_types_2"] +cases = ["cases/translation/functions/try-to-number.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.try-ip-cidr.t003" -form = "db.functions.try-ip-cidr" +id = "db.functions.try-to-number.t009" +form = "db.functions.try-to-number" kind = "null_argument" -target = "STRING" -note = "try-ip-cidr with NULL as argument 1." +target = "STRING, STRING" +note = "try-to-number with NULL as argument 2." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-ip-cidr.toml#t003_null_1"] +cases = ["cases/translation/functions/try-to-number.toml#t003_null_2"] required = true [[obligation]] -id = "db.functions.try-ip-cidr.t004" -form = "db.functions.try-ip-cidr" +id = "db.functions.try-to-number.t010" +form = "db.functions.try-to-number" kind = "error_parity" -target = "ARRAY" -note = "try-ip-cidr with a ARRAY value where the page documents STRING." +target = "ARRAY, STRING" +note = "try-to-number with a ARRAY value where the page documents STRING." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-ip-cidr.toml#t006_wrong_kind"] +cases = ["cases/translation/functions/try-to-number.toml#t008_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-ip-host.t001" -form = "db.functions.try-ip-host" +id = "db.functions.try-to-time.t001" +form = "db.functions.try-to-time" kind = "type_combination" target = "STRING" -note = "try_ip_host returning NULL for invalid input. Hand-written for the phase-2 recording." +note = "try-to-time with arguments of type STRING." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-ip-host.np.hand.toml#p001"] +cases = ["cases/translation/functions/try-to-time.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-ip-host.t002" -form = "db.functions.try-ip-host" -kind = "type_combination" +id = "db.functions.try-to-time.t002" +form = "db.functions.try-to-time" +kind = "null_argument" target = "STRING" -note = "try-ip-host with arguments of type STRING." -catches = "the argument types read another way, or the result typed otherwise" +note = "try-to-time with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-ip-host.toml#t001_types_1"] +cases = ["cases/translation/functions/try-to-time.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.try-ip-host.t003" -form = "db.functions.try-ip-host" -kind = "type_combination" -target = "BINARY" -note = "try-ip-host with arguments of type BINARY." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.try-to-time.t003" +form = "db.functions.try-to-time" +kind = "error_parity" +target = "ARRAY" +note = "try-to-time with a ARRAY value where the page documents STRING." +catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-ip-host.toml#t002_types_2"] +cases = ["cases/translation/functions/try-to-time.toml#t005_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-ip-host.t004" -form = "db.functions.try-ip-host" -kind = "null_argument" +id = "db.functions.try-to-timestamp.t001" +form = "db.functions.try-to-timestamp" +kind = "type_combination" target = "STRING" -note = "try-ip-host with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +note = "try_to_timestamp of an invalid day, digitless text and a plain timestamp. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-ip-host.toml#t003_null_1"] +cases = ["cases/translation/functions/try-to-timestamp.pc.hand.toml#p001"] required = true [[obligation]] -id = "db.functions.try-ip-host.t005" -form = "db.functions.try-ip-host" -kind = "error_parity" -target = "ARRAY" -note = "try-ip-host with a ARRAY value where the page documents STRING." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.try-to-timestamp.t002" +form = "db.functions.try-to-timestamp" +kind = "type_combination" +target = "INT" +note = "try-to-timestamp with arguments of type INT." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-ip-host.toml#t006_wrong_kind"] +cases = ["cases/translation/functions/try-to-timestamp.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-make-interval.t001" -form = "db.functions.try-make-interval" +id = "db.functions.try-to-timestamp.t003" +form = "db.functions.try-to-timestamp" kind = "type_combination" -target = "INT" -note = "try-make-interval with arguments of type INT." +target = "STRING" +note = "try-to-timestamp with arguments of type STRING." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-interval.toml#t001_types_1"] +cases = ["cases/translation/functions/try-to-timestamp.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.try-make-interval.t002" -form = "db.functions.try-make-interval" +id = "db.functions.try-to-timestamp.t004" +form = "db.functions.try-to-timestamp" kind = "type_combination" -target = "BIGINT" -note = "try-make-interval with arguments of type BIGINT." +target = "DATE" +note = "try-to-timestamp with arguments of type DATE." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-interval.toml#t002_types_2"] +cases = ["cases/translation/functions/try-to-timestamp.toml#t003_types_3"] required = true [[obligation]] -id = "db.functions.try-make-interval.t003" -form = "db.functions.try-make-interval" +id = "db.functions.try-to-timestamp.t005" +form = "db.functions.try-to-timestamp" kind = "type_combination" -target = "SMALLINT" -note = "try-make-interval with arguments of type SMALLINT." +target = "TIMESTAMP" +note = "try-to-timestamp with arguments of type TIMESTAMP." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-interval.toml#t003_types_3"] +cases = ["cases/translation/functions/try-to-timestamp.toml#t004_types_4"] required = true [[obligation]] -id = "db.functions.try-make-interval.t004" -form = "db.functions.try-make-interval" +id = "db.functions.try-to-timestamp.t006" +form = "db.functions.try-to-timestamp" kind = "null_argument" target = "INT" -note = "try-make-interval with NULL as argument 1." +note = "try-to-timestamp with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-interval.toml#t004_null_1"] +cases = ["cases/translation/functions/try-to-timestamp.toml#t005_null_1"] required = true [[obligation]] -id = "db.functions.try-make-interval.t005" -form = "db.functions.try-make-interval" +id = "db.functions.try-to-timestamp.t007" +form = "db.functions.try-to-timestamp" kind = "error_parity" target = "STRING" -note = "try-make-interval with a STRING value where the page documents INT." +note = "try-to-timestamp with a STRING value where the page documents INT." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-interval.toml#t007_wrong_kind"] +cases = ["cases/translation/functions/try-to-timestamp.toml#t008_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-make-timestamp.t001" -form = "db.functions.try-make-timestamp" +id = "db.functions.try-url-decode.t001" +form = "db.functions.try-url-decode" kind = "type_combination" -target = "INT, INT, INT, INT, INT, INT" -note = "try_make_timestamp of a day its month lacks, a leap day and a month past 12. Hand-written for the phase-2 recording." +target = "STRING" +note = "try-url-decode with arguments of type STRING." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp.pc.hand.toml#p001"] +cases = ["cases/translation/functions/try-url-decode.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-make-timestamp.t002" -form = "db.functions.try-make-timestamp" -kind = "type_combination" +id = "db.functions.try-url-decode.t002" +form = "db.functions.try-url-decode" +kind = "null_argument" target = "STRING" -note = "try_make_timestamp of a year read from text. Hand-written for the phase-2 recording." -catches = "the argument types read another way, or the result typed otherwise" +note = "try-url-decode with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp.pc2.hand.toml#p001"] +cases = ["cases/translation/functions/try-url-decode.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.try-make-timestamp.t003" -form = "db.functions.try-make-timestamp" -kind = "type_combination" -target = "INT, INT, INT, INT, INT, INT" -note = "try-make-timestamp with arguments of type INT, INT, INT, INT, INT, INT." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.try-url-decode.t003" +form = "db.functions.try-url-decode" +kind = "error_parity" +target = "ARRAY" +note = "try-url-decode with a ARRAY value where the page documents STRING." +catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp.toml#t001_types_1"] +cases = ["cases/translation/functions/try-url-decode.toml#t005_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-make-timestamp.t004" -form = "db.functions.try-make-timestamp" +id = "db.functions.try-validate-utf8.t001" +form = "db.functions.try-validate-utf8" kind = "type_combination" -target = "BIGINT, INT, INT, INT, INT, INT" -note = "try-make-timestamp with arguments of type BIGINT, INT, INT, INT, INT, INT." +target = "STRING" +note = "try-validate-utf8 with arguments of type STRING." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp.toml#t002_types_2"] +cases = ["cases/translation/functions/try-validate-utf8.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-make-timestamp.t005" -form = "db.functions.try-make-timestamp" -kind = "type_combination" -target = "SMALLINT, INT, INT, INT, INT, INT" -note = "try-make-timestamp with arguments of type SMALLINT, INT, INT, INT, INT, INT." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.try-validate-utf8.t002" +form = "db.functions.try-validate-utf8" +kind = "null_argument" +target = "STRING" +note = "try-validate-utf8 with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp.toml#t003_types_3"] +cases = ["cases/translation/functions/try-validate-utf8.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.try-make-timestamp.t006" -form = "db.functions.try-make-timestamp" -kind = "type_combination" -target = "INT, BIGINT, INT, INT, INT, INT" -note = "try-make-timestamp with arguments of type INT, BIGINT, INT, INT, INT, INT." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.try-validate-utf8.t003" +form = "db.functions.try-validate-utf8" +kind = "error_parity" +target = "ARRAY" +note = "try-validate-utf8 with a ARRAY value where the page documents STRING." +catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp.toml#t004_types_4"] +cases = ["cases/translation/functions/try-validate-utf8.toml#t005_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-make-timestamp.t007" -form = "db.functions.try-make-timestamp" -kind = "null_argument" -target = "INT, INT, INT, INT, INT, INT" -note = "try-make-timestamp with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.try-variant-get.t001" +form = "db.functions.try-variant-get" +kind = "type_combination" +target = "VARIANT" +note = "try_variant_get with a path and type. Hand-written." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp.toml#t005_null_1"] +cases = ["cases/translation/functions/try-variant-get.hand.toml#t001_path"] required = true [[obligation]] -id = "db.functions.try-make-timestamp.t008" -form = "db.functions.try-make-timestamp" +id = "db.functions.try-variant-get.t002" +form = "db.functions.try-variant-get" kind = "null_argument" -target = "INT, INT, INT, INT, INT, INT" -note = "try-make-timestamp with NULL as argument 2." +target = "VARIANT" +note = "try_variant_get of NULL. Hand-written." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp.toml#t006_null_2"] +cases = ["cases/translation/functions/try-variant-get.hand.toml#t002_null"] required = true [[obligation]] -id = "db.functions.try-make-timestamp.t009" -form = "db.functions.try-make-timestamp" -kind = "null_argument" -target = "INT, INT, INT, INT, INT, INT" -note = "try-make-timestamp with NULL as argument 3." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.try-variant-get.t003" +form = "db.functions.try-variant-get" +kind = "type_combination" +target = "VARIANT" +note = "try-variant-get with arguments of type VARIANT, STRING, STRING. Arguments 2 onward inlined as constants." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp.toml#t007_null_3"] +cases = ["cases/translation/functions/try-variant-get.lit.toml#t001_types_1_lit"] required = true [[obligation]] -id = "db.functions.try-make-timestamp.t010" -form = "db.functions.try-make-timestamp" +id = "db.functions.try-variant-get.t004" +form = "db.functions.try-variant-get" kind = "null_argument" -target = "INT, INT, INT, INT, INT, INT" -note = "try-make-timestamp with NULL as argument 4." +target = "VARIANT" +note = "try-variant-get with NULL as argument 1. Arguments 2 onward inlined as constants." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp.toml#t008_null_4"] +cases = ["cases/translation/functions/try-variant-get.lit.toml#t002_null_1_lit"] required = true [[obligation]] -id = "db.functions.try-make-timestamp.t011" -form = "db.functions.try-make-timestamp" +id = "db.functions.try-variant-get.t005" +form = "db.functions.try-variant-get" kind = "null_argument" -target = "INT, INT, INT, INT, INT, INT" -note = "try-make-timestamp with NULL as argument 5." +target = "VARIANT" +note = "try-variant-get with NULL as argument 2. Arguments 2 onward inlined as constants." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp.toml#t009_null_5"] +cases = ["cases/translation/functions/try-variant-get.lit.toml#t003_null_2_lit"] required = true [[obligation]] -id = "db.functions.try-make-timestamp.t012" -form = "db.functions.try-make-timestamp" +id = "db.functions.try-variant-get.t006" +form = "db.functions.try-variant-get" kind = "null_argument" -target = "INT, INT, INT, INT, INT, INT" -note = "try-make-timestamp with NULL as argument 6." +target = "VARIANT" +note = "try-variant-get with NULL as argument 3. Arguments 2 onward inlined as constants." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp.toml#t010_null_6"] +cases = ["cases/translation/functions/try-variant-get.lit.toml#t004_null_3_lit"] required = true [[obligation]] -id = "db.functions.try-make-timestamp.t013" -form = "db.functions.try-make-timestamp" +id = "db.functions.try-variant-get.t007" +form = "db.functions.try-variant-get" kind = "error_parity" -target = "STRING, INT, INT, INT, INT, INT" -note = "try-make-timestamp with a STRING value where the page documents INT." +target = "STRING" +note = "try-variant-get with a STRING value where the page documents VARIANT. Arguments 2 onward inlined as constants." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp.toml#t015_wrong_kind"] +cases = ["cases/translation/functions/try-variant-get.lit.toml#t009_wrong_kind_lit"] required = true [[obligation]] -id = "db.functions.try-make-timestamp-ltz.t001" -form = "db.functions.try-make-timestamp-ltz" +id = "db.functions.try-variant-get.t008" +form = "db.functions.try-variant-get" kind = "type_combination" -target = "INT, INT, INT, INT, INT, INT" -note = "try-make-timestamp-ltz with arguments of type INT, INT, INT, INT, INT, INT." +target = "VARIANT, STRING, STRING" +note = "try-variant-get with arguments of type VARIANT, STRING, STRING." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp-ltz.toml#t001_types_1"] +cases = ["cases/translation/functions/try-variant-get.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-make-timestamp-ltz.t002" -form = "db.functions.try-make-timestamp-ltz" -kind = "type_combination" -target = "BIGINT, INT, INT, INT, INT, INT" -note = "try-make-timestamp-ltz with arguments of type BIGINT, INT, INT, INT, INT, INT." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.try-variant-get.t009" +form = "db.functions.try-variant-get" +kind = "null_argument" +target = "VARIANT, STRING, STRING" +note = "try-variant-get with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp-ltz.toml#t002_types_2"] +cases = ["cases/translation/functions/try-variant-get.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.try-make-timestamp-ltz.t003" -form = "db.functions.try-make-timestamp-ltz" -kind = "type_combination" -target = "SMALLINT, INT, INT, INT, INT, INT" -note = "try-make-timestamp-ltz with arguments of type SMALLINT, INT, INT, INT, INT, INT." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.try-variant-get.t010" +form = "db.functions.try-variant-get" +kind = "null_argument" +target = "VARIANT, STRING, STRING" +note = "try-variant-get with NULL as argument 2." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp-ltz.toml#t003_types_3"] +cases = ["cases/translation/functions/try-variant-get.toml#t003_null_2"] required = true [[obligation]] -id = "db.functions.try-make-timestamp-ltz.t004" -form = "db.functions.try-make-timestamp-ltz" -kind = "type_combination" -target = "INT, BIGINT, INT, INT, INT, INT" -note = "try-make-timestamp-ltz with arguments of type INT, BIGINT, INT, INT, INT, INT." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.try-variant-get.t011" +form = "db.functions.try-variant-get" +kind = "null_argument" +target = "VARIANT, STRING, STRING" +note = "try-variant-get with NULL as argument 3." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp-ltz.toml#t004_types_4"] +cases = ["cases/translation/functions/try-variant-get.toml#t004_null_3"] required = true [[obligation]] -id = "db.functions.try-make-timestamp-ltz.t005" -form = "db.functions.try-make-timestamp-ltz" -kind = "null_argument" -target = "INT, INT, INT, INT, INT, INT" -note = "try-make-timestamp-ltz with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.try-variant-get.t012" +form = "db.functions.try-variant-get" +kind = "error_parity" +target = "STRING, STRING, STRING" +note = "try-variant-get with a STRING value where the page documents VARIANT." +catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp-ltz.toml#t005_null_1"] +cases = ["cases/translation/functions/try-variant-get.toml#t009_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-make-timestamp-ltz.t006" -form = "db.functions.try-make-timestamp-ltz" -kind = "null_argument" -target = "INT, INT, INT, INT, INT, INT" -note = "try-make-timestamp-ltz with NULL as argument 2." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.try-zstd-decompress.t001" +form = "db.functions.try-zstd-decompress" +kind = "type_combination" +target = "BINARY" +note = "try-zstd-decompress with arguments of type BINARY." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp-ltz.toml#t006_null_2"] +cases = ["cases/translation/functions/try-zstd-decompress.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-make-timestamp-ltz.t007" -form = "db.functions.try-make-timestamp-ltz" +id = "db.functions.try-zstd-decompress.t002" +form = "db.functions.try-zstd-decompress" kind = "null_argument" -target = "INT, INT, INT, INT, INT, INT" -note = "try-make-timestamp-ltz with NULL as argument 3." +target = "BINARY" +note = "try-zstd-decompress with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp-ltz.toml#t007_null_3"] +cases = ["cases/translation/functions/try-zstd-decompress.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.try-make-timestamp-ltz.t008" -form = "db.functions.try-make-timestamp-ltz" -kind = "null_argument" -target = "INT, INT, INT, INT, INT, INT" -note = "try-make-timestamp-ltz with NULL as argument 4." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.try-zstd-decompress.t003" +form = "db.functions.try-zstd-decompress" +kind = "error_parity" +target = "STRING" +note = "try-zstd-decompress with a STRING value where the page documents BINARY." +catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp-ltz.toml#t008_null_4"] +cases = ["cases/translation/functions/try-zstd-decompress.toml#t004_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-make-timestamp-ltz.t009" -form = "db.functions.try-make-timestamp-ltz" +id = "db.functions.tuple-difference-double.t001" +form = "db.functions.tuple-difference-double" +kind = "type_combination" +target = "BINARY, BINARY" +note = "tuple-difference-double with arguments of type BINARY, BINARY." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/tuple-difference-double.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.tuple-difference-double.t002" +form = "db.functions.tuple-difference-double" kind = "null_argument" -target = "INT, INT, INT, INT, INT, INT" -note = "try-make-timestamp-ltz with NULL as argument 5." +target = "BINARY, BINARY" +note = "tuple-difference-double with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp-ltz.toml#t009_null_5"] +cases = ["cases/translation/functions/tuple-difference-double.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.try-make-timestamp-ltz.t010" -form = "db.functions.try-make-timestamp-ltz" +id = "db.functions.tuple-difference-double.t003" +form = "db.functions.tuple-difference-double" kind = "null_argument" -target = "INT, INT, INT, INT, INT, INT" -note = "try-make-timestamp-ltz with NULL as argument 6." +target = "BINARY, BINARY" +note = "tuple-difference-double with NULL as argument 2." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp-ltz.toml#t010_null_6"] +cases = ["cases/translation/functions/tuple-difference-double.toml#t003_null_2"] required = true [[obligation]] -id = "db.functions.try-make-timestamp-ltz.t011" -form = "db.functions.try-make-timestamp-ltz" +id = "db.functions.tuple-difference-double.t004" +form = "db.functions.tuple-difference-double" kind = "error_parity" -target = "STRING, INT, INT, INT, INT, INT" -note = "try-make-timestamp-ltz with a STRING value where the page documents INT." +target = "STRING, BINARY" +note = "tuple-difference-double with a STRING value where the page documents BINARY." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp-ltz.toml#t015_wrong_kind"] +cases = ["cases/translation/functions/tuple-difference-double.toml#t006_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-make-timestamp-ntz.t001" -form = "db.functions.try-make-timestamp-ntz" +id = "db.functions.tuple-difference-integer.t001" +form = "db.functions.tuple-difference-integer" kind = "type_combination" -target = "INT, INT, INT, INT, INT, INT" -note = "try-make-timestamp-ntz with arguments of type INT, INT, INT, INT, INT, INT." +target = "BINARY, BINARY" +note = "tuple-difference-integer with arguments of type BINARY, BINARY." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp-ntz.toml#t001_types_1"] +cases = ["cases/translation/functions/tuple-difference-integer.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-make-timestamp-ntz.t002" -form = "db.functions.try-make-timestamp-ntz" -kind = "type_combination" -target = "BIGINT, INT, INT, INT, INT, INT" -note = "try-make-timestamp-ntz with arguments of type BIGINT, INT, INT, INT, INT, INT." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.tuple-difference-integer.t002" +form = "db.functions.tuple-difference-integer" +kind = "null_argument" +target = "BINARY, BINARY" +note = "tuple-difference-integer with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/tuple-difference-integer.toml#t002_null_1"] +required = true + +[[obligation]] +id = "db.functions.tuple-difference-integer.t003" +form = "db.functions.tuple-difference-integer" +kind = "null_argument" +target = "BINARY, BINARY" +note = "tuple-difference-integer with NULL as argument 2." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp-ntz.toml#t002_types_2"] +cases = ["cases/translation/functions/tuple-difference-integer.toml#t003_null_2"] required = true [[obligation]] -id = "db.functions.try-make-timestamp-ntz.t003" -form = "db.functions.try-make-timestamp-ntz" -kind = "type_combination" -target = "SMALLINT, INT, INT, INT, INT, INT" -note = "try-make-timestamp-ntz with arguments of type SMALLINT, INT, INT, INT, INT, INT." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.tuple-difference-integer.t004" +form = "db.functions.tuple-difference-integer" +kind = "error_parity" +target = "STRING, BINARY" +note = "tuple-difference-integer with a STRING value where the page documents BINARY." +catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp-ntz.toml#t003_types_3"] +cases = ["cases/translation/functions/tuple-difference-integer.toml#t006_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-make-timestamp-ntz.t004" -form = "db.functions.try-make-timestamp-ntz" +id = "db.functions.tuple-difference-theta-double.t001" +form = "db.functions.tuple-difference-theta-double" kind = "type_combination" -target = "INT, BIGINT, INT, INT, INT, INT" -note = "try-make-timestamp-ntz with arguments of type INT, BIGINT, INT, INT, INT, INT." +target = "BINARY, BINARY" +note = "tuple-difference-theta-double with arguments of type BINARY, BINARY." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp-ntz.toml#t004_types_4"] +cases = ["cases/translation/functions/tuple-difference-theta-double.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-make-timestamp-ntz.t005" -form = "db.functions.try-make-timestamp-ntz" +id = "db.functions.tuple-difference-theta-double.t002" +form = "db.functions.tuple-difference-theta-double" kind = "null_argument" -target = "INT, INT, INT, INT, INT, INT" -note = "try-make-timestamp-ntz with NULL as argument 1." +target = "BINARY, BINARY" +note = "tuple-difference-theta-double with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp-ntz.toml#t005_null_1"] +cases = ["cases/translation/functions/tuple-difference-theta-double.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.try-make-timestamp-ntz.t006" -form = "db.functions.try-make-timestamp-ntz" +id = "db.functions.tuple-difference-theta-double.t003" +form = "db.functions.tuple-difference-theta-double" kind = "null_argument" -target = "INT, INT, INT, INT, INT, INT" -note = "try-make-timestamp-ntz with NULL as argument 2." +target = "BINARY, BINARY" +note = "tuple-difference-theta-double with NULL as argument 2." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp-ntz.toml#t006_null_2"] +cases = ["cases/translation/functions/tuple-difference-theta-double.toml#t003_null_2"] required = true [[obligation]] -id = "db.functions.try-make-timestamp-ntz.t007" -form = "db.functions.try-make-timestamp-ntz" -kind = "null_argument" -target = "INT, INT, INT, INT, INT, INT" -note = "try-make-timestamp-ntz with NULL as argument 3." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.tuple-difference-theta-double.t004" +form = "db.functions.tuple-difference-theta-double" +kind = "error_parity" +target = "STRING, BINARY" +note = "tuple-difference-theta-double with a STRING value where the page documents BINARY." +catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp-ntz.toml#t007_null_3"] +cases = ["cases/translation/functions/tuple-difference-theta-double.toml#t006_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-make-timestamp-ntz.t008" -form = "db.functions.try-make-timestamp-ntz" -kind = "null_argument" -target = "INT, INT, INT, INT, INT, INT" -note = "try-make-timestamp-ntz with NULL as argument 4." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.tuple-difference-theta-integer.t001" +form = "db.functions.tuple-difference-theta-integer" +kind = "type_combination" +target = "BINARY, BINARY" +note = "tuple-difference-theta-integer with arguments of type BINARY, BINARY." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp-ntz.toml#t008_null_4"] +cases = ["cases/translation/functions/tuple-difference-theta-integer.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-make-timestamp-ntz.t009" -form = "db.functions.try-make-timestamp-ntz" +id = "db.functions.tuple-difference-theta-integer.t002" +form = "db.functions.tuple-difference-theta-integer" kind = "null_argument" -target = "INT, INT, INT, INT, INT, INT" -note = "try-make-timestamp-ntz with NULL as argument 5." +target = "BINARY, BINARY" +note = "tuple-difference-theta-integer with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp-ntz.toml#t009_null_5"] +cases = ["cases/translation/functions/tuple-difference-theta-integer.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.try-make-timestamp-ntz.t010" -form = "db.functions.try-make-timestamp-ntz" +id = "db.functions.tuple-difference-theta-integer.t003" +form = "db.functions.tuple-difference-theta-integer" kind = "null_argument" -target = "INT, INT, INT, INT, INT, INT" -note = "try-make-timestamp-ntz with NULL as argument 6." +target = "BINARY, BINARY" +note = "tuple-difference-theta-integer with NULL as argument 2." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp-ntz.toml#t010_null_6"] +cases = ["cases/translation/functions/tuple-difference-theta-integer.toml#t003_null_2"] required = true [[obligation]] -id = "db.functions.try-make-timestamp-ntz.t011" -form = "db.functions.try-make-timestamp-ntz" +id = "db.functions.tuple-difference-theta-integer.t004" +form = "db.functions.tuple-difference-theta-integer" kind = "error_parity" -target = "STRING, INT, INT, INT, INT, INT" -note = "try-make-timestamp-ntz with a STRING value where the page documents INT." +target = "STRING, BINARY" +note = "tuple-difference-theta-integer with a STRING value where the page documents BINARY." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-make-timestamp-ntz.toml#t015_wrong_kind"] +cases = ["cases/translation/functions/tuple-difference-theta-integer.toml#t006_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-mod.t001" -form = "db.functions.try-mod" +id = "db.functions.tuple-intersection-agg-double.t001" +form = "db.functions.tuple-intersection-agg-double" kind = "type_combination" -target = "STRING, INT" -note = "try_mod of numeric text. Hand-written for the phase-2 recording." +target = "BINARY" +note = "tuple-intersection-agg-double with arguments of type BINARY." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-mod.pb.hand.toml#p001"] +cases = ["cases/translation/functions/tuple-intersection-agg-double.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-mod.t002" -form = "db.functions.try-mod" -kind = "type_combination" -target = "INT, INT" -note = "try-mod with arguments of type INT, INT." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.tuple-intersection-agg-double.t002" +form = "db.functions.tuple-intersection-agg-double" +kind = "null_argument" +target = "BINARY" +note = "tuple-intersection-agg-double with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-mod.toml#t001_types_1"] +cases = ["cases/translation/functions/tuple-intersection-agg-double.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.try-mod.t003" -form = "db.functions.try-mod" -kind = "type_combination" -target = "DECIMAL(10,2), INT" -note = "try-mod with arguments of type DECIMAL(10,2), INT." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.tuple-intersection-agg-double.t003" +form = "db.functions.tuple-intersection-agg-double" +kind = "error_parity" +target = "STRING" +note = "tuple-intersection-agg-double with a STRING value where the page documents BINARY." +catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-mod.toml#t002_types_2"] +cases = ["cases/translation/functions/tuple-intersection-agg-double.toml#t004_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-mod.t004" -form = "db.functions.try-mod" +id = "db.functions.tuple-intersection-agg-integer.t001" +form = "db.functions.tuple-intersection-agg-integer" kind = "type_combination" -target = "DOUBLE, INT" -note = "try-mod with arguments of type DOUBLE, INT." +target = "BINARY" +note = "tuple-intersection-agg-integer with arguments of type BINARY." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-mod.toml#t003_types_3"] +cases = ["cases/translation/functions/tuple-intersection-agg-integer.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-mod.t005" -form = "db.functions.try-mod" +id = "db.functions.tuple-intersection-agg-integer.t002" +form = "db.functions.tuple-intersection-agg-integer" +kind = "null_argument" +target = "BINARY" +note = "tuple-intersection-agg-integer with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/tuple-intersection-agg-integer.toml#t002_null_1"] +required = true + +[[obligation]] +id = "db.functions.tuple-intersection-agg-integer.t003" +form = "db.functions.tuple-intersection-agg-integer" +kind = "error_parity" +target = "STRING" +note = "tuple-intersection-agg-integer with a STRING value where the page documents BINARY." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/tuple-intersection-agg-integer.toml#t004_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.tuple-intersection-double.t001" +form = "db.functions.tuple-intersection-double" kind = "type_combination" -target = "INT, DECIMAL(10,2)" -note = "try-mod with arguments of type INT, DECIMAL(10,2)." +target = "BINARY, BINARY" +note = "tuple-intersection-double with arguments of type BINARY, BINARY." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-mod.toml#t004_types_4"] +cases = ["cases/translation/functions/tuple-intersection-double.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-mod.t006" -form = "db.functions.try-mod" +id = "db.functions.tuple-intersection-double.t002" +form = "db.functions.tuple-intersection-double" kind = "null_argument" -target = "INT, INT" -note = "try-mod with NULL as argument 1." +target = "BINARY, BINARY" +note = "tuple-intersection-double with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-mod.toml#t005_null_1"] +cases = ["cases/translation/functions/tuple-intersection-double.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.try-mod.t007" -form = "db.functions.try-mod" +id = "db.functions.tuple-intersection-double.t003" +form = "db.functions.tuple-intersection-double" kind = "null_argument" -target = "INT, INT" -note = "try-mod with NULL as argument 2." +target = "BINARY, BINARY" +note = "tuple-intersection-double with NULL as argument 2." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-mod.toml#t006_null_2"] +cases = ["cases/translation/functions/tuple-intersection-double.toml#t003_null_2"] required = true [[obligation]] -id = "db.functions.try-mod.t008" -form = "db.functions.try-mod" +id = "db.functions.tuple-intersection-double.t004" +form = "db.functions.tuple-intersection-double" kind = "error_parity" -target = "STRING, INT" -note = "try-mod with a STRING value where the page documents INT." +target = "STRING, BINARY" +note = "tuple-intersection-double with a STRING value where the page documents BINARY." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-mod.toml#t011_wrong_kind"] +cases = ["cases/translation/functions/tuple-intersection-double.toml#t006_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-multiply.t001" -form = "db.functions.try-multiply" +id = "db.functions.tuple-intersection-integer.t001" +form = "db.functions.tuple-intersection-integer" kind = "type_combination" -target = "INT, INT" -note = "try-multiply with arguments of type INT, INT." +target = "BINARY, BINARY" +note = "tuple-intersection-integer with arguments of type BINARY, BINARY." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-multiply.toml#t001_types_1"] +cases = ["cases/translation/functions/tuple-intersection-integer.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-multiply.t002" -form = "db.functions.try-multiply" -kind = "type_combination" -target = "INTERVAL DAY, INT" -note = "try-multiply with arguments of type INTERVAL DAY, INT." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.tuple-intersection-integer.t002" +form = "db.functions.tuple-intersection-integer" +kind = "null_argument" +target = "BINARY, BINARY" +note = "tuple-intersection-integer with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-multiply.toml#t002_types_2"] +cases = ["cases/translation/functions/tuple-intersection-integer.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.try-multiply.t003" -form = "db.functions.try-multiply" -kind = "type_combination" -target = "DECIMAL(10,2), INT" -note = "try-multiply with arguments of type DECIMAL(10,2), INT." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.tuple-intersection-integer.t003" +form = "db.functions.tuple-intersection-integer" +kind = "null_argument" +target = "BINARY, BINARY" +note = "tuple-intersection-integer with NULL as argument 2." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/tuple-intersection-integer.toml#t003_null_2"] +required = true + +[[obligation]] +id = "db.functions.tuple-intersection-integer.t004" +form = "db.functions.tuple-intersection-integer" +kind = "error_parity" +target = "STRING, BINARY" +note = "tuple-intersection-integer with a STRING value where the page documents BINARY." +catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-multiply.toml#t003_types_3"] +cases = ["cases/translation/functions/tuple-intersection-integer.toml#t006_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-multiply.t004" -form = "db.functions.try-multiply" +id = "db.functions.tuple-intersection-theta-double.t001" +form = "db.functions.tuple-intersection-theta-double" kind = "type_combination" -target = "INTERVAL YEAR TO MONTH, INT" -note = "try-multiply with arguments of type INTERVAL YEAR TO MONTH, INT." +target = "BINARY, BINARY" +note = "tuple-intersection-theta-double with arguments of type BINARY, BINARY." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-multiply.toml#t004_types_4"] +cases = ["cases/translation/functions/tuple-intersection-theta-double.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-multiply.t005" -form = "db.functions.try-multiply" +id = "db.functions.tuple-intersection-theta-double.t002" +form = "db.functions.tuple-intersection-theta-double" kind = "null_argument" -target = "INT, INT" -note = "try-multiply with NULL as argument 1." +target = "BINARY, BINARY" +note = "tuple-intersection-theta-double with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-multiply.toml#t005_null_1"] +cases = ["cases/translation/functions/tuple-intersection-theta-double.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.try-multiply.t006" -form = "db.functions.try-multiply" +id = "db.functions.tuple-intersection-theta-double.t003" +form = "db.functions.tuple-intersection-theta-double" kind = "null_argument" -target = "INT, INT" -note = "try-multiply with NULL as argument 2." +target = "BINARY, BINARY" +note = "tuple-intersection-theta-double with NULL as argument 2." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-multiply.toml#t006_null_2"] +cases = ["cases/translation/functions/tuple-intersection-theta-double.toml#t003_null_2"] required = true [[obligation]] -id = "db.functions.try-multiply.t007" -form = "db.functions.try-multiply" +id = "db.functions.tuple-intersection-theta-double.t004" +form = "db.functions.tuple-intersection-theta-double" kind = "error_parity" -target = "STRING, INT" -note = "try-multiply with a STRING value where the page documents INT." +target = "STRING, BINARY" +note = "tuple-intersection-theta-double with a STRING value where the page documents BINARY." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-multiply.toml#t011_wrong_kind"] +cases = ["cases/translation/functions/tuple-intersection-theta-double.toml#t006_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-parse-json.t001" -form = "db.functions.try-parse-json" +id = "db.functions.tuple-intersection-theta-integer.t001" +form = "db.functions.tuple-intersection-theta-integer" kind = "type_combination" -target = "STRING" -note = "try-parse-json with arguments of type STRING." +target = "BINARY, BINARY" +note = "tuple-intersection-theta-integer with arguments of type BINARY, BINARY." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-parse-json.toml#t001_types_1"] +cases = ["cases/translation/functions/tuple-intersection-theta-integer.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-parse-json.t002" -form = "db.functions.try-parse-json" +id = "db.functions.tuple-intersection-theta-integer.t002" +form = "db.functions.tuple-intersection-theta-integer" kind = "null_argument" -target = "STRING" -note = "try-parse-json with NULL as argument 1." +target = "BINARY, BINARY" +note = "tuple-intersection-theta-integer with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-parse-json.toml#t002_null_1"] +cases = ["cases/translation/functions/tuple-intersection-theta-integer.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.try-parse-json.t003" -form = "db.functions.try-parse-json" +id = "db.functions.tuple-intersection-theta-integer.t003" +form = "db.functions.tuple-intersection-theta-integer" +kind = "null_argument" +target = "BINARY, BINARY" +note = "tuple-intersection-theta-integer with NULL as argument 2." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/tuple-intersection-theta-integer.toml#t003_null_2"] +required = true + +[[obligation]] +id = "db.functions.tuple-intersection-theta-integer.t004" +form = "db.functions.tuple-intersection-theta-integer" kind = "error_parity" -target = "ARRAY" -note = "try-parse-json with a ARRAY value where the page documents STRING." +target = "STRING, BINARY" +note = "tuple-intersection-theta-integer with a STRING value where the page documents BINARY." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-parse-json.toml#t005_wrong_kind"] +cases = ["cases/translation/functions/tuple-intersection-theta-integer.toml#t006_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-parse-timestamp.t001" -form = "db.functions.try-parse-timestamp" +id = "db.functions.tuple-sketch-agg-double.t001" +form = "db.functions.tuple-sketch-agg-double" kind = "type_combination" -target = "INT" -note = "try-parse-timestamp with arguments of type INT." +target = "INT, DOUBLE" +note = "tuple-sketch-agg-double with arguments of type INT, DOUBLE." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-parse-timestamp.toml#t001_types_1"] +cases = ["cases/translation/functions/tuple-sketch-agg-double.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-parse-timestamp.t002" -form = "db.functions.try-parse-timestamp" +id = "db.functions.tuple-sketch-agg-double.t002" +form = "db.functions.tuple-sketch-agg-double" kind = "type_combination" -target = "STRING" -note = "try-parse-timestamp with arguments of type STRING." +target = "BIGINT, DOUBLE" +note = "tuple-sketch-agg-double with arguments of type BIGINT, DOUBLE." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-parse-timestamp.toml#t002_types_2"] +cases = ["cases/translation/functions/tuple-sketch-agg-double.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.try-parse-timestamp.t003" -form = "db.functions.try-parse-timestamp" +id = "db.functions.tuple-sketch-agg-double.t003" +form = "db.functions.tuple-sketch-agg-double" kind = "type_combination" -target = "TIMESTAMP" -note = "try-parse-timestamp with arguments of type TIMESTAMP." +target = "FLOAT, DOUBLE" +note = "tuple-sketch-agg-double with arguments of type FLOAT, DOUBLE." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-parse-timestamp.toml#t003_types_3"] +cases = ["cases/translation/functions/tuple-sketch-agg-double.toml#t003_types_3"] required = true [[obligation]] -id = "db.functions.try-parse-timestamp.t004" -form = "db.functions.try-parse-timestamp" +id = "db.functions.tuple-sketch-agg-double.t004" +form = "db.functions.tuple-sketch-agg-double" kind = "type_combination" -target = "DECIMAL(10,2)" -note = "try-parse-timestamp with arguments of type DECIMAL(10,2)." +target = "DOUBLE, DOUBLE" +note = "tuple-sketch-agg-double with arguments of type DOUBLE, DOUBLE." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-parse-timestamp.toml#t004_types_4"] +cases = ["cases/translation/functions/tuple-sketch-agg-double.toml#t004_types_4"] required = true [[obligation]] -id = "db.functions.try-parse-timestamp.t005" -form = "db.functions.try-parse-timestamp" +id = "db.functions.tuple-sketch-agg-double.t005" +form = "db.functions.tuple-sketch-agg-double" kind = "null_argument" -target = "INT" -note = "try-parse-timestamp with NULL as argument 1." +target = "INT, DOUBLE" +note = "tuple-sketch-agg-double with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-parse-timestamp.toml#t005_null_1"] +cases = ["cases/translation/functions/tuple-sketch-agg-double.toml#t005_null_1"] required = true [[obligation]] -id = "db.functions.try-parse-timestamp.t006" -form = "db.functions.try-parse-timestamp" +id = "db.functions.tuple-sketch-agg-double.t006" +form = "db.functions.tuple-sketch-agg-double" +kind = "null_argument" +target = "INT, DOUBLE" +note = "tuple-sketch-agg-double with NULL as argument 2." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/tuple-sketch-agg-double.toml#t006_null_2"] +required = true + +[[obligation]] +id = "db.functions.tuple-sketch-agg-double.t007" +form = "db.functions.tuple-sketch-agg-double" kind = "error_parity" -target = "STRING" -note = "try-parse-timestamp with a STRING value where the page documents INT." +target = "STRING, DOUBLE" +note = "tuple-sketch-agg-double with a STRING value where the page documents INT." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-parse-timestamp.toml#t008_wrong_kind"] +cases = ["cases/translation/functions/tuple-sketch-agg-double.toml#t011_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-subtract.t001" -form = "db.functions.try-subtract" +id = "db.functions.tuple-sketch-agg-integer.t001" +form = "db.functions.tuple-sketch-agg-integer" kind = "type_combination" target = "INT, INT" -note = "try-subtract with arguments of type INT, INT." +note = "tuple-sketch-agg-integer with arguments of type INT, INT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-subtract.toml#t001_types_1"] +cases = ["cases/translation/functions/tuple-sketch-agg-integer.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-subtract.t002" -form = "db.functions.try-subtract" +id = "db.functions.tuple-sketch-agg-integer.t002" +form = "db.functions.tuple-sketch-agg-integer" kind = "type_combination" -target = "DATE, INT" -note = "try-subtract with arguments of type DATE, INT." +target = "BIGINT, INT" +note = "tuple-sketch-agg-integer with arguments of type BIGINT, INT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-subtract.toml#t002_types_2"] +cases = ["cases/translation/functions/tuple-sketch-agg-integer.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.try-subtract.t003" -form = "db.functions.try-subtract" +id = "db.functions.tuple-sketch-agg-integer.t003" +form = "db.functions.tuple-sketch-agg-integer" kind = "type_combination" -target = "TIMESTAMP, INT" -note = "try-subtract with arguments of type TIMESTAMP, INT." +target = "FLOAT, INT" +note = "tuple-sketch-agg-integer with arguments of type FLOAT, INT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-subtract.toml#t003_types_3"] +cases = ["cases/translation/functions/tuple-sketch-agg-integer.toml#t003_types_3"] required = true [[obligation]] -id = "db.functions.try-subtract.t004" -form = "db.functions.try-subtract" +id = "db.functions.tuple-sketch-agg-integer.t004" +form = "db.functions.tuple-sketch-agg-integer" kind = "type_combination" -target = "INTERVAL DAY, INT" -note = "try-subtract with arguments of type INTERVAL DAY, INT." +target = "DOUBLE, INT" +note = "tuple-sketch-agg-integer with arguments of type DOUBLE, INT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-subtract.toml#t004_types_4"] +cases = ["cases/translation/functions/tuple-sketch-agg-integer.toml#t004_types_4"] required = true [[obligation]] -id = "db.functions.try-subtract.t005" -form = "db.functions.try-subtract" +id = "db.functions.tuple-sketch-agg-integer.t005" +form = "db.functions.tuple-sketch-agg-integer" kind = "null_argument" target = "INT, INT" -note = "try-subtract with NULL as argument 1." +note = "tuple-sketch-agg-integer with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-subtract.toml#t005_null_1"] +cases = ["cases/translation/functions/tuple-sketch-agg-integer.toml#t005_null_1"] required = true [[obligation]] -id = "db.functions.try-subtract.t006" -form = "db.functions.try-subtract" +id = "db.functions.tuple-sketch-agg-integer.t006" +form = "db.functions.tuple-sketch-agg-integer" kind = "null_argument" target = "INT, INT" -note = "try-subtract with NULL as argument 2." +note = "tuple-sketch-agg-integer with NULL as argument 2." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-subtract.toml#t006_null_2"] +cases = ["cases/translation/functions/tuple-sketch-agg-integer.toml#t006_null_2"] required = true [[obligation]] -id = "db.functions.try-subtract.t007" -form = "db.functions.try-subtract" +id = "db.functions.tuple-sketch-agg-integer.t007" +form = "db.functions.tuple-sketch-agg-integer" kind = "error_parity" target = "STRING, INT" -note = "try-subtract with a STRING value where the page documents INT." +note = "tuple-sketch-agg-integer with a STRING value where the page documents INT." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-subtract.toml#t011_wrong_kind"] +cases = ["cases/translation/functions/tuple-sketch-agg-integer.toml#t011_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-sum.t001" -form = "db.functions.try-sum" +id = "db.functions.tuple-sketch-estimate-double.t001" +form = "db.functions.tuple-sketch-estimate-double" kind = "type_combination" -target = "DOUBLE" -note = "try_sum of DOUBLE values: whole multiples of one power of two, then values whose total depends on the order of addition. Hand-written for the phase-2 recording." +target = "BINARY" +note = "tuple-sketch-estimate-double with arguments of type BINARY." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-sum.pa.hand.toml#p001"] +cases = ["cases/translation/functions/tuple-sketch-estimate-double.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-sum.t002" -form = "db.functions.try-sum" -kind = "type_combination" -target = "DOUBLE" -note = "try_sum of DOUBLE values: whole multiples of one power of two, then values whose total depends on the order of addition. Hand-written for the phase-2 recording." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.tuple-sketch-estimate-double.t002" +form = "db.functions.tuple-sketch-estimate-double" +kind = "null_argument" +target = "BINARY" +note = "tuple-sketch-estimate-double with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-sum.pa.hand.toml#p002"] +cases = ["cases/translation/functions/tuple-sketch-estimate-double.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.try-sum.t003" -form = "db.functions.try-sum" -kind = "type_combination" -target = "DOUBLE" -note = "try_sum of DOUBLE values: whole multiples of one power of two, then values whose total depends on the order of addition. Hand-written for the phase-2 recording." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.tuple-sketch-estimate-double.t003" +form = "db.functions.tuple-sketch-estimate-double" +kind = "error_parity" +target = "STRING" +note = "tuple-sketch-estimate-double with a STRING value where the page documents BINARY." +catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-sum.pa.hand.toml#p003"] +cases = ["cases/translation/functions/tuple-sketch-estimate-double.toml#t004_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-sum.t004" -form = "db.functions.try-sum" +id = "db.functions.tuple-sketch-estimate-integer.t001" +form = "db.functions.tuple-sketch-estimate-integer" kind = "type_combination" -target = "INT" -note = "try-sum with arguments of type INT." +target = "BINARY" +note = "tuple-sketch-estimate-integer with arguments of type BINARY." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-sum.toml#t001_types_1"] +cases = ["cases/translation/functions/tuple-sketch-estimate-integer.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-sum.t005" -form = "db.functions.try-sum" -kind = "type_combination" -target = "INTERVAL DAY" -note = "try-sum with arguments of type INTERVAL DAY." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.tuple-sketch-estimate-integer.t002" +form = "db.functions.tuple-sketch-estimate-integer" +kind = "null_argument" +target = "BINARY" +note = "tuple-sketch-estimate-integer with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-sum.toml#t002_types_2"] +cases = ["cases/translation/functions/tuple-sketch-estimate-integer.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.try-sum.t006" -form = "db.functions.try-sum" -kind = "type_combination" -target = "DECIMAL(10,2)" -note = "try-sum with arguments of type DECIMAL(10,2)." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.tuple-sketch-estimate-integer.t003" +form = "db.functions.tuple-sketch-estimate-integer" +kind = "error_parity" +target = "STRING" +note = "tuple-sketch-estimate-integer with a STRING value where the page documents BINARY." +catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-sum.toml#t003_types_3"] +cases = ["cases/translation/functions/tuple-sketch-estimate-integer.toml#t004_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-sum.t007" -form = "db.functions.try-sum" +id = "db.functions.tuple-sketch-summary-double.t001" +form = "db.functions.tuple-sketch-summary-double" kind = "type_combination" -target = "INTERVAL YEAR TO MONTH" -note = "try-sum with arguments of type INTERVAL YEAR TO MONTH." +target = "BINARY" +note = "tuple-sketch-summary-double with arguments of type BINARY." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-sum.toml#t004_types_4"] +cases = ["cases/translation/functions/tuple-sketch-summary-double.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-sum.t008" -form = "db.functions.try-sum" +id = "db.functions.tuple-sketch-summary-double.t002" +form = "db.functions.tuple-sketch-summary-double" kind = "null_argument" -target = "INT" -note = "try-sum with NULL as argument 1." +target = "BINARY" +note = "tuple-sketch-summary-double with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-sum.toml#t005_null_1"] +cases = ["cases/translation/functions/tuple-sketch-summary-double.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.try-sum.t009" -form = "db.functions.try-sum" +id = "db.functions.tuple-sketch-summary-double.t003" +form = "db.functions.tuple-sketch-summary-double" kind = "error_parity" target = "STRING" -note = "try-sum with a STRING value where the page documents INT." +note = "tuple-sketch-summary-double with a STRING value where the page documents BINARY." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-sum.toml#t008_wrong_kind"] +cases = ["cases/translation/functions/tuple-sketch-summary-double.toml#t004_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-to-binary.t001" -form = "db.functions.try-to-binary" +id = "db.functions.tuple-sketch-summary-integer.t001" +form = "db.functions.tuple-sketch-summary-integer" kind = "type_combination" -target = "STRING" -note = "try-to-binary with arguments of type STRING." +target = "BINARY" +note = "tuple-sketch-summary-integer with arguments of type BINARY." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-binary.toml#t001_types_1"] +cases = ["cases/translation/functions/tuple-sketch-summary-integer.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-to-binary.t002" -form = "db.functions.try-to-binary" +id = "db.functions.tuple-sketch-summary-integer.t002" +form = "db.functions.tuple-sketch-summary-integer" kind = "null_argument" -target = "STRING" -note = "try-to-binary with NULL as argument 1." +target = "BINARY" +note = "tuple-sketch-summary-integer with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-binary.toml#t002_null_1"] +cases = ["cases/translation/functions/tuple-sketch-summary-integer.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.try-to-binary.t003" -form = "db.functions.try-to-binary" +id = "db.functions.tuple-sketch-summary-integer.t003" +form = "db.functions.tuple-sketch-summary-integer" kind = "error_parity" -target = "ARRAY" -note = "try-to-binary with a ARRAY value where the page documents STRING." +target = "STRING" +note = "tuple-sketch-summary-integer with a STRING value where the page documents BINARY." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-binary.toml#t005_wrong_kind"] +cases = ["cases/translation/functions/tuple-sketch-summary-integer.toml#t004_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-to-date.t001" -form = "db.functions.try-to-date" +id = "db.functions.tuple-sketch-theta-double.t001" +form = "db.functions.tuple-sketch-theta-double" kind = "type_combination" -target = "STRING" -note = "try-to-date with arguments of type STRING." +target = "BINARY" +note = "tuple-sketch-theta-double with arguments of type BINARY." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-date.toml#t001_types_1"] +cases = ["cases/translation/functions/tuple-sketch-theta-double.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-to-date.t002" -form = "db.functions.try-to-date" -kind = "type_combination" -target = "DATE" -note = "try-to-date with arguments of type DATE." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.tuple-sketch-theta-double.t002" +form = "db.functions.tuple-sketch-theta-double" +kind = "null_argument" +target = "BINARY" +note = "tuple-sketch-theta-double with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-date.toml#t002_types_2"] +cases = ["cases/translation/functions/tuple-sketch-theta-double.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.try-to-date.t003" -form = "db.functions.try-to-date" -kind = "type_combination" -target = "TIMESTAMP" -note = "try-to-date with arguments of type TIMESTAMP." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.tuple-sketch-theta-double.t003" +form = "db.functions.tuple-sketch-theta-double" +kind = "error_parity" +target = "STRING" +note = "tuple-sketch-theta-double with a STRING value where the page documents BINARY." +catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-date.toml#t003_types_3"] +cases = ["cases/translation/functions/tuple-sketch-theta-double.toml#t004_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-to-date.t004" -form = "db.functions.try-to-date" +id = "db.functions.tuple-sketch-theta-integer.t001" +form = "db.functions.tuple-sketch-theta-integer" kind = "type_combination" -target = "TIMESTAMP_NTZ" -note = "try-to-date with arguments of type TIMESTAMP_NTZ." +target = "BINARY" +note = "tuple-sketch-theta-integer with arguments of type BINARY." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-date.toml#t004_types_4"] +cases = ["cases/translation/functions/tuple-sketch-theta-integer.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-to-date.t005" -form = "db.functions.try-to-date" +id = "db.functions.tuple-sketch-theta-integer.t002" +form = "db.functions.tuple-sketch-theta-integer" kind = "null_argument" -target = "STRING" -note = "try-to-date with NULL as argument 1." +target = "BINARY" +note = "tuple-sketch-theta-integer with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-date.toml#t005_null_1"] +cases = ["cases/translation/functions/tuple-sketch-theta-integer.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.try-to-date.t006" -form = "db.functions.try-to-date" +id = "db.functions.tuple-sketch-theta-integer.t003" +form = "db.functions.tuple-sketch-theta-integer" kind = "error_parity" -target = "ARRAY" -note = "try-to-date with a ARRAY value where the page documents STRING." +target = "STRING" +note = "tuple-sketch-theta-integer with a STRING value where the page documents BINARY." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-date.toml#t008_wrong_kind"] +cases = ["cases/translation/functions/tuple-sketch-theta-integer.toml#t004_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-to-file.t001" -form = "db.functions.try-to-file" +id = "db.functions.tuple-union-agg-double.t001" +form = "db.functions.tuple-union-agg-double" kind = "type_combination" -target = "STRING" -note = "try-to-file with arguments of type STRING." +target = "BINARY" +note = "tuple-union-agg-double with arguments of type BINARY." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-file.toml#t001_types_1"] +cases = ["cases/translation/functions/tuple-union-agg-double.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-to-file.t002" -form = "db.functions.try-to-file" +id = "db.functions.tuple-union-agg-double.t002" +form = "db.functions.tuple-union-agg-double" kind = "null_argument" -target = "STRING" -note = "try-to-file with NULL as argument 1." +target = "BINARY" +note = "tuple-union-agg-double with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-file.toml#t002_null_1"] +cases = ["cases/translation/functions/tuple-union-agg-double.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.try-to-file.t003" -form = "db.functions.try-to-file" +id = "db.functions.tuple-union-agg-double.t003" +form = "db.functions.tuple-union-agg-double" kind = "error_parity" -target = "ARRAY" -note = "try-to-file with a ARRAY value where the page documents STRING." -catches = "a value returned where Databricks rejects the arguments, or another error kind" -reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-file.toml#t005_wrong_kind"] -required = true - -[[obligation]] -id = "db.functions.try-to-geography.t001" -form = "db.functions.try-to-geography" -kind = "type_combination" target = "STRING" -note = "try-to-geography with arguments of type STRING." -catches = "the argument types read another way, or the result typed otherwise" +note = "tuple-union-agg-double with a STRING value where the page documents BINARY." +catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-geography.toml#t001_types_1"] +cases = ["cases/translation/functions/tuple-union-agg-double.toml#t004_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-to-geography.t002" -form = "db.functions.try-to-geography" +id = "db.functions.tuple-union-agg-integer.t001" +form = "db.functions.tuple-union-agg-integer" kind = "type_combination" target = "BINARY" -note = "try-to-geography with arguments of type BINARY." +note = "tuple-union-agg-integer with arguments of type BINARY." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-geography.toml#t002_types_2"] +cases = ["cases/translation/functions/tuple-union-agg-integer.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-to-geography.t003" -form = "db.functions.try-to-geography" +id = "db.functions.tuple-union-agg-integer.t002" +form = "db.functions.tuple-union-agg-integer" kind = "null_argument" -target = "STRING" -note = "try-to-geography with NULL as argument 1." +target = "BINARY" +note = "tuple-union-agg-integer with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-geography.toml#t003_null_1"] +cases = ["cases/translation/functions/tuple-union-agg-integer.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.try-to-geography.t004" -form = "db.functions.try-to-geography" +id = "db.functions.tuple-union-agg-integer.t003" +form = "db.functions.tuple-union-agg-integer" kind = "error_parity" -target = "ARRAY" -note = "try-to-geography with a ARRAY value where the page documents STRING." +target = "STRING" +note = "tuple-union-agg-integer with a STRING value where the page documents BINARY." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-geography.toml#t006_wrong_kind"] +cases = ["cases/translation/functions/tuple-union-agg-integer.toml#t004_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-to-geometry.t001" -form = "db.functions.try-to-geometry" +id = "db.functions.tuple-union-double.t001" +form = "db.functions.tuple-union-double" kind = "type_combination" -target = "STRING" -note = "try-to-geometry with arguments of type STRING." +target = "BINARY, BINARY" +note = "tuple-union-double with arguments of type BINARY, BINARY." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-geometry.toml#t001_types_1"] -required = true - -[[obligation]] -id = "db.functions.try-to-geometry.t002" -form = "db.functions.try-to-geometry" -kind = "type_combination" -target = "BINARY" -note = "try-to-geometry with arguments of type BINARY." -catches = "the argument types read another way, or the result typed otherwise" +cases = ["cases/translation/functions/tuple-union-double.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.tuple-union-double.t002" +form = "db.functions.tuple-union-double" +kind = "null_argument" +target = "BINARY, BINARY" +note = "tuple-union-double with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-geometry.toml#t002_types_2"] +cases = ["cases/translation/functions/tuple-union-double.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.try-to-geometry.t003" -form = "db.functions.try-to-geometry" +id = "db.functions.tuple-union-double.t003" +form = "db.functions.tuple-union-double" kind = "null_argument" -target = "STRING" -note = "try-to-geometry with NULL as argument 1." +target = "BINARY, BINARY" +note = "tuple-union-double with NULL as argument 2." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-geometry.toml#t003_null_1"] +cases = ["cases/translation/functions/tuple-union-double.toml#t003_null_2"] required = true [[obligation]] -id = "db.functions.try-to-geometry.t004" -form = "db.functions.try-to-geometry" +id = "db.functions.tuple-union-double.t004" +form = "db.functions.tuple-union-double" kind = "error_parity" -target = "ARRAY" -note = "try-to-geometry with a ARRAY value where the page documents STRING." +target = "STRING, BINARY" +note = "tuple-union-double with a STRING value where the page documents BINARY." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-geometry.toml#t006_wrong_kind"] +cases = ["cases/translation/functions/tuple-union-double.toml#t006_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-to-number.t001" -form = "db.functions.try-to-number" +id = "db.functions.tuple-union-integer.t001" +form = "db.functions.tuple-union-integer" kind = "type_combination" -target = "STRING" -note = "try_to_number of good and bad strings. Hand-written." +target = "BINARY, BINARY" +note = "tuple-union-integer with arguments of type BINARY, BINARY." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-number.hand.toml#t001_format"] +cases = ["cases/translation/functions/tuple-union-integer.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-to-number.t002" -form = "db.functions.try-to-number" +id = "db.functions.tuple-union-integer.t002" +form = "db.functions.tuple-union-integer" kind = "null_argument" -target = "STRING" -note = "try_to_number of NULL. Hand-written." +target = "BINARY, BINARY" +note = "tuple-union-integer with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-number.hand.toml#t002_null"] +cases = ["cases/translation/functions/tuple-union-integer.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.try-to-number.t003" -form = "db.functions.try-to-number" +id = "db.functions.tuple-union-integer.t003" +form = "db.functions.tuple-union-integer" +kind = "null_argument" +target = "BINARY, BINARY" +note = "tuple-union-integer with NULL as argument 2." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/tuple-union-integer.toml#t003_null_2"] +required = true + +[[obligation]] +id = "db.functions.tuple-union-integer.t004" +form = "db.functions.tuple-union-integer" +kind = "error_parity" +target = "STRING, BINARY" +note = "tuple-union-integer with a STRING value where the page documents BINARY." +catches = "a value returned where Databricks rejects the arguments, or another error kind" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/tuple-union-integer.toml#t006_wrong_kind"] +required = true + +[[obligation]] +id = "db.functions.tuple-union-theta-double.t001" +form = "db.functions.tuple-union-theta-double" kind = "type_combination" -target = "STRING" -note = "try-to-number with arguments of type STRING, STRING. Arguments 2 onward inlined as constants." +target = "BINARY, BINARY" +note = "tuple-union-theta-double with arguments of type BINARY, BINARY." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-number.lit.toml#t001_types_1_lit"] +cases = ["cases/translation/functions/tuple-union-theta-double.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-to-number.t004" -form = "db.functions.try-to-number" +id = "db.functions.tuple-union-theta-double.t002" +form = "db.functions.tuple-union-theta-double" kind = "null_argument" -target = "STRING" -note = "try-to-number with NULL as argument 1. Arguments 2 onward inlined as constants." +target = "BINARY, BINARY" +note = "tuple-union-theta-double with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-number.lit.toml#t002_null_1_lit"] +cases = ["cases/translation/functions/tuple-union-theta-double.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.try-to-number.t005" -form = "db.functions.try-to-number" +id = "db.functions.tuple-union-theta-double.t003" +form = "db.functions.tuple-union-theta-double" kind = "null_argument" -target = "STRING" -note = "try-to-number with NULL as argument 2. Arguments 2 onward inlined as constants." +target = "BINARY, BINARY" +note = "tuple-union-theta-double with NULL as argument 2." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-number.lit.toml#t003_null_2_lit"] +cases = ["cases/translation/functions/tuple-union-theta-double.toml#t003_null_2"] required = true [[obligation]] -id = "db.functions.try-to-number.t006" -form = "db.functions.try-to-number" +id = "db.functions.tuple-union-theta-double.t004" +form = "db.functions.tuple-union-theta-double" kind = "error_parity" -target = "ARRAY" -note = "try-to-number with a ARRAY value where the page documents STRING. Arguments 2 onward inlined as constants." +target = "STRING, BINARY" +note = "tuple-union-theta-double with a STRING value where the page documents BINARY." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-number.lit.toml#t008_wrong_kind_lit"] +cases = ["cases/translation/functions/tuple-union-theta-double.toml#t006_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-to-number.t007" -form = "db.functions.try-to-number" +id = "db.functions.tuple-union-theta-integer.t001" +form = "db.functions.tuple-union-theta-integer" kind = "type_combination" -target = "STRING, STRING" -note = "try-to-number with arguments of type STRING, STRING." +target = "BINARY, BINARY" +note = "tuple-union-theta-integer with arguments of type BINARY, BINARY." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-number.toml#t001_types_1"] +cases = ["cases/translation/functions/tuple-union-theta-integer.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-to-number.t008" -form = "db.functions.try-to-number" +id = "db.functions.tuple-union-theta-integer.t002" +form = "db.functions.tuple-union-theta-integer" kind = "null_argument" -target = "STRING, STRING" -note = "try-to-number with NULL as argument 1." +target = "BINARY, BINARY" +note = "tuple-union-theta-integer with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-number.toml#t002_null_1"] +cases = ["cases/translation/functions/tuple-union-theta-integer.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.try-to-number.t009" -form = "db.functions.try-to-number" +id = "db.functions.tuple-union-theta-integer.t003" +form = "db.functions.tuple-union-theta-integer" kind = "null_argument" -target = "STRING, STRING" -note = "try-to-number with NULL as argument 2." +target = "BINARY, BINARY" +note = "tuple-union-theta-integer with NULL as argument 2." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-number.toml#t003_null_2"] +cases = ["cases/translation/functions/tuple-union-theta-integer.toml#t003_null_2"] required = true [[obligation]] -id = "db.functions.try-to-number.t010" -form = "db.functions.try-to-number" +id = "db.functions.tuple-union-theta-integer.t004" +form = "db.functions.tuple-union-theta-integer" kind = "error_parity" -target = "ARRAY, STRING" -note = "try-to-number with a ARRAY value where the page documents STRING." +target = "STRING, BINARY" +note = "tuple-union-theta-integer with a STRING value where the page documents BINARY." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-number.toml#t008_wrong_kind"] +cases = ["cases/translation/functions/tuple-union-theta-integer.toml#t006_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-to-time.t001" -form = "db.functions.try-to-time" +id = "db.functions.typeof.t001" +form = "db.functions.typeof" kind = "type_combination" -target = "STRING" -note = "try-to-time with arguments of type STRING." +target = "INT" +note = "typeof with arguments of type INT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-time.toml#t001_types_1"] +cases = ["cases/translation/functions/typeof.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-to-time.t002" -form = "db.functions.try-to-time" -kind = "null_argument" +id = "db.functions.typeof.t002" +form = "db.functions.typeof" +kind = "type_combination" target = "STRING" -note = "try-to-time with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +note = "typeof with arguments of type STRING." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-time.toml#t002_null_1"] +cases = ["cases/translation/functions/typeof.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.try-to-time.t003" -form = "db.functions.try-to-time" -kind = "error_parity" -target = "ARRAY" -note = "try-to-time with a ARRAY value where the page documents STRING." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.typeof.t003" +form = "db.functions.typeof" +kind = "null_argument" +target = "INT" +note = "typeof with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-time.toml#t005_wrong_kind"] +cases = ["cases/translation/functions/typeof.toml#t003_null_1"] required = true [[obligation]] -id = "db.functions.try-to-timestamp.t001" -form = "db.functions.try-to-timestamp" -kind = "type_combination" +id = "db.functions.typeof.t004" +form = "db.functions.typeof" +kind = "error_parity" target = "STRING" -note = "try_to_timestamp of an invalid day, digitless text and a plain timestamp. Hand-written for the phase-2 recording." -catches = "the argument types read another way, or the result typed otherwise" +note = "typeof with a STRING value where the page documents INT." +catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-timestamp.pc.hand.toml#p001"] +cases = ["cases/translation/functions/typeof.toml#t006_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-to-timestamp.t002" -form = "db.functions.try-to-timestamp" +id = "db.functions.ucase.t001" +form = "db.functions.ucase" kind = "type_combination" -target = "INT" -note = "try-to-timestamp with arguments of type INT." +target = "STRING" +note = "ucase with arguments of type STRING." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-timestamp.toml#t001_types_1"] +cases = ["cases/translation/functions/ucase.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-to-timestamp.t003" -form = "db.functions.try-to-timestamp" -kind = "type_combination" +id = "db.functions.ucase.t002" +form = "db.functions.ucase" +kind = "null_argument" target = "STRING" -note = "try-to-timestamp with arguments of type STRING." -catches = "the argument types read another way, or the result typed otherwise" +note = "ucase with NULL as argument 1." +catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-timestamp.toml#t002_types_2"] +cases = ["cases/translation/functions/ucase.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.try-to-timestamp.t004" -form = "db.functions.try-to-timestamp" -kind = "type_combination" -target = "DATE" -note = "try-to-timestamp with arguments of type DATE." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.ucase.t003" +form = "db.functions.ucase" +kind = "error_parity" +target = "ARRAY" +note = "ucase with a ARRAY value where the page documents STRING." +catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-timestamp.toml#t003_types_3"] +cases = ["cases/translation/functions/ucase.toml#t005_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-to-timestamp.t005" -form = "db.functions.try-to-timestamp" +id = "db.functions.unbase64.t001" +form = "db.functions.unbase64" kind = "type_combination" -target = "TIMESTAMP" -note = "try-to-timestamp with arguments of type TIMESTAMP." +target = "STRING" +note = "unbase64 without padding, of one character, and with padding inside. Hand-written for the phase-2 recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-timestamp.toml#t004_types_4"] +cases = ["cases/translation/functions/unbase64.pb.hand.toml#p001"] required = true [[obligation]] -id = "db.functions.try-to-timestamp.t006" -form = "db.functions.try-to-timestamp" -kind = "null_argument" -target = "INT" -note = "try-to-timestamp with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.unbase64.t002" +form = "db.functions.unbase64" +kind = "type_combination" +target = "STRING" +note = "unbase64 without padding, of one character, and with padding inside. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-timestamp.toml#t005_null_1"] +cases = ["cases/translation/functions/unbase64.pb.hand.toml#p002"] required = true [[obligation]] -id = "db.functions.try-to-timestamp.t007" -form = "db.functions.try-to-timestamp" -kind = "error_parity" +id = "db.functions.unbase64.t003" +form = "db.functions.unbase64" +kind = "type_combination" target = "STRING" -note = "try-to-timestamp with a STRING value where the page documents INT." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +note = "unbase64 without padding, of one character, and with padding inside. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-to-timestamp.toml#t008_wrong_kind"] +cases = ["cases/translation/functions/unbase64.pb.hand.toml#p003"] required = true [[obligation]] -id = "db.functions.try-url-decode.t001" -form = "db.functions.try-url-decode" +id = "db.functions.unbase64.t004" +form = "db.functions.unbase64" kind = "type_combination" target = "STRING" -note = "try-url-decode with arguments of type STRING." +note = "unbase64 with arguments of type STRING." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-url-decode.toml#t001_types_1"] +cases = ["cases/translation/functions/unbase64.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-url-decode.t002" -form = "db.functions.try-url-decode" +id = "db.functions.unbase64.t005" +form = "db.functions.unbase64" kind = "null_argument" target = "STRING" -note = "try-url-decode with NULL as argument 1." +note = "unbase64 with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-url-decode.toml#t002_null_1"] +cases = ["cases/translation/functions/unbase64.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.try-url-decode.t003" -form = "db.functions.try-url-decode" +id = "db.functions.unbase64.t006" +form = "db.functions.unbase64" kind = "error_parity" target = "ARRAY" -note = "try-url-decode with a ARRAY value where the page documents STRING." +note = "unbase64 with a ARRAY value where the page documents STRING." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-url-decode.toml#t005_wrong_kind"] +cases = ["cases/translation/functions/unbase64.toml#t005_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-validate-utf8.t001" -form = "db.functions.try-validate-utf8" +id = "db.functions.unhex.t001" +form = "db.functions.unhex" kind = "type_combination" target = "STRING" -note = "try-validate-utf8 with arguments of type STRING." +note = "unhex with arguments of type STRING." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-validate-utf8.toml#t001_types_1"] +cases = ["cases/translation/functions/unhex.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-validate-utf8.t002" -form = "db.functions.try-validate-utf8" +id = "db.functions.unhex.t002" +form = "db.functions.unhex" kind = "null_argument" target = "STRING" -note = "try-validate-utf8 with NULL as argument 1." +note = "unhex with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-validate-utf8.toml#t002_null_1"] +cases = ["cases/translation/functions/unhex.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.try-validate-utf8.t003" -form = "db.functions.try-validate-utf8" +id = "db.functions.unhex.t003" +form = "db.functions.unhex" kind = "error_parity" target = "ARRAY" -note = "try-validate-utf8 with a ARRAY value where the page documents STRING." +note = "unhex with a ARRAY value where the page documents STRING." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-validate-utf8.toml#t005_wrong_kind"] +cases = ["cases/translation/functions/unhex.toml#t005_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-variant-get.t001" -form = "db.functions.try-variant-get" +id = "db.functions.unix-date.t001" +form = "db.functions.unix-date" kind = "type_combination" -target = "VARIANT" -note = "try_variant_get with a path and type. Hand-written." +target = "DATE" +note = "unix-date with arguments of type DATE." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-variant-get.hand.toml#t001_path"] +cases = ["cases/translation/functions/unix-date.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-variant-get.t002" -form = "db.functions.try-variant-get" +id = "db.functions.unix-date.t002" +form = "db.functions.unix-date" kind = "null_argument" -target = "VARIANT" -note = "try_variant_get of NULL. Hand-written." +target = "DATE" +note = "unix-date with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-variant-get.hand.toml#t002_null"] +cases = ["cases/translation/functions/unix-date.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.try-variant-get.t003" -form = "db.functions.try-variant-get" -kind = "type_combination" -target = "VARIANT" -note = "try-variant-get with arguments of type VARIANT, STRING, STRING. Arguments 2 onward inlined as constants." -catches = "the argument types read another way, or the result typed otherwise" +id = "db.functions.unix-date.t003" +form = "db.functions.unix-date" +kind = "error_parity" +target = "STRING" +note = "unix-date with a STRING value where the page documents DATE." +catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-variant-get.lit.toml#t001_types_1_lit"] +cases = ["cases/translation/functions/unix-date.toml#t005_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-variant-get.t004" -form = "db.functions.try-variant-get" -kind = "null_argument" -target = "VARIANT" -note = "try-variant-get with NULL as argument 1. Arguments 2 onward inlined as constants." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.unix-micros.t001" +form = "db.functions.unix-micros" +kind = "type_combination" +target = "TIMESTAMP" +note = "unix-micros with arguments of type TIMESTAMP." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-variant-get.lit.toml#t002_null_1_lit"] +cases = ["cases/translation/functions/unix-micros.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-variant-get.t005" -form = "db.functions.try-variant-get" -kind = "null_argument" -target = "VARIANT" -note = "try-variant-get with NULL as argument 2. Arguments 2 onward inlined as constants." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.unix-micros.t002" +form = "db.functions.unix-micros" +kind = "type_combination" +target = "TIMESTAMP_NTZ" +note = "unix-micros with arguments of type TIMESTAMP_NTZ." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-variant-get.lit.toml#t003_null_2_lit"] +cases = ["cases/translation/functions/unix-micros.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.try-variant-get.t006" -form = "db.functions.try-variant-get" +id = "db.functions.unix-micros.t003" +form = "db.functions.unix-micros" kind = "null_argument" -target = "VARIANT" -note = "try-variant-get with NULL as argument 3. Arguments 2 onward inlined as constants." +target = "TIMESTAMP" +note = "unix-micros with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-variant-get.lit.toml#t004_null_3_lit"] +cases = ["cases/translation/functions/unix-micros.toml#t003_null_1"] required = true [[obligation]] -id = "db.functions.try-variant-get.t007" -form = "db.functions.try-variant-get" +id = "db.functions.unix-micros.t004" +form = "db.functions.unix-micros" kind = "error_parity" target = "STRING" -note = "try-variant-get with a STRING value where the page documents VARIANT. Arguments 2 onward inlined as constants." +note = "unix-micros with a STRING value where the page documents TIMESTAMP." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-variant-get.lit.toml#t009_wrong_kind_lit"] +cases = ["cases/translation/functions/unix-micros.toml#t006_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-variant-get.t008" -form = "db.functions.try-variant-get" +id = "db.functions.unix-millis.t001" +form = "db.functions.unix-millis" kind = "type_combination" -target = "VARIANT, STRING, STRING" -note = "try-variant-get with arguments of type VARIANT, STRING, STRING." +target = "TIMESTAMP" +note = "unix-millis with arguments of type TIMESTAMP." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-variant-get.toml#t001_types_1"] -required = true - -[[obligation]] -id = "db.functions.try-variant-get.t009" -form = "db.functions.try-variant-get" -kind = "null_argument" -target = "VARIANT, STRING, STRING" -note = "try-variant-get with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" -reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-variant-get.toml#t002_null_1"] +cases = ["cases/translation/functions/unix-millis.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.try-variant-get.t010" -form = "db.functions.try-variant-get" -kind = "null_argument" -target = "VARIANT, STRING, STRING" -note = "try-variant-get with NULL as argument 2." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.unix-millis.t002" +form = "db.functions.unix-millis" +kind = "type_combination" +target = "TIMESTAMP_NTZ" +note = "unix-millis with arguments of type TIMESTAMP_NTZ." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-variant-get.toml#t003_null_2"] +cases = ["cases/translation/functions/unix-millis.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.try-variant-get.t011" -form = "db.functions.try-variant-get" +id = "db.functions.unix-millis.t003" +form = "db.functions.unix-millis" kind = "null_argument" -target = "VARIANT, STRING, STRING" -note = "try-variant-get with NULL as argument 3." +target = "TIMESTAMP" +note = "unix-millis with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-variant-get.toml#t004_null_3"] +cases = ["cases/translation/functions/unix-millis.toml#t003_null_1"] required = true [[obligation]] -id = "db.functions.try-variant-get.t012" -form = "db.functions.try-variant-get" +id = "db.functions.unix-millis.t004" +form = "db.functions.unix-millis" kind = "error_parity" -target = "STRING, STRING, STRING" -note = "try-variant-get with a STRING value where the page documents VARIANT." +target = "STRING" +note = "unix-millis with a STRING value where the page documents TIMESTAMP." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-variant-get.toml#t009_wrong_kind"] +cases = ["cases/translation/functions/unix-millis.toml#t006_wrong_kind"] required = true [[obligation]] -id = "db.functions.try-zstd-decompress.t001" -form = "db.functions.try-zstd-decompress" +id = "db.functions.unix-nanos.t001" +form = "db.functions.unix-nanos" kind = "type_combination" -target = "BINARY" -note = "try-zstd-decompress with arguments of type BINARY." +target = "TIMESTAMP" +note = "unix_nanos of microsecond timestamps, which Databricks rejects: it takes TIMESTAMP(7) to TIMESTAMP(9). Hand-written for the phase-2 recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-zstd-decompress.toml#t001_types_1"] -required = true - -[[obligation]] -id = "db.functions.try-zstd-decompress.t002" -form = "db.functions.try-zstd-decompress" -kind = "null_argument" -target = "BINARY" -note = "try-zstd-decompress with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" -reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-zstd-decompress.toml#t002_null_1"] -required = true - -[[obligation]] -id = "db.functions.try-zstd-decompress.t003" -form = "db.functions.try-zstd-decompress" -kind = "error_parity" -target = "STRING" -note = "try-zstd-decompress with a STRING value where the page documents BINARY." -catches = "a value returned where Databricks rejects the arguments, or another error kind" -reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/try-zstd-decompress.toml#t004_wrong_kind"] +cases = ["cases/translation/functions/unix-nanos.pt.hand.toml#p001"] required = true [[obligation]] -id = "db.functions.tuple-difference-double.t001" -form = "db.functions.tuple-difference-double" +id = "db.functions.unix-nanos.t002" +form = "db.functions.unix-nanos" kind = "type_combination" -target = "BINARY, BINARY" -note = "tuple-difference-double with arguments of type BINARY, BINARY." +target = "TIMESTAMP" +note = "unix-nanos with arguments of type TIMESTAMP." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-difference-double.toml#t001_types_1"] +cases = ["cases/translation/functions/unix-nanos.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.tuple-difference-double.t002" -form = "db.functions.tuple-difference-double" -kind = "null_argument" -target = "BINARY, BINARY" -note = "tuple-difference-double with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.unix-nanos.t003" +form = "db.functions.unix-nanos" +kind = "type_combination" +target = "TIMESTAMP_NTZ" +note = "unix-nanos with arguments of type TIMESTAMP_NTZ." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-difference-double.toml#t002_null_1"] +cases = ["cases/translation/functions/unix-nanos.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.tuple-difference-double.t003" -form = "db.functions.tuple-difference-double" +id = "db.functions.unix-nanos.t004" +form = "db.functions.unix-nanos" kind = "null_argument" -target = "BINARY, BINARY" -note = "tuple-difference-double with NULL as argument 2." +target = "TIMESTAMP" +note = "unix-nanos with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-difference-double.toml#t003_null_2"] +cases = ["cases/translation/functions/unix-nanos.toml#t003_null_1"] required = true [[obligation]] -id = "db.functions.tuple-difference-double.t004" -form = "db.functions.tuple-difference-double" +id = "db.functions.unix-nanos.t005" +form = "db.functions.unix-nanos" kind = "error_parity" -target = "STRING, BINARY" -note = "tuple-difference-double with a STRING value where the page documents BINARY." +target = "STRING" +note = "unix-nanos with a STRING value where the page documents TIMESTAMP." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-difference-double.toml#t006_wrong_kind"] +cases = ["cases/translation/functions/unix-nanos.toml#t006_wrong_kind"] required = true [[obligation]] -id = "db.functions.tuple-difference-integer.t001" -form = "db.functions.tuple-difference-integer" +id = "db.functions.unix-seconds.t001" +form = "db.functions.unix-seconds" kind = "type_combination" -target = "BINARY, BINARY" -note = "tuple-difference-integer with arguments of type BINARY, BINARY." +target = "TIMESTAMP" +note = "unix-seconds with arguments of type TIMESTAMP." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-difference-integer.toml#t001_types_1"] +cases = ["cases/translation/functions/unix-seconds.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.tuple-difference-integer.t002" -form = "db.functions.tuple-difference-integer" -kind = "null_argument" -target = "BINARY, BINARY" -note = "tuple-difference-integer with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.unix-seconds.t002" +form = "db.functions.unix-seconds" +kind = "type_combination" +target = "TIMESTAMP_NTZ" +note = "unix-seconds with arguments of type TIMESTAMP_NTZ." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-difference-integer.toml#t002_null_1"] +cases = ["cases/translation/functions/unix-seconds.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.tuple-difference-integer.t003" -form = "db.functions.tuple-difference-integer" +id = "db.functions.unix-seconds.t003" +form = "db.functions.unix-seconds" kind = "null_argument" -target = "BINARY, BINARY" -note = "tuple-difference-integer with NULL as argument 2." +target = "TIMESTAMP" +note = "unix-seconds with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-difference-integer.toml#t003_null_2"] +cases = ["cases/translation/functions/unix-seconds.toml#t003_null_1"] required = true [[obligation]] -id = "db.functions.tuple-difference-integer.t004" -form = "db.functions.tuple-difference-integer" +id = "db.functions.unix-seconds.t004" +form = "db.functions.unix-seconds" kind = "error_parity" -target = "STRING, BINARY" -note = "tuple-difference-integer with a STRING value where the page documents BINARY." +target = "STRING" +note = "unix-seconds with a STRING value where the page documents TIMESTAMP." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-difference-integer.toml#t006_wrong_kind"] +cases = ["cases/translation/functions/unix-seconds.toml#t006_wrong_kind"] required = true [[obligation]] -id = "db.functions.tuple-difference-theta-double.t001" -form = "db.functions.tuple-difference-theta-double" +id = "db.functions.unix-timestamp.t001" +form = "db.functions.unix-timestamp" kind = "type_combination" -target = "BINARY, BINARY" -note = "tuple-difference-theta-double with arguments of type BINARY, BINARY." +target = "TIMESTAMP" +note = "unix_timestamp of timestamps after and just before 1970. Hand-written for the phase-2 recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-difference-theta-double.toml#t001_types_1"] +cases = ["cases/translation/functions/unix-timestamp.pt.hand.toml#p001"] required = true [[obligation]] -id = "db.functions.tuple-difference-theta-double.t002" -form = "db.functions.tuple-difference-theta-double" -kind = "null_argument" -target = "BINARY, BINARY" -note = "tuple-difference-theta-double with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.unix-timestamp.t002" +form = "db.functions.unix-timestamp" +kind = "type_combination" +target = "STRING" +note = "unix_timestamp of text with a pattern, and text it does not fit. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-difference-theta-double.toml#t002_null_1"] +cases = ["cases/translation/functions/unix-timestamp.ptf.hand.toml#p001"] required = true [[obligation]] -id = "db.functions.tuple-difference-theta-double.t003" -form = "db.functions.tuple-difference-theta-double" -kind = "null_argument" -target = "BINARY, BINARY" -note = "tuple-difference-theta-double with NULL as argument 2." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.unix-timestamp.t003" +form = "db.functions.unix-timestamp" +kind = "type_combination" +target = "STRING" +note = "unix_timestamp of text with a pattern, and text it does not fit. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-difference-theta-double.toml#t003_null_2"] +cases = ["cases/translation/functions/unix-timestamp.ptf.hand.toml#p002"] required = true [[obligation]] -id = "db.functions.tuple-difference-theta-double.t004" -form = "db.functions.tuple-difference-theta-double" -kind = "error_parity" -target = "STRING, BINARY" -note = "tuple-difference-theta-double with a STRING value where the page documents BINARY." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.upper.t001" +form = "db.functions.upper" +kind = "type_combination" +target = "STRING" +note = "upper of accented, Greek and Cyrillic small letters. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-difference-theta-double.toml#t006_wrong_kind"] +cases = ["cases/translation/functions/upper.p2.hand.toml#p001"] required = true [[obligation]] -id = "db.functions.tuple-difference-theta-integer.t001" -form = "db.functions.tuple-difference-theta-integer" +id = "db.functions.upper.t002" +form = "db.functions.upper" kind = "type_combination" -target = "BINARY, BINARY" -note = "tuple-difference-theta-integer with arguments of type BINARY, BINARY." +target = "STRING" +note = "upper with arguments of type STRING." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-difference-theta-integer.toml#t001_types_1"] +cases = ["cases/translation/functions/upper.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.tuple-difference-theta-integer.t002" -form = "db.functions.tuple-difference-theta-integer" +id = "db.functions.upper.t003" +form = "db.functions.upper" kind = "null_argument" -target = "BINARY, BINARY" -note = "tuple-difference-theta-integer with NULL as argument 1." +target = "STRING" +note = "upper with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-difference-theta-integer.toml#t002_null_1"] +cases = ["cases/translation/functions/upper.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.tuple-difference-theta-integer.t003" -form = "db.functions.tuple-difference-theta-integer" -kind = "null_argument" -target = "BINARY, BINARY" -note = "tuple-difference-theta-integer with NULL as argument 2." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.upper.t004" +form = "db.functions.upper" +kind = "error_parity" +target = "ARRAY" +note = "upper with a ARRAY value where the page documents STRING." +catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-difference-theta-integer.toml#t003_null_2"] +cases = ["cases/translation/functions/upper.toml#t005_wrong_kind"] required = true [[obligation]] -id = "db.functions.tuple-difference-theta-integer.t004" -form = "db.functions.tuple-difference-theta-integer" -kind = "error_parity" -target = "STRING, BINARY" -note = "tuple-difference-theta-integer with a STRING value where the page documents BINARY." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.url-decode.t001" +form = "db.functions.url-decode" +kind = "type_combination" +target = "STRING" +note = "url_decode of an invalid escape, a non-UTF-8 byte and a plus. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-difference-theta-integer.toml#t006_wrong_kind"] +cases = ["cases/translation/functions/url-decode.pb.hand.toml#p001"] required = true [[obligation]] -id = "db.functions.tuple-intersection-agg-double.t001" -form = "db.functions.tuple-intersection-agg-double" +id = "db.functions.url-decode.t002" +form = "db.functions.url-decode" kind = "type_combination" -target = "BINARY" -note = "tuple-intersection-agg-double with arguments of type BINARY." +target = "STRING" +note = "url_decode of an invalid escape, a non-UTF-8 byte and a plus. Hand-written for the phase-2 recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-intersection-agg-double.toml#t001_types_1"] +cases = ["cases/translation/functions/url-decode.pb.hand.toml#p002"] required = true [[obligation]] -id = "db.functions.tuple-intersection-agg-double.t002" -form = "db.functions.tuple-intersection-agg-double" +id = "db.functions.url-decode.t003" +form = "db.functions.url-decode" +kind = "type_combination" +target = "STRING" +note = "url_decode of an invalid escape, a non-UTF-8 byte and a plus. Hand-written for the phase-2 recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/url-decode.pb.hand.toml#p003"] +required = true + +[[obligation]] +id = "db.functions.url-decode.t004" +form = "db.functions.url-decode" +kind = "type_combination" +target = "STRING" +note = "url-decode with arguments of type STRING." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/url-decode.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.url-decode.t005" +form = "db.functions.url-decode" kind = "null_argument" -target = "BINARY" -note = "tuple-intersection-agg-double with NULL as argument 1." +target = "STRING" +note = "url-decode with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-intersection-agg-double.toml#t002_null_1"] +cases = ["cases/translation/functions/url-decode.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.tuple-intersection-agg-double.t003" -form = "db.functions.tuple-intersection-agg-double" +id = "db.functions.url-decode.t006" +form = "db.functions.url-decode" kind = "error_parity" -target = "STRING" -note = "tuple-intersection-agg-double with a STRING value where the page documents BINARY." +target = "ARRAY" +note = "url-decode with a ARRAY value where the page documents STRING." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-intersection-agg-double.toml#t004_wrong_kind"] +cases = ["cases/translation/functions/url-decode.toml#t005_wrong_kind"] required = true [[obligation]] -id = "db.functions.tuple-intersection-agg-integer.t001" -form = "db.functions.tuple-intersection-agg-integer" +id = "db.functions.url-encode.t001" +form = "db.functions.url-encode" kind = "type_combination" -target = "BINARY" -note = "tuple-intersection-agg-integer with arguments of type BINARY." +target = "STRING" +note = "url_encode of ~ and *. Hand-written for the phase-2 recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-intersection-agg-integer.toml#t001_types_1"] +cases = ["cases/translation/functions/url-encode.pb.hand.toml#p001"] required = true [[obligation]] -id = "db.functions.tuple-intersection-agg-integer.t002" -form = "db.functions.tuple-intersection-agg-integer" +id = "db.functions.url-encode.t002" +form = "db.functions.url-encode" +kind = "type_combination" +target = "STRING" +note = "url-encode with arguments of type STRING." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/url-encode.toml#t001_types_1"] +required = true + +[[obligation]] +id = "db.functions.url-encode.t003" +form = "db.functions.url-encode" kind = "null_argument" -target = "BINARY" -note = "tuple-intersection-agg-integer with NULL as argument 1." +target = "STRING" +note = "url-encode with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-intersection-agg-integer.toml#t002_null_1"] +cases = ["cases/translation/functions/url-encode.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.tuple-intersection-agg-integer.t003" -form = "db.functions.tuple-intersection-agg-integer" +id = "db.functions.url-encode.t004" +form = "db.functions.url-encode" kind = "error_parity" -target = "STRING" -note = "tuple-intersection-agg-integer with a STRING value where the page documents BINARY." +target = "ARRAY" +note = "url-encode with a ARRAY value where the page documents STRING." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-intersection-agg-integer.toml#t004_wrong_kind"] +cases = ["cases/translation/functions/url-encode.toml#t005_wrong_kind"] required = true [[obligation]] -id = "db.functions.tuple-intersection-double.t001" -form = "db.functions.tuple-intersection-double" +id = "db.functions.validate-utf8.t001" +form = "db.functions.validate-utf8" kind = "type_combination" -target = "BINARY, BINARY" -note = "tuple-intersection-double with arguments of type BINARY, BINARY." +target = "STRING" +note = "validate-utf8 with arguments of type STRING." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-intersection-double.toml#t001_types_1"] +cases = ["cases/translation/functions/validate-utf8.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.tuple-intersection-double.t002" -form = "db.functions.tuple-intersection-double" +id = "db.functions.validate-utf8.t002" +form = "db.functions.validate-utf8" kind = "null_argument" -target = "BINARY, BINARY" -note = "tuple-intersection-double with NULL as argument 1." +target = "STRING" +note = "validate-utf8 with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-intersection-double.toml#t002_null_1"] +cases = ["cases/translation/functions/validate-utf8.toml#t002_null_1"] required = true [[obligation]] -id = "db.functions.tuple-intersection-double.t003" -form = "db.functions.tuple-intersection-double" -kind = "null_argument" -target = "BINARY, BINARY" -note = "tuple-intersection-double with NULL as argument 2." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.validate-utf8.t003" +form = "db.functions.validate-utf8" +kind = "error_parity" +target = "ARRAY" +note = "validate-utf8 with a ARRAY value where the page documents STRING." +catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-intersection-double.toml#t003_null_2"] +cases = ["cases/translation/functions/validate-utf8.toml#t005_wrong_kind"] required = true [[obligation]] -id = "db.functions.tuple-intersection-double.t004" -form = "db.functions.tuple-intersection-double" -kind = "error_parity" -target = "STRING, BINARY" -note = "tuple-intersection-double with a STRING value where the page documents BINARY." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.var-pop.t001" +form = "db.functions.var-pop" +kind = "type_combination" +target = "INT" +note = "var_pop of the same three INT values in one of their six orders, whose streaming update rounds apart. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-intersection-double.toml#t006_wrong_kind"] +cases = ["cases/translation/functions/var-pop.orders.pm.hand.toml#p001"] required = true [[obligation]] -id = "db.functions.tuple-intersection-integer.t001" -form = "db.functions.tuple-intersection-integer" +id = "db.functions.var-pop.t002" +form = "db.functions.var-pop" kind = "type_combination" -target = "BINARY, BINARY" -note = "tuple-intersection-integer with arguments of type BINARY, BINARY." +target = "INT" +note = "var_pop of the same three INT values in one of their six orders, whose streaming update rounds apart. Hand-written for the row-order recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-intersection-integer.toml#t001_types_1"] +cases = ["cases/translation/functions/var-pop.orders.pm.hand.toml#p002"] required = true [[obligation]] -id = "db.functions.tuple-intersection-integer.t002" -form = "db.functions.tuple-intersection-integer" -kind = "null_argument" -target = "BINARY, BINARY" -note = "tuple-intersection-integer with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-pop.t003" +form = "db.functions.var-pop" +kind = "type_combination" +target = "INT" +note = "var_pop of the same three INT values in one of their six orders, whose streaming update rounds apart. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-intersection-integer.toml#t002_null_1"] +cases = ["cases/translation/functions/var-pop.orders.pm.hand.toml#p003"] required = true [[obligation]] -id = "db.functions.tuple-intersection-integer.t003" -form = "db.functions.tuple-intersection-integer" -kind = "null_argument" -target = "BINARY, BINARY" -note = "tuple-intersection-integer with NULL as argument 2." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-pop.t004" +form = "db.functions.var-pop" +kind = "type_combination" +target = "INT" +note = "var_pop of the same three INT values in one of their six orders, whose streaming update rounds apart. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-intersection-integer.toml#t003_null_2"] +cases = ["cases/translation/functions/var-pop.orders.pm.hand.toml#p004"] required = true [[obligation]] -id = "db.functions.tuple-intersection-integer.t004" -form = "db.functions.tuple-intersection-integer" -kind = "error_parity" -target = "STRING, BINARY" -note = "tuple-intersection-integer with a STRING value where the page documents BINARY." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.var-pop.t005" +form = "db.functions.var-pop" +kind = "type_combination" +target = "INT" +note = "var_pop of the same three INT values in one of their six orders, whose streaming update rounds apart. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-intersection-integer.toml#t006_wrong_kind"] +cases = ["cases/translation/functions/var-pop.orders.pm.hand.toml#p005"] required = true [[obligation]] -id = "db.functions.tuple-intersection-theta-double.t001" -form = "db.functions.tuple-intersection-theta-double" +id = "db.functions.var-pop.t006" +form = "db.functions.var-pop" kind = "type_combination" -target = "BINARY, BINARY" -note = "tuple-intersection-theta-double with arguments of type BINARY, BINARY." +target = "INT" +note = "var_pop of the same three INT values in one of their six orders, whose streaming update rounds apart. Hand-written for the row-order recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-intersection-theta-double.toml#t001_types_1"] +cases = ["cases/translation/functions/var-pop.orders.pm.hand.toml#p006"] required = true [[obligation]] -id = "db.functions.tuple-intersection-theta-double.t002" -form = "db.functions.tuple-intersection-theta-double" -kind = "null_argument" -target = "BINARY, BINARY" -note = "tuple-intersection-theta-double with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-pop.t007" +form = "db.functions.var-pop" +kind = "type_combination" +target = "DOUBLE" +note = "var_pop of three DOUBLE values sharing a large mean and spread under 1, in one of their six orders. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-intersection-theta-double.toml#t002_null_1"] +cases = ["cases/translation/functions/var-pop.orders.pm.hand.toml#p007"] required = true [[obligation]] -id = "db.functions.tuple-intersection-theta-double.t003" -form = "db.functions.tuple-intersection-theta-double" -kind = "null_argument" -target = "BINARY, BINARY" -note = "tuple-intersection-theta-double with NULL as argument 2." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-pop.t008" +form = "db.functions.var-pop" +kind = "type_combination" +target = "DOUBLE" +note = "var_pop of three DOUBLE values sharing a large mean and spread under 1, in one of their six orders. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-intersection-theta-double.toml#t003_null_2"] +cases = ["cases/translation/functions/var-pop.orders.pm.hand.toml#p008"] required = true [[obligation]] -id = "db.functions.tuple-intersection-theta-double.t004" -form = "db.functions.tuple-intersection-theta-double" -kind = "error_parity" -target = "STRING, BINARY" -note = "tuple-intersection-theta-double with a STRING value where the page documents BINARY." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.var-pop.t009" +form = "db.functions.var-pop" +kind = "type_combination" +target = "DOUBLE" +note = "var_pop of three DOUBLE values sharing a large mean and spread under 1, in one of their six orders. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-intersection-theta-double.toml#t006_wrong_kind"] +cases = ["cases/translation/functions/var-pop.orders.pm.hand.toml#p009"] required = true [[obligation]] -id = "db.functions.tuple-intersection-theta-integer.t001" -form = "db.functions.tuple-intersection-theta-integer" +id = "db.functions.var-pop.t010" +form = "db.functions.var-pop" kind = "type_combination" -target = "BINARY, BINARY" -note = "tuple-intersection-theta-integer with arguments of type BINARY, BINARY." +target = "DOUBLE" +note = "var_pop of three DOUBLE values sharing a large mean and spread under 1, in one of their six orders. Hand-written for the row-order recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-intersection-theta-integer.toml#t001_types_1"] +cases = ["cases/translation/functions/var-pop.orders.pm.hand.toml#p010"] required = true [[obligation]] -id = "db.functions.tuple-intersection-theta-integer.t002" -form = "db.functions.tuple-intersection-theta-integer" -kind = "null_argument" -target = "BINARY, BINARY" -note = "tuple-intersection-theta-integer with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-pop.t011" +form = "db.functions.var-pop" +kind = "type_combination" +target = "DOUBLE" +note = "var_pop of three DOUBLE values sharing a large mean and spread under 1, in one of their six orders. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-intersection-theta-integer.toml#t002_null_1"] +cases = ["cases/translation/functions/var-pop.orders.pm.hand.toml#p011"] required = true [[obligation]] -id = "db.functions.tuple-intersection-theta-integer.t003" -form = "db.functions.tuple-intersection-theta-integer" -kind = "null_argument" -target = "BINARY, BINARY" -note = "tuple-intersection-theta-integer with NULL as argument 2." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-pop.t012" +form = "db.functions.var-pop" +kind = "type_combination" +target = "DOUBLE" +note = "var_pop of three DOUBLE values sharing a large mean and spread under 1, in one of their six orders. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-intersection-theta-integer.toml#t003_null_2"] +cases = ["cases/translation/functions/var-pop.orders.pm.hand.toml#p012"] required = true [[obligation]] -id = "db.functions.tuple-intersection-theta-integer.t004" -form = "db.functions.tuple-intersection-theta-integer" -kind = "error_parity" -target = "STRING, BINARY" -note = "tuple-intersection-theta-integer with a STRING value where the page documents BINARY." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.var-pop.t013" +form = "db.functions.var-pop" +kind = "type_combination" +target = "DOUBLE" +note = "var_pop of four DOUBLE values sharing a large mean, in one order per distinct streaming result. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-intersection-theta-integer.toml#t006_wrong_kind"] +cases = ["cases/translation/functions/var-pop.orders.pm.hand.toml#p013"] required = true [[obligation]] -id = "db.functions.tuple-sketch-agg-double.t001" -form = "db.functions.tuple-sketch-agg-double" +id = "db.functions.var-pop.t014" +form = "db.functions.var-pop" kind = "type_combination" -target = "INT, DOUBLE" -note = "tuple-sketch-agg-double with arguments of type INT, DOUBLE." +target = "DOUBLE" +note = "var_pop of four DOUBLE values sharing a large mean, in one order per distinct streaming result. Hand-written for the row-order recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-sketch-agg-double.toml#t001_types_1"] +cases = ["cases/translation/functions/var-pop.orders.pm.hand.toml#p014"] required = true [[obligation]] -id = "db.functions.tuple-sketch-agg-double.t002" -form = "db.functions.tuple-sketch-agg-double" +id = "db.functions.var-pop.t015" +form = "db.functions.var-pop" kind = "type_combination" -target = "BIGINT, DOUBLE" -note = "tuple-sketch-agg-double with arguments of type BIGINT, DOUBLE." +target = "DOUBLE" +note = "var_pop of four DOUBLE values sharing a large mean, in one order per distinct streaming result. Hand-written for the row-order recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-sketch-agg-double.toml#t002_types_2"] +cases = ["cases/translation/functions/var-pop.orders.pm.hand.toml#p015"] required = true [[obligation]] -id = "db.functions.tuple-sketch-agg-double.t003" -form = "db.functions.tuple-sketch-agg-double" +id = "db.functions.var-pop.t016" +form = "db.functions.var-pop" kind = "type_combination" -target = "FLOAT, DOUBLE" -note = "tuple-sketch-agg-double with arguments of type FLOAT, DOUBLE." +target = "DOUBLE" +note = "var_pop of four DOUBLE values sharing a large mean, in one order per distinct streaming result. Hand-written for the row-order recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-sketch-agg-double.toml#t003_types_3"] +cases = ["cases/translation/functions/var-pop.orders.pm.hand.toml#p016"] required = true [[obligation]] -id = "db.functions.tuple-sketch-agg-double.t004" -form = "db.functions.tuple-sketch-agg-double" +id = "db.functions.var-pop.t017" +form = "db.functions.var-pop" kind = "type_combination" -target = "DOUBLE, DOUBLE" -note = "tuple-sketch-agg-double with arguments of type DOUBLE, DOUBLE." +target = "INT" +note = "var-pop with arguments of type INT." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-sketch-agg-double.toml#t004_types_4"] +cases = ["cases/translation/functions/var-pop.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.tuple-sketch-agg-double.t005" -form = "db.functions.tuple-sketch-agg-double" -kind = "null_argument" -target = "INT, DOUBLE" -note = "tuple-sketch-agg-double with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-pop.t018" +form = "db.functions.var-pop" +kind = "type_combination" +target = "DECIMAL(10,2)" +note = "var-pop with arguments of type DECIMAL(10,2)." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-sketch-agg-double.toml#t005_null_1"] +cases = ["cases/translation/functions/var-pop.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.tuple-sketch-agg-double.t006" -form = "db.functions.tuple-sketch-agg-double" +id = "db.functions.var-pop.t019" +form = "db.functions.var-pop" +kind = "type_combination" +target = "DOUBLE" +note = "var-pop with arguments of type DOUBLE." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/var-pop.toml#t003_types_3"] +required = true + +[[obligation]] +id = "db.functions.var-pop.t020" +form = "db.functions.var-pop" kind = "null_argument" -target = "INT, DOUBLE" -note = "tuple-sketch-agg-double with NULL as argument 2." +target = "INT" +note = "var-pop with NULL as argument 1." catches = "a NULL argument returning a value, or raising where Databricks returns NULL" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-sketch-agg-double.toml#t006_null_2"] +cases = ["cases/translation/functions/var-pop.toml#t004_null_1"] required = true [[obligation]] -id = "db.functions.tuple-sketch-agg-double.t007" -form = "db.functions.tuple-sketch-agg-double" +id = "db.functions.var-pop.t021" +form = "db.functions.var-pop" kind = "error_parity" -target = "STRING, DOUBLE" -note = "tuple-sketch-agg-double with a STRING value where the page documents INT." +target = "STRING" +note = "var-pop with a STRING value where the page documents INT." catches = "a value returned where Databricks rejects the arguments, or another error kind" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-sketch-agg-double.toml#t011_wrong_kind"] +cases = ["cases/translation/functions/var-pop.toml#t007_wrong_kind"] required = true [[obligation]] -id = "db.functions.tuple-sketch-agg-integer.t001" -form = "db.functions.tuple-sketch-agg-integer" +id = "db.functions.var-samp.t001" +form = "db.functions.var-samp" kind = "type_combination" -target = "INT, INT" -note = "tuple-sketch-agg-integer with arguments of type INT, INT." +target = "INT" +note = "var_samp of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-sketch-agg-integer.toml#t001_types_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p001"] required = true [[obligation]] -id = "db.functions.tuple-sketch-agg-integer.t002" -form = "db.functions.tuple-sketch-agg-integer" +id = "db.functions.var-samp.t002" +form = "db.functions.var-samp" kind = "type_combination" -target = "BIGINT, INT" -note = "tuple-sketch-agg-integer with arguments of type BIGINT, INT." +target = "INT" +note = "var_samp of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-sketch-agg-integer.toml#t002_types_2"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p002"] required = true [[obligation]] -id = "db.functions.tuple-sketch-agg-integer.t003" -form = "db.functions.tuple-sketch-agg-integer" +id = "db.functions.var-samp.t003" +form = "db.functions.var-samp" kind = "type_combination" -target = "FLOAT, INT" -note = "tuple-sketch-agg-integer with arguments of type FLOAT, INT." +target = "INT" +note = "var_samp of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-sketch-agg-integer.toml#t003_types_3"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p003"] required = true [[obligation]] -id = "db.functions.tuple-sketch-agg-integer.t004" -form = "db.functions.tuple-sketch-agg-integer" +id = "db.functions.var-samp.t004" +form = "db.functions.var-samp" kind = "type_combination" -target = "DOUBLE, INT" -note = "tuple-sketch-agg-integer with arguments of type DOUBLE, INT." +target = "INT" +note = "var_samp of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-sketch-agg-integer.toml#t004_types_4"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p004"] required = true [[obligation]] -id = "db.functions.tuple-sketch-agg-integer.t005" -form = "db.functions.tuple-sketch-agg-integer" -kind = "null_argument" -target = "INT, INT" -note = "tuple-sketch-agg-integer with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-samp.t005" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of three small INT values, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-sketch-agg-integer.toml#t005_null_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p005"] required = true [[obligation]] -id = "db.functions.tuple-sketch-agg-integer.t006" -form = "db.functions.tuple-sketch-agg-integer" -kind = "null_argument" -target = "INT, INT" -note = "tuple-sketch-agg-integer with NULL as argument 2." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-samp.t006" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of three small INT values, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-sketch-agg-integer.toml#t006_null_2"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p006"] required = true [[obligation]] -id = "db.functions.tuple-sketch-agg-integer.t007" -form = "db.functions.tuple-sketch-agg-integer" -kind = "error_parity" -target = "STRING, INT" -note = "tuple-sketch-agg-integer with a STRING value where the page documents INT." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.var-samp.t007" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of three small INT values, repartitioned by REPARTITION(2). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-sketch-agg-integer.toml#t011_wrong_kind"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p007"] required = true [[obligation]] -id = "db.functions.tuple-sketch-estimate-double.t001" -form = "db.functions.tuple-sketch-estimate-double" +id = "db.functions.var-samp.t008" +form = "db.functions.var-samp" kind = "type_combination" -target = "BINARY" -note = "tuple-sketch-estimate-double with arguments of type BINARY." +target = "INT" +note = "var_samp of three small INT values, repartitioned by REPARTITION(3). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-sketch-estimate-double.toml#t001_types_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p008"] required = true [[obligation]] -id = "db.functions.tuple-sketch-estimate-double.t002" -form = "db.functions.tuple-sketch-estimate-double" -kind = "null_argument" -target = "BINARY" -note = "tuple-sketch-estimate-double with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-samp.t009" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of three small INT values, repartitioned by REPARTITION(3, x1). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-sketch-estimate-double.toml#t002_null_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p009"] required = true [[obligation]] -id = "db.functions.tuple-sketch-estimate-double.t003" -form = "db.functions.tuple-sketch-estimate-double" -kind = "error_parity" -target = "STRING" -note = "tuple-sketch-estimate-double with a STRING value where the page documents BINARY." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.var-samp.t010" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of three small INT values, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-sketch-estimate-double.toml#t004_wrong_kind"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p010"] required = true [[obligation]] -id = "db.functions.tuple-sketch-estimate-integer.t001" -form = "db.functions.tuple-sketch-estimate-integer" +id = "db.functions.var-samp.t011" +form = "db.functions.var-samp" kind = "type_combination" -target = "BINARY" -note = "tuple-sketch-estimate-integer with arguments of type BINARY." +target = "INT" +note = "var_samp of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-sketch-estimate-integer.toml#t001_types_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p011"] required = true [[obligation]] -id = "db.functions.tuple-sketch-estimate-integer.t002" -form = "db.functions.tuple-sketch-estimate-integer" -kind = "null_argument" -target = "BINARY" -note = "tuple-sketch-estimate-integer with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-samp.t012" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of three small INT values, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-sketch-estimate-integer.toml#t002_null_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p012"] required = true [[obligation]] -id = "db.functions.tuple-sketch-estimate-integer.t003" -form = "db.functions.tuple-sketch-estimate-integer" -kind = "error_parity" -target = "STRING" -note = "tuple-sketch-estimate-integer with a STRING value where the page documents BINARY." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.var-samp.t013" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of three small INT values, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-sketch-estimate-integer.toml#t004_wrong_kind"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p013"] required = true [[obligation]] -id = "db.functions.tuple-sketch-summary-double.t001" -form = "db.functions.tuple-sketch-summary-double" +id = "db.functions.var-samp.t014" +form = "db.functions.var-samp" kind = "type_combination" -target = "BINARY" -note = "tuple-sketch-summary-double with arguments of type BINARY." +target = "INT" +note = "var_samp of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-sketch-summary-double.toml#t001_types_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p014"] required = true [[obligation]] -id = "db.functions.tuple-sketch-summary-double.t002" -form = "db.functions.tuple-sketch-summary-double" -kind = "null_argument" -target = "BINARY" -note = "tuple-sketch-summary-double with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-samp.t015" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of three small INT values, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-sketch-summary-double.toml#t002_null_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p015"] required = true [[obligation]] -id = "db.functions.tuple-sketch-summary-double.t003" -form = "db.functions.tuple-sketch-summary-double" -kind = "error_parity" -target = "STRING" -note = "tuple-sketch-summary-double with a STRING value where the page documents BINARY." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.var-samp.t016" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of three small INT values, repartitioned by REPARTITION(2). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-sketch-summary-double.toml#t004_wrong_kind"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p016"] required = true [[obligation]] -id = "db.functions.tuple-sketch-summary-integer.t001" -form = "db.functions.tuple-sketch-summary-integer" +id = "db.functions.var-samp.t017" +form = "db.functions.var-samp" kind = "type_combination" -target = "BINARY" -note = "tuple-sketch-summary-integer with arguments of type BINARY." +target = "INT" +note = "var_samp of three small INT values, repartitioned by REPARTITION(3). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-sketch-summary-integer.toml#t001_types_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p017"] required = true [[obligation]] -id = "db.functions.tuple-sketch-summary-integer.t002" -form = "db.functions.tuple-sketch-summary-integer" -kind = "null_argument" -target = "BINARY" -note = "tuple-sketch-summary-integer with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-samp.t018" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of three small INT values, repartitioned by REPARTITION(3, x1). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-sketch-summary-integer.toml#t002_null_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p018"] required = true [[obligation]] -id = "db.functions.tuple-sketch-summary-integer.t003" -form = "db.functions.tuple-sketch-summary-integer" -kind = "error_parity" -target = "STRING" -note = "tuple-sketch-summary-integer with a STRING value where the page documents BINARY." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.var-samp.t019" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of three small INT values, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-sketch-summary-integer.toml#t004_wrong_kind"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p019"] required = true [[obligation]] -id = "db.functions.tuple-sketch-theta-double.t001" -form = "db.functions.tuple-sketch-theta-double" +id = "db.functions.var-samp.t020" +form = "db.functions.var-samp" kind = "type_combination" -target = "BINARY" -note = "tuple-sketch-theta-double with arguments of type BINARY." +target = "INT" +note = "var_samp of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-sketch-theta-double.toml#t001_types_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p020"] required = true [[obligation]] -id = "db.functions.tuple-sketch-theta-double.t002" -form = "db.functions.tuple-sketch-theta-double" -kind = "null_argument" -target = "BINARY" -note = "tuple-sketch-theta-double with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-samp.t021" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of three small INT values, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-sketch-theta-double.toml#t002_null_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p021"] required = true [[obligation]] -id = "db.functions.tuple-sketch-theta-double.t003" -form = "db.functions.tuple-sketch-theta-double" -kind = "error_parity" -target = "STRING" -note = "tuple-sketch-theta-double with a STRING value where the page documents BINARY." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.var-samp.t022" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of three small INT values, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-sketch-theta-double.toml#t004_wrong_kind"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p022"] required = true [[obligation]] -id = "db.functions.tuple-sketch-theta-integer.t001" -form = "db.functions.tuple-sketch-theta-integer" +id = "db.functions.var-samp.t023" +form = "db.functions.var-samp" kind = "type_combination" -target = "BINARY" -note = "tuple-sketch-theta-integer with arguments of type BINARY." +target = "INT" +note = "var_samp of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-sketch-theta-integer.toml#t001_types_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p023"] required = true [[obligation]] -id = "db.functions.tuple-sketch-theta-integer.t002" -form = "db.functions.tuple-sketch-theta-integer" -kind = "null_argument" -target = "BINARY" -note = "tuple-sketch-theta-integer with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-samp.t024" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of three small INT values, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-sketch-theta-integer.toml#t002_null_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p024"] required = true [[obligation]] -id = "db.functions.tuple-sketch-theta-integer.t003" -form = "db.functions.tuple-sketch-theta-integer" -kind = "error_parity" -target = "STRING" -note = "tuple-sketch-theta-integer with a STRING value where the page documents BINARY." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.var-samp.t025" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of three small INT values, repartitioned by REPARTITION(2). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-sketch-theta-integer.toml#t004_wrong_kind"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p025"] required = true [[obligation]] -id = "db.functions.tuple-union-agg-double.t001" -form = "db.functions.tuple-union-agg-double" +id = "db.functions.var-samp.t026" +form = "db.functions.var-samp" kind = "type_combination" -target = "BINARY" -note = "tuple-union-agg-double with arguments of type BINARY." +target = "INT" +note = "var_samp of three small INT values, repartitioned by REPARTITION(3). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-union-agg-double.toml#t001_types_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p026"] required = true [[obligation]] -id = "db.functions.tuple-union-agg-double.t002" -form = "db.functions.tuple-union-agg-double" -kind = "null_argument" -target = "BINARY" -note = "tuple-union-agg-double with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-samp.t027" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of three small INT values, repartitioned by REPARTITION(3, x1). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-union-agg-double.toml#t002_null_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p027"] required = true [[obligation]] -id = "db.functions.tuple-union-agg-double.t003" -form = "db.functions.tuple-union-agg-double" -kind = "error_parity" -target = "STRING" -note = "tuple-union-agg-double with a STRING value where the page documents BINARY." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.var-samp.t028" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of three small INT values, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-union-agg-double.toml#t004_wrong_kind"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p028"] required = true [[obligation]] -id = "db.functions.tuple-union-agg-integer.t001" -form = "db.functions.tuple-union-agg-integer" +id = "db.functions.var-samp.t029" +form = "db.functions.var-samp" kind = "type_combination" -target = "BINARY" -note = "tuple-union-agg-integer with arguments of type BINARY." +target = "INT" +note = "var_samp of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-union-agg-integer.toml#t001_types_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p029"] required = true [[obligation]] -id = "db.functions.tuple-union-agg-integer.t002" -form = "db.functions.tuple-union-agg-integer" -kind = "null_argument" -target = "BINARY" -note = "tuple-union-agg-integer with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-samp.t030" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of three small INT values, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-union-agg-integer.toml#t002_null_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p030"] required = true [[obligation]] -id = "db.functions.tuple-union-agg-integer.t003" -form = "db.functions.tuple-union-agg-integer" -kind = "error_parity" -target = "STRING" -note = "tuple-union-agg-integer with a STRING value where the page documents BINARY." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.var-samp.t031" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of three small INT values, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-union-agg-integer.toml#t004_wrong_kind"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p031"] required = true [[obligation]] -id = "db.functions.tuple-union-double.t001" -form = "db.functions.tuple-union-double" +id = "db.functions.var-samp.t032" +form = "db.functions.var-samp" kind = "type_combination" -target = "BINARY, BINARY" -note = "tuple-union-double with arguments of type BINARY, BINARY." +target = "INT" +note = "var_samp of three small INT values, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-union-double.toml#t001_types_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p032"] required = true [[obligation]] -id = "db.functions.tuple-union-double.t002" -form = "db.functions.tuple-union-double" -kind = "null_argument" -target = "BINARY, BINARY" -note = "tuple-union-double with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-samp.t033" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of three small INT values, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-union-double.toml#t002_null_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p033"] required = true [[obligation]] -id = "db.functions.tuple-union-double.t003" -form = "db.functions.tuple-union-double" -kind = "null_argument" -target = "BINARY, BINARY" -note = "tuple-union-double with NULL as argument 2." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-samp.t034" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of three small INT values, repartitioned by REPARTITION(2). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-union-double.toml#t003_null_2"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p034"] required = true [[obligation]] -id = "db.functions.tuple-union-double.t004" -form = "db.functions.tuple-union-double" -kind = "error_parity" -target = "STRING, BINARY" -note = "tuple-union-double with a STRING value where the page documents BINARY." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.var-samp.t035" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of three small INT values, repartitioned by REPARTITION(3). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-union-double.toml#t006_wrong_kind"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p035"] required = true [[obligation]] -id = "db.functions.tuple-union-integer.t001" -form = "db.functions.tuple-union-integer" +id = "db.functions.var-samp.t036" +form = "db.functions.var-samp" kind = "type_combination" -target = "BINARY, BINARY" -note = "tuple-union-integer with arguments of type BINARY, BINARY." +target = "INT" +note = "var_samp of three small INT values, repartitioned by REPARTITION(3, x1). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-union-integer.toml#t001_types_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p036"] required = true [[obligation]] -id = "db.functions.tuple-union-integer.t002" -form = "db.functions.tuple-union-integer" -kind = "null_argument" -target = "BINARY, BINARY" -note = "tuple-union-integer with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-samp.t037" +form = "db.functions.var-samp" +kind = "type_combination" +target = "DOUBLE" +note = "var_samp of eight DOUBLE values mixing 2^53 and 1e16 with small ones, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-union-integer.toml#t002_null_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p037"] required = true [[obligation]] -id = "db.functions.tuple-union-integer.t003" -form = "db.functions.tuple-union-integer" -kind = "null_argument" -target = "BINARY, BINARY" -note = "tuple-union-integer with NULL as argument 2." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-samp.t038" +form = "db.functions.var-samp" +kind = "type_combination" +target = "DOUBLE" +note = "var_samp of eight DOUBLE values mixing 2^53 and 1e16 with small ones, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-union-integer.toml#t003_null_2"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p038"] required = true [[obligation]] -id = "db.functions.tuple-union-integer.t004" -form = "db.functions.tuple-union-integer" -kind = "error_parity" -target = "STRING, BINARY" -note = "tuple-union-integer with a STRING value where the page documents BINARY." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.var-samp.t039" +form = "db.functions.var-samp" +kind = "type_combination" +target = "DOUBLE" +note = "var_samp of eight DOUBLE values mixing 2^53 and 1e16 with small ones, repartitioned by REPARTITION(2). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-union-integer.toml#t006_wrong_kind"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p039"] required = true [[obligation]] -id = "db.functions.tuple-union-theta-double.t001" -form = "db.functions.tuple-union-theta-double" +id = "db.functions.var-samp.t040" +form = "db.functions.var-samp" kind = "type_combination" -target = "BINARY, BINARY" -note = "tuple-union-theta-double with arguments of type BINARY, BINARY." +target = "DOUBLE" +note = "var_samp of eight DOUBLE values mixing 2^53 and 1e16 with small ones, repartitioned by REPARTITION(3). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-union-theta-double.toml#t001_types_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p040"] required = true [[obligation]] -id = "db.functions.tuple-union-theta-double.t002" -form = "db.functions.tuple-union-theta-double" -kind = "null_argument" -target = "BINARY, BINARY" -note = "tuple-union-theta-double with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-samp.t041" +form = "db.functions.var-samp" +kind = "type_combination" +target = "DOUBLE" +note = "var_samp of eight DOUBLE values mixing 2^53 and 1e16 with small ones, repartitioned by REPARTITION(3, x1). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-union-theta-double.toml#t002_null_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p041"] required = true [[obligation]] -id = "db.functions.tuple-union-theta-double.t003" -form = "db.functions.tuple-union-theta-double" -kind = "null_argument" -target = "BINARY, BINARY" -note = "tuple-union-theta-double with NULL as argument 2." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-samp.t042" +form = "db.functions.var-samp" +kind = "type_combination" +target = "DOUBLE" +note = "var_samp of eight DOUBLE values mixing 2^53 and 1e16 with small ones, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-union-theta-double.toml#t003_null_2"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p042"] required = true [[obligation]] -id = "db.functions.tuple-union-theta-double.t004" -form = "db.functions.tuple-union-theta-double" -kind = "error_parity" -target = "STRING, BINARY" -note = "tuple-union-theta-double with a STRING value where the page documents BINARY." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.var-samp.t043" +form = "db.functions.var-samp" +kind = "type_combination" +target = "DOUBLE" +note = "var_samp of eight DOUBLE values mixing 2^53 and 1e16 with small ones, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-union-theta-double.toml#t006_wrong_kind"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p043"] required = true [[obligation]] -id = "db.functions.tuple-union-theta-integer.t001" -form = "db.functions.tuple-union-theta-integer" +id = "db.functions.var-samp.t044" +form = "db.functions.var-samp" kind = "type_combination" -target = "BINARY, BINARY" -note = "tuple-union-theta-integer with arguments of type BINARY, BINARY." +target = "DOUBLE" +note = "var_samp of eight DOUBLE values mixing 2^53 and 1e16 with small ones, repartitioned by REPARTITION(2). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-union-theta-integer.toml#t001_types_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p044"] required = true [[obligation]] -id = "db.functions.tuple-union-theta-integer.t002" -form = "db.functions.tuple-union-theta-integer" -kind = "null_argument" -target = "BINARY, BINARY" -note = "tuple-union-theta-integer with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-samp.t045" +form = "db.functions.var-samp" +kind = "type_combination" +target = "DOUBLE" +note = "var_samp of eight DOUBLE values mixing 2^53 and 1e16 with small ones, repartitioned by REPARTITION(3). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-union-theta-integer.toml#t002_null_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p045"] required = true [[obligation]] -id = "db.functions.tuple-union-theta-integer.t003" -form = "db.functions.tuple-union-theta-integer" -kind = "null_argument" -target = "BINARY, BINARY" -note = "tuple-union-theta-integer with NULL as argument 2." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-samp.t046" +form = "db.functions.var-samp" +kind = "type_combination" +target = "DOUBLE" +note = "var_samp of eight DOUBLE values mixing 2^53 and 1e16 with small ones, repartitioned by REPARTITION(3, x1). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-union-theta-integer.toml#t003_null_2"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p046"] required = true [[obligation]] -id = "db.functions.tuple-union-theta-integer.t004" -form = "db.functions.tuple-union-theta-integer" -kind = "error_parity" -target = "STRING, BINARY" -note = "tuple-union-theta-integer with a STRING value where the page documents BINARY." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.var-samp.t047" +form = "db.functions.var-samp" +kind = "type_combination" +target = "DOUBLE" +note = "var_samp of eight DOUBLE values mixing 2^53 and 1e16 with small ones, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/tuple-union-theta-integer.toml#t006_wrong_kind"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p047"] required = true [[obligation]] -id = "db.functions.typeof.t001" -form = "db.functions.typeof" +id = "db.functions.var-samp.t048" +form = "db.functions.var-samp" kind = "type_combination" -target = "INT" -note = "typeof with arguments of type INT." +target = "DOUBLE" +note = "var_samp of eight DOUBLE values mixing 2^53 and 1e16 with small ones, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/typeof.toml#t001_types_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p048"] required = true [[obligation]] -id = "db.functions.typeof.t002" -form = "db.functions.typeof" +id = "db.functions.var-samp.t049" +form = "db.functions.var-samp" kind = "type_combination" -target = "STRING" -note = "typeof with arguments of type STRING." +target = "DOUBLE" +note = "var_samp of eight DOUBLE values mixing 2^53 and 1e16 with small ones, repartitioned by REPARTITION(2). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/typeof.toml#t002_types_2"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p049"] required = true [[obligation]] -id = "db.functions.typeof.t003" -form = "db.functions.typeof" -kind = "null_argument" -target = "INT" -note = "typeof with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-samp.t050" +form = "db.functions.var-samp" +kind = "type_combination" +target = "DOUBLE" +note = "var_samp of eight DOUBLE values mixing 2^53 and 1e16 with small ones, repartitioned by REPARTITION(3). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/typeof.toml#t003_null_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p050"] required = true [[obligation]] -id = "db.functions.typeof.t004" -form = "db.functions.typeof" -kind = "error_parity" -target = "STRING" -note = "typeof with a STRING value where the page documents INT." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.var-samp.t051" +form = "db.functions.var-samp" +kind = "type_combination" +target = "DOUBLE" +note = "var_samp of eight DOUBLE values mixing 2^53 and 1e16 with small ones, repartitioned by REPARTITION(3, x1). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/typeof.toml#t006_wrong_kind"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p051"] required = true [[obligation]] -id = "db.functions.ucase.t001" -form = "db.functions.ucase" +id = "db.functions.var-samp.t052" +form = "db.functions.var-samp" kind = "type_combination" -target = "STRING" -note = "ucase with arguments of type STRING." +target = "DOUBLE" +note = "var_samp of six DOUBLE values sharing a large mean and spread under 2, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/ucase.toml#t001_types_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p052"] required = true [[obligation]] -id = "db.functions.ucase.t002" -form = "db.functions.ucase" -kind = "null_argument" -target = "STRING" -note = "ucase with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-samp.t053" +form = "db.functions.var-samp" +kind = "type_combination" +target = "DOUBLE" +note = "var_samp of six DOUBLE values sharing a large mean and spread under 2, in one row order. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/ucase.toml#t002_null_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p053"] required = true [[obligation]] -id = "db.functions.ucase.t003" -form = "db.functions.ucase" -kind = "error_parity" -target = "ARRAY" -note = "ucase with a ARRAY value where the page documents STRING." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.var-samp.t054" +form = "db.functions.var-samp" +kind = "type_combination" +target = "DOUBLE" +note = "var_samp of six DOUBLE values sharing a large mean and spread under 2, repartitioned by REPARTITION(2). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p054"] +required = true + +[[obligation]] +id = "db.functions.var-samp.t055" +form = "db.functions.var-samp" +kind = "type_combination" +target = "DOUBLE" +note = "var_samp of six DOUBLE values sharing a large mean and spread under 2, repartitioned by REPARTITION(3). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/ucase.toml#t005_wrong_kind"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p055"] required = true [[obligation]] -id = "db.functions.unbase64.t001" -form = "db.functions.unbase64" +id = "db.functions.var-samp.t056" +form = "db.functions.var-samp" kind = "type_combination" -target = "STRING" -note = "unbase64 without padding, of one character, and with padding inside. Hand-written for the phase-2 recording." +target = "DOUBLE" +note = "var_samp of six DOUBLE values sharing a large mean and spread under 2, repartitioned by REPARTITION(3, x1). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/unbase64.pb.hand.toml#p001"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p056"] required = true [[obligation]] -id = "db.functions.unbase64.t002" -form = "db.functions.unbase64" +id = "db.functions.var-samp.t057" +form = "db.functions.var-samp" kind = "type_combination" -target = "STRING" -note = "unbase64 without padding, of one character, and with padding inside. Hand-written for the phase-2 recording." +target = "DOUBLE" +note = "var_samp of six DOUBLE values sharing a large mean and spread under 2, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/unbase64.pb.hand.toml#p002"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p057"] required = true [[obligation]] -id = "db.functions.unbase64.t003" -form = "db.functions.unbase64" +id = "db.functions.var-samp.t058" +form = "db.functions.var-samp" kind = "type_combination" -target = "STRING" -note = "unbase64 without padding, of one character, and with padding inside. Hand-written for the phase-2 recording." +target = "DOUBLE" +note = "var_samp of six DOUBLE values sharing a large mean and spread under 2, in one row order. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/unbase64.pb.hand.toml#p003"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p058"] required = true [[obligation]] -id = "db.functions.unbase64.t004" -form = "db.functions.unbase64" +id = "db.functions.var-samp.t059" +form = "db.functions.var-samp" kind = "type_combination" -target = "STRING" -note = "unbase64 with arguments of type STRING." +target = "DOUBLE" +note = "var_samp of six DOUBLE values sharing a large mean and spread under 2, repartitioned by REPARTITION(2). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/unbase64.toml#t001_types_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p059"] required = true [[obligation]] -id = "db.functions.unbase64.t005" -form = "db.functions.unbase64" -kind = "null_argument" -target = "STRING" -note = "unbase64 with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-samp.t060" +form = "db.functions.var-samp" +kind = "type_combination" +target = "DOUBLE" +note = "var_samp of six DOUBLE values sharing a large mean and spread under 2, repartitioned by REPARTITION(3). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/unbase64.toml#t002_null_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p060"] required = true [[obligation]] -id = "db.functions.unbase64.t006" -form = "db.functions.unbase64" -kind = "error_parity" -target = "ARRAY" -note = "unbase64 with a ARRAY value where the page documents STRING." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.var-samp.t061" +form = "db.functions.var-samp" +kind = "type_combination" +target = "DOUBLE" +note = "var_samp of six DOUBLE values sharing a large mean and spread under 2, repartitioned by REPARTITION(3, x1). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/unbase64.toml#t005_wrong_kind"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p061"] required = true [[obligation]] -id = "db.functions.unhex.t001" -form = "db.functions.unhex" +id = "db.functions.var-samp.t062" +form = "db.functions.var-samp" kind = "type_combination" -target = "STRING" -note = "unhex with arguments of type STRING." +target = "INT" +note = "var_samp of 4097 generated DOUBLE values near 1e9 in 13 steps of 0.1, in id order on one partition. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/unhex.toml#t001_types_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p062"] required = true [[obligation]] -id = "db.functions.unhex.t002" -form = "db.functions.unhex" -kind = "null_argument" -target = "STRING" -note = "unhex with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-samp.t063" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of 4097 generated DOUBLE values near 1e9 in 13 steps of 0.1, in a permuted id order on one partition. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/unhex.toml#t002_null_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p063"] required = true [[obligation]] -id = "db.functions.unhex.t003" -form = "db.functions.unhex" -kind = "error_parity" -target = "ARRAY" -note = "unhex with a ARRAY value where the page documents STRING." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.var-samp.t064" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of 4097 generated DOUBLE values near 1e9 in 13 steps of 0.1, in another permuted id order on one partition. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/unhex.toml#t005_wrong_kind"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p064"] required = true [[obligation]] -id = "db.functions.unix-date.t001" -form = "db.functions.unix-date" +id = "db.functions.var-samp.t065" +form = "db.functions.var-samp" kind = "type_combination" -target = "DATE" -note = "unix-date with arguments of type DATE." +target = "INT" +note = "var_samp of 4097 generated DOUBLE values near 1e9 in 13 steps of 0.1, in reverse id order on one partition. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/unix-date.toml#t001_types_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p065"] required = true [[obligation]] -id = "db.functions.unix-date.t002" -form = "db.functions.unix-date" -kind = "null_argument" -target = "DATE" -note = "unix-date with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-samp.t066" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of 4097 generated DOUBLE values near 1e9 in 13 steps of 0.1, in the default layout. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/unix-date.toml#t002_null_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p066"] required = true [[obligation]] -id = "db.functions.unix-date.t003" -form = "db.functions.unix-date" -kind = "error_parity" -target = "STRING" -note = "unix-date with a STRING value where the page documents DATE." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.var-samp.t067" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of 4097 generated DOUBLE values near 1e9 in 13 steps of 0.1, repartitioned by REPARTITION(4). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/unix-date.toml#t005_wrong_kind"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p067"] required = true [[obligation]] -id = "db.functions.unix-micros.t001" -form = "db.functions.unix-micros" +id = "db.functions.var-samp.t068" +form = "db.functions.var-samp" kind = "type_combination" -target = "TIMESTAMP" -note = "unix-micros with arguments of type TIMESTAMP." +target = "INT" +note = "var_samp of 4097 generated DOUBLE values near 1e9 in 13 steps of 0.1, repartitioned by REPARTITION(8, x). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/unix-micros.toml#t001_types_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p068"] required = true [[obligation]] -id = "db.functions.unix-micros.t002" -form = "db.functions.unix-micros" +id = "db.functions.var-samp.t069" +form = "db.functions.var-samp" kind = "type_combination" -target = "TIMESTAMP_NTZ" -note = "unix-micros with arguments of type TIMESTAMP_NTZ." +target = "INT" +note = "var_samp of 20000 generated DOUBLE values near 1e9 in 13 steps of 0.1, in id order on one partition. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/unix-micros.toml#t002_types_2"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p069"] required = true [[obligation]] -id = "db.functions.unix-micros.t003" -form = "db.functions.unix-micros" -kind = "null_argument" -target = "TIMESTAMP" -note = "unix-micros with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-samp.t070" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of 20000 generated DOUBLE values near 1e9 in 13 steps of 0.1, in a permuted id order on one partition. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/unix-micros.toml#t003_null_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p070"] required = true [[obligation]] -id = "db.functions.unix-micros.t004" -form = "db.functions.unix-micros" -kind = "error_parity" -target = "STRING" -note = "unix-micros with a STRING value where the page documents TIMESTAMP." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.var-samp.t071" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of 20000 generated DOUBLE values near 1e9 in 13 steps of 0.1, in another permuted id order on one partition. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/unix-micros.toml#t006_wrong_kind"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p071"] required = true [[obligation]] -id = "db.functions.unix-millis.t001" -form = "db.functions.unix-millis" +id = "db.functions.var-samp.t072" +form = "db.functions.var-samp" kind = "type_combination" -target = "TIMESTAMP" -note = "unix-millis with arguments of type TIMESTAMP." +target = "INT" +note = "var_samp of 20000 generated DOUBLE values near 1e9 in 13 steps of 0.1, in reverse id order on one partition. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/unix-millis.toml#t001_types_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p072"] required = true [[obligation]] -id = "db.functions.unix-millis.t002" -form = "db.functions.unix-millis" +id = "db.functions.var-samp.t073" +form = "db.functions.var-samp" kind = "type_combination" -target = "TIMESTAMP_NTZ" -note = "unix-millis with arguments of type TIMESTAMP_NTZ." +target = "INT" +note = "var_samp of 20000 generated DOUBLE values near 1e9 in 13 steps of 0.1, in the default layout. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/unix-millis.toml#t002_types_2"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p073"] required = true [[obligation]] -id = "db.functions.unix-millis.t003" -form = "db.functions.unix-millis" -kind = "null_argument" -target = "TIMESTAMP" -note = "unix-millis with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-samp.t074" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of 20000 generated DOUBLE values near 1e9 in 13 steps of 0.1, repartitioned by REPARTITION(4). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/unix-millis.toml#t003_null_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p074"] required = true [[obligation]] -id = "db.functions.unix-millis.t004" -form = "db.functions.unix-millis" -kind = "error_parity" -target = "STRING" -note = "unix-millis with a STRING value where the page documents TIMESTAMP." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.var-samp.t075" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of 20000 generated DOUBLE values near 1e9 in 13 steps of 0.1, repartitioned by REPARTITION(8, x). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/unix-millis.toml#t006_wrong_kind"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p075"] required = true [[obligation]] -id = "db.functions.unix-nanos.t001" -form = "db.functions.unix-nanos" +id = "db.functions.var-samp.t076" +form = "db.functions.var-samp" kind = "type_combination" -target = "TIMESTAMP" -note = "unix_nanos of microsecond timestamps, which Databricks rejects: it takes TIMESTAMP(7) to TIMESTAMP(9). Hand-written for the phase-2 recording." +target = "INT" +note = "var_samp of 100000 generated DOUBLE values near 1e9 in 13 steps of 0.1, in id order on one partition. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/unix-nanos.pt.hand.toml#p001"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p076"] required = true [[obligation]] -id = "db.functions.unix-nanos.t002" -form = "db.functions.unix-nanos" +id = "db.functions.var-samp.t077" +form = "db.functions.var-samp" kind = "type_combination" -target = "TIMESTAMP" -note = "unix-nanos with arguments of type TIMESTAMP." +target = "INT" +note = "var_samp of 100000 generated DOUBLE values near 1e9 in 13 steps of 0.1, in a permuted id order on one partition. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/unix-nanos.toml#t001_types_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p077"] required = true [[obligation]] -id = "db.functions.unix-nanos.t003" -form = "db.functions.unix-nanos" +id = "db.functions.var-samp.t078" +form = "db.functions.var-samp" kind = "type_combination" -target = "TIMESTAMP_NTZ" -note = "unix-nanos with arguments of type TIMESTAMP_NTZ." +target = "INT" +note = "var_samp of 100000 generated DOUBLE values near 1e9 in 13 steps of 0.1, in another permuted id order on one partition. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/unix-nanos.toml#t002_types_2"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p078"] required = true [[obligation]] -id = "db.functions.unix-nanos.t004" -form = "db.functions.unix-nanos" -kind = "null_argument" -target = "TIMESTAMP" -note = "unix-nanos with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-samp.t079" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of 100000 generated DOUBLE values near 1e9 in 13 steps of 0.1, in reverse id order on one partition. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/unix-nanos.toml#t003_null_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p079"] required = true [[obligation]] -id = "db.functions.unix-nanos.t005" -form = "db.functions.unix-nanos" -kind = "error_parity" -target = "STRING" -note = "unix-nanos with a STRING value where the page documents TIMESTAMP." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.var-samp.t080" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of 100000 generated DOUBLE values near 1e9 in 13 steps of 0.1, in the default layout. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/unix-nanos.toml#t006_wrong_kind"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p080"] required = true [[obligation]] -id = "db.functions.unix-seconds.t001" -form = "db.functions.unix-seconds" +id = "db.functions.var-samp.t081" +form = "db.functions.var-samp" kind = "type_combination" -target = "TIMESTAMP" -note = "unix-seconds with arguments of type TIMESTAMP." +target = "INT" +note = "var_samp of 100000 generated DOUBLE values near 1e9 in 13 steps of 0.1, repartitioned by REPARTITION(4). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/unix-seconds.toml#t001_types_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p081"] required = true [[obligation]] -id = "db.functions.unix-seconds.t002" -form = "db.functions.unix-seconds" +id = "db.functions.var-samp.t082" +form = "db.functions.var-samp" kind = "type_combination" -target = "TIMESTAMP_NTZ" -note = "unix-seconds with arguments of type TIMESTAMP_NTZ." +target = "INT" +note = "var_samp of 100000 generated DOUBLE values near 1e9 in 13 steps of 0.1, repartitioned by REPARTITION(8, x). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/unix-seconds.toml#t002_types_2"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p082"] required = true [[obligation]] -id = "db.functions.unix-seconds.t003" -form = "db.functions.unix-seconds" -kind = "null_argument" -target = "TIMESTAMP" -note = "unix-seconds with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-samp.t083" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp per group of 3000 generated DOUBLE values near 1e9 in 7 interleaved groups, in id order on one partition. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/unix-seconds.toml#t003_null_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p083"] required = true [[obligation]] -id = "db.functions.unix-seconds.t004" -form = "db.functions.unix-seconds" -kind = "error_parity" -target = "STRING" -note = "unix-seconds with a STRING value where the page documents TIMESTAMP." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.var-samp.t084" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp per group of 3000 generated DOUBLE values near 1e9 in 7 interleaved groups, in a permuted id order on one partition. Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/unix-seconds.toml#t006_wrong_kind"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p084"] required = true [[obligation]] -id = "db.functions.unix-timestamp.t001" -form = "db.functions.unix-timestamp" +id = "db.functions.var-samp.t085" +form = "db.functions.var-samp" kind = "type_combination" -target = "TIMESTAMP" -note = "unix_timestamp of timestamps after and just before 1970. Hand-written for the phase-2 recording." +target = "INT" +note = "var_samp per group of 3000 generated DOUBLE values near 1e9 in 7 interleaved groups, in reverse id order on one partition. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/unix-timestamp.pt.hand.toml#p001"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p085"] required = true [[obligation]] -id = "db.functions.unix-timestamp.t002" -form = "db.functions.unix-timestamp" +id = "db.functions.var-samp.t086" +form = "db.functions.var-samp" kind = "type_combination" -target = "STRING" -note = "unix_timestamp of text with a pattern, and text it does not fit. Hand-written for the phase-2 recording." +target = "INT" +note = "var_samp per group of 3000 generated DOUBLE values near 1e9 in 7 interleaved groups, repartitioned by REPARTITION(4). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/unix-timestamp.ptf.hand.toml#p001"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p086"] required = true [[obligation]] -id = "db.functions.unix-timestamp.t003" -form = "db.functions.unix-timestamp" +id = "db.functions.var-samp.t087" +form = "db.functions.var-samp" kind = "type_combination" -target = "STRING" -note = "unix_timestamp of text with a pattern, and text it does not fit. Hand-written for the phase-2 recording." +target = "INT" +note = "var_samp per group of 3000 generated DOUBLE values near 1e9 in 7 interleaved groups, repartitioned by REPARTITION(7, g). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/unix-timestamp.ptf.hand.toml#p002"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p087"] required = true [[obligation]] -id = "db.functions.upper.t001" -form = "db.functions.upper" +id = "db.functions.var-samp.t088" +form = "db.functions.var-samp" kind = "type_combination" -target = "STRING" -note = "upper of accented, Greek and Cyrillic small letters. Hand-written for the phase-2 recording." +target = "INT" +note = "var_samp of 24 generated DOUBLE values near 1e9 in 13 steps of 0.1, on one partition. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/upper.p2.hand.toml#p001"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p088"] required = true [[obligation]] -id = "db.functions.upper.t002" -form = "db.functions.upper" +id = "db.functions.var-samp.t089" +form = "db.functions.var-samp" kind = "type_combination" -target = "STRING" -note = "upper with arguments of type STRING." +target = "INT" +note = "var_samp of 24 generated DOUBLE values near 1e9 in 13 steps of 0.1, in the default layout. Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/upper.toml#t001_types_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p089"] required = true [[obligation]] -id = "db.functions.upper.t003" -form = "db.functions.upper" -kind = "null_argument" -target = "STRING" -note = "upper with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-samp.t090" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of 24 generated DOUBLE values near 1e9 in 13 steps of 0.1, repartitioned by REPARTITION(2). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/upper.toml#t002_null_1"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p090"] required = true [[obligation]] -id = "db.functions.upper.t004" -form = "db.functions.upper" -kind = "error_parity" -target = "ARRAY" -note = "upper with a ARRAY value where the page documents STRING." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.var-samp.t091" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of 24 generated DOUBLE values near 1e9 in 13 steps of 0.1, repartitioned by REPARTITION(3). Hand-written for the moment-family recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/upper.toml#t005_wrong_kind"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p091"] required = true [[obligation]] -id = "db.functions.url-decode.t001" -form = "db.functions.url-decode" +id = "db.functions.var-samp.t092" +form = "db.functions.var-samp" kind = "type_combination" -target = "STRING" -note = "url_decode of an invalid escape, a non-UTF-8 byte and a plus. Hand-written for the phase-2 recording." +target = "INT" +note = "var_samp of 24 generated DOUBLE values near 1e9 in 13 steps of 0.1, repartitioned by REPARTITION(8). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/url-decode.pb.hand.toml#p001"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p092"] required = true [[obligation]] -id = "db.functions.url-decode.t002" -form = "db.functions.url-decode" +id = "db.functions.var-samp.t093" +form = "db.functions.var-samp" kind = "type_combination" -target = "STRING" -note = "url_decode of an invalid escape, a non-UTF-8 byte and a plus. Hand-written for the phase-2 recording." +target = "INT" +note = "var_samp of 24 generated DOUBLE values near 1e9 in 13 steps of 0.1, repartitioned by REPARTITION(3, x). Hand-written for the moment-family recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/url-decode.pb.hand.toml#p002"] +cases = ["cases/translation/functions/var-samp.families.pm.hand.toml#p093"] required = true [[obligation]] -id = "db.functions.url-decode.t003" -form = "db.functions.url-decode" +id = "db.functions.var-samp.t094" +form = "db.functions.var-samp" kind = "type_combination" -target = "STRING" -note = "url_decode of an invalid escape, a non-UTF-8 byte and a plus. Hand-written for the phase-2 recording." +target = "INT" +note = "var_samp of the same three INT values in one of their six orders, whose streaming update rounds apart. Hand-written for the row-order recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/url-decode.pb.hand.toml#p003"] +cases = ["cases/translation/functions/var-samp.orders.pm.hand.toml#p001"] required = true [[obligation]] -id = "db.functions.url-decode.t004" -form = "db.functions.url-decode" +id = "db.functions.var-samp.t095" +form = "db.functions.var-samp" kind = "type_combination" -target = "STRING" -note = "url-decode with arguments of type STRING." +target = "INT" +note = "var_samp of the same three INT values in one of their six orders, whose streaming update rounds apart. Hand-written for the row-order recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/url-decode.toml#t001_types_1"] +cases = ["cases/translation/functions/var-samp.orders.pm.hand.toml#p002"] required = true [[obligation]] -id = "db.functions.url-decode.t005" -form = "db.functions.url-decode" -kind = "null_argument" -target = "STRING" -note = "url-decode with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-samp.t096" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of the same three INT values in one of their six orders, whose streaming update rounds apart. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/url-decode.toml#t002_null_1"] +cases = ["cases/translation/functions/var-samp.orders.pm.hand.toml#p003"] required = true [[obligation]] -id = "db.functions.url-decode.t006" -form = "db.functions.url-decode" -kind = "error_parity" -target = "ARRAY" -note = "url-decode with a ARRAY value where the page documents STRING." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.var-samp.t097" +form = "db.functions.var-samp" +kind = "type_combination" +target = "INT" +note = "var_samp of the same three INT values in one of their six orders, whose streaming update rounds apart. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/url-decode.toml#t005_wrong_kind"] +cases = ["cases/translation/functions/var-samp.orders.pm.hand.toml#p004"] required = true [[obligation]] -id = "db.functions.url-encode.t001" -form = "db.functions.url-encode" +id = "db.functions.var-samp.t098" +form = "db.functions.var-samp" kind = "type_combination" -target = "STRING" -note = "url_encode of ~ and *. Hand-written for the phase-2 recording." +target = "INT" +note = "var_samp of the same three INT values in one of their six orders, whose streaming update rounds apart. Hand-written for the row-order recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/url-encode.pb.hand.toml#p001"] +cases = ["cases/translation/functions/var-samp.orders.pm.hand.toml#p005"] required = true [[obligation]] -id = "db.functions.url-encode.t002" -form = "db.functions.url-encode" +id = "db.functions.var-samp.t099" +form = "db.functions.var-samp" kind = "type_combination" -target = "STRING" -note = "url-encode with arguments of type STRING." +target = "INT" +note = "var_samp of the same three INT values in one of their six orders, whose streaming update rounds apart. Hand-written for the row-order recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/url-encode.toml#t001_types_1"] +cases = ["cases/translation/functions/var-samp.orders.pm.hand.toml#p006"] required = true [[obligation]] -id = "db.functions.url-encode.t003" -form = "db.functions.url-encode" -kind = "null_argument" -target = "STRING" -note = "url-encode with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-samp.t100" +form = "db.functions.var-samp" +kind = "type_combination" +target = "DOUBLE" +note = "var_samp of three DOUBLE values sharing a large mean and spread under 1, in one of their six orders. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/url-encode.toml#t002_null_1"] +cases = ["cases/translation/functions/var-samp.orders.pm.hand.toml#p007"] required = true [[obligation]] -id = "db.functions.url-encode.t004" -form = "db.functions.url-encode" -kind = "error_parity" -target = "ARRAY" -note = "url-encode with a ARRAY value where the page documents STRING." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.var-samp.t101" +form = "db.functions.var-samp" +kind = "type_combination" +target = "DOUBLE" +note = "var_samp of three DOUBLE values sharing a large mean and spread under 1, in one of their six orders. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/url-encode.toml#t005_wrong_kind"] +cases = ["cases/translation/functions/var-samp.orders.pm.hand.toml#p008"] required = true [[obligation]] -id = "db.functions.validate-utf8.t001" -form = "db.functions.validate-utf8" +id = "db.functions.var-samp.t102" +form = "db.functions.var-samp" kind = "type_combination" -target = "STRING" -note = "validate-utf8 with arguments of type STRING." +target = "DOUBLE" +note = "var_samp of three DOUBLE values sharing a large mean and spread under 1, in one of their six orders. Hand-written for the row-order recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/validate-utf8.toml#t001_types_1"] +cases = ["cases/translation/functions/var-samp.orders.pm.hand.toml#p009"] required = true [[obligation]] -id = "db.functions.validate-utf8.t002" -form = "db.functions.validate-utf8" -kind = "null_argument" -target = "STRING" -note = "validate-utf8 with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-samp.t103" +form = "db.functions.var-samp" +kind = "type_combination" +target = "DOUBLE" +note = "var_samp of three DOUBLE values sharing a large mean and spread under 1, in one of their six orders. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/validate-utf8.toml#t002_null_1"] +cases = ["cases/translation/functions/var-samp.orders.pm.hand.toml#p010"] required = true [[obligation]] -id = "db.functions.validate-utf8.t003" -form = "db.functions.validate-utf8" -kind = "error_parity" -target = "ARRAY" -note = "validate-utf8 with a ARRAY value where the page documents STRING." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.var-samp.t104" +form = "db.functions.var-samp" +kind = "type_combination" +target = "DOUBLE" +note = "var_samp of three DOUBLE values sharing a large mean and spread under 1, in one of their six orders. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/validate-utf8.toml#t005_wrong_kind"] +cases = ["cases/translation/functions/var-samp.orders.pm.hand.toml#p011"] required = true [[obligation]] -id = "db.functions.var-pop.t001" -form = "db.functions.var-pop" +id = "db.functions.var-samp.t105" +form = "db.functions.var-samp" kind = "type_combination" -target = "INT" -note = "var-pop with arguments of type INT." +target = "DOUBLE" +note = "var_samp of three DOUBLE values sharing a large mean and spread under 1, in one of their six orders. Hand-written for the row-order recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/var-pop.toml#t001_types_1"] +cases = ["cases/translation/functions/var-samp.orders.pm.hand.toml#p012"] required = true [[obligation]] -id = "db.functions.var-pop.t002" -form = "db.functions.var-pop" +id = "db.functions.var-samp.t106" +form = "db.functions.var-samp" kind = "type_combination" -target = "DECIMAL(10,2)" -note = "var-pop with arguments of type DECIMAL(10,2)." +target = "DOUBLE" +note = "var_samp of four DOUBLE values sharing a large mean, in one order per distinct streaming result. Hand-written for the row-order recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/var-pop.toml#t002_types_2"] +cases = ["cases/translation/functions/var-samp.orders.pm.hand.toml#p013"] required = true [[obligation]] -id = "db.functions.var-pop.t003" -form = "db.functions.var-pop" +id = "db.functions.var-samp.t107" +form = "db.functions.var-samp" kind = "type_combination" target = "DOUBLE" -note = "var-pop with arguments of type DOUBLE." +note = "var_samp of four DOUBLE values sharing a large mean, in one order per distinct streaming result. Hand-written for the row-order recording." catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/var-pop.toml#t003_types_3"] +cases = ["cases/translation/functions/var-samp.orders.pm.hand.toml#p014"] required = true [[obligation]] -id = "db.functions.var-pop.t004" -form = "db.functions.var-pop" -kind = "null_argument" -target = "INT" -note = "var-pop with NULL as argument 1." -catches = "a NULL argument returning a value, or raising where Databricks returns NULL" +id = "db.functions.var-samp.t108" +form = "db.functions.var-samp" +kind = "type_combination" +target = "DOUBLE" +note = "var_samp of four DOUBLE values sharing a large mean, in one order per distinct streaming result. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/var-pop.toml#t004_null_1"] +cases = ["cases/translation/functions/var-samp.orders.pm.hand.toml#p015"] required = true [[obligation]] -id = "db.functions.var-pop.t005" -form = "db.functions.var-pop" -kind = "error_parity" -target = "STRING" -note = "var-pop with a STRING value where the page documents INT." -catches = "a value returned where Databricks rejects the arguments, or another error kind" +id = "db.functions.var-samp.t109" +form = "db.functions.var-samp" +kind = "type_combination" +target = "DOUBLE" +note = "var_samp of four DOUBLE values sharing a large mean, in one order per distinct streaming result. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" reading = "the argument types the generator read from the function's page" -cases = ["cases/translation/functions/var-pop.toml#t007_wrong_kind"] +cases = ["cases/translation/functions/var-samp.orders.pm.hand.toml#p016"] required = true [[obligation]] -id = "db.functions.var-samp.t001" +id = "db.functions.var-samp.t110" form = "db.functions.var-samp" kind = "type_combination" target = "INT" @@ -41254,7 +44840,7 @@ cases = ["cases/translation/functions/var-samp.pa.hand.toml#p001"] required = true [[obligation]] -id = "db.functions.var-samp.t002" +id = "db.functions.var-samp.t111" form = "db.functions.var-samp" kind = "type_combination" target = "INT" @@ -41265,7 +44851,7 @@ cases = ["cases/translation/functions/var-samp.pa.hand.toml#p002"] required = true [[obligation]] -id = "db.functions.var-samp.t003" +id = "db.functions.var-samp.t112" form = "db.functions.var-samp" kind = "type_combination" target = "INT" @@ -41276,7 +44862,7 @@ cases = ["cases/translation/functions/var-samp.pa.hand.toml#p003"] required = true [[obligation]] -id = "db.functions.var-samp.t004" +id = "db.functions.var-samp.t113" form = "db.functions.var-samp" kind = "type_combination" target = "INT" @@ -41287,7 +44873,7 @@ cases = ["cases/translation/functions/var-samp.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.var-samp.t005" +id = "db.functions.var-samp.t114" form = "db.functions.var-samp" kind = "type_combination" target = "DECIMAL(10,2)" @@ -41298,7 +44884,7 @@ cases = ["cases/translation/functions/var-samp.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.var-samp.t006" +id = "db.functions.var-samp.t115" form = "db.functions.var-samp" kind = "type_combination" target = "DOUBLE" @@ -41309,7 +44895,7 @@ cases = ["cases/translation/functions/var-samp.toml#t003_types_3"] required = true [[obligation]] -id = "db.functions.var-samp.t007" +id = "db.functions.var-samp.t116" form = "db.functions.var-samp" kind = "null_argument" target = "INT" @@ -41320,7 +44906,7 @@ cases = ["cases/translation/functions/var-samp.toml#t004_null_1"] required = true [[obligation]] -id = "db.functions.var-samp.t008" +id = "db.functions.var-samp.t117" form = "db.functions.var-samp" kind = "error_parity" target = "STRING" @@ -41334,6 +44920,28 @@ required = true id = "db.functions.variance.t001" form = "db.functions.variance" kind = "type_combination" +target = "DOUBLE" +note = "variance of three DOUBLE values sharing a large mean, in two orders that round apart. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/variance.orders.pm.hand.toml#p001"] +required = true + +[[obligation]] +id = "db.functions.variance.t002" +form = "db.functions.variance" +kind = "type_combination" +target = "DOUBLE" +note = "variance of three DOUBLE values sharing a large mean, in two orders that round apart. Hand-written for the row-order recording." +catches = "the argument types read another way, or the result typed otherwise" +reading = "the argument types the generator read from the function's page" +cases = ["cases/translation/functions/variance.orders.pm.hand.toml#p002"] +required = true + +[[obligation]] +id = "db.functions.variance.t003" +form = "db.functions.variance" +kind = "type_combination" target = "INT" note = "variance with arguments of type INT." catches = "the argument types read another way, or the result typed otherwise" @@ -41342,7 +44950,7 @@ cases = ["cases/translation/functions/variance.toml#t001_types_1"] required = true [[obligation]] -id = "db.functions.variance.t002" +id = "db.functions.variance.t004" form = "db.functions.variance" kind = "type_combination" target = "DECIMAL(10,2)" @@ -41353,7 +44961,7 @@ cases = ["cases/translation/functions/variance.toml#t002_types_2"] required = true [[obligation]] -id = "db.functions.variance.t003" +id = "db.functions.variance.t005" form = "db.functions.variance" kind = "type_combination" target = "DOUBLE" @@ -41364,7 +44972,7 @@ cases = ["cases/translation/functions/variance.toml#t003_types_3"] required = true [[obligation]] -id = "db.functions.variance.t004" +id = "db.functions.variance.t006" form = "db.functions.variance" kind = "null_argument" target = "INT" @@ -41375,7 +44983,7 @@ cases = ["cases/translation/functions/variance.toml#t004_null_1"] required = true [[obligation]] -id = "db.functions.variance.t005" +id = "db.functions.variance.t007" form = "db.functions.variance" kind = "error_parity" target = "STRING" diff --git a/coverage/translation-databricks/results-baseline.json b/coverage/translation-databricks/results-baseline.json index c23776fbf..eb4952ee0 100644 --- a/coverage/translation-databricks/results-baseline.json +++ b/coverage/translation-databricks/results-baseline.json @@ -4444,34 +4444,235 @@ "translation/functions/startswith.toml#t006_boundary_3": "matching", "translation/functions/startswith.toml#t007_boundary_4": "matching", "translation/functions/startswith.toml#t008_wrong_kind": "matching_rejection", - "translation/functions/std.toml#t001_types_1": "refused", - "translation/functions/std.toml#t002_types_2": "refused", - "translation/functions/std.toml#t003_types_3": "refused", - "translation/functions/std.toml#t004_null_1": "refused", - "translation/functions/std.toml#t005_boundary_1": "refused", - "translation/functions/std.toml#t006_boundary_2": "refused", - "translation/functions/std.toml#t007_wrong_kind": "refused", - "translation/functions/stddev-pop.toml#t001_types_1": "refused", - "translation/functions/stddev-pop.toml#t002_types_2": "refused", - "translation/functions/stddev-pop.toml#t003_types_3": "refused", - "translation/functions/stddev-pop.toml#t004_null_1": "refused", - "translation/functions/stddev-pop.toml#t005_boundary_1": "refused", - "translation/functions/stddev-pop.toml#t006_boundary_2": "refused", - "translation/functions/stddev-pop.toml#t007_wrong_kind": "refused", - "translation/functions/stddev-samp.toml#t001_types_1": "refused", - "translation/functions/stddev-samp.toml#t002_types_2": "refused", - "translation/functions/stddev-samp.toml#t003_types_3": "refused", - "translation/functions/stddev-samp.toml#t004_null_1": "refused", - "translation/functions/stddev-samp.toml#t005_boundary_1": "refused", - "translation/functions/stddev-samp.toml#t006_boundary_2": "refused", - "translation/functions/stddev-samp.toml#t007_wrong_kind": "refused", - "translation/functions/stddev.toml#t001_types_1": "refused", - "translation/functions/stddev.toml#t002_types_2": "refused", - "translation/functions/stddev.toml#t003_types_3": "refused", - "translation/functions/stddev.toml#t004_null_1": "refused", - "translation/functions/stddev.toml#t005_boundary_1": "refused", - "translation/functions/stddev.toml#t006_boundary_2": "refused", - "translation/functions/stddev.toml#t007_wrong_kind": "refused", + "translation/functions/std.orders.pm.hand.toml#p001": "matching_within_ulps", + "translation/functions/std.orders.pm.hand.toml#p002": "matching_within_ulps", + "translation/functions/std.toml#t001_types_1": "matching", + "translation/functions/std.toml#t002_types_2": "matching", + "translation/functions/std.toml#t003_types_3": "matching", + "translation/functions/std.toml#t004_null_1": "matching", + "translation/functions/std.toml#t005_boundary_1": "matching", + "translation/functions/std.toml#t006_boundary_2": "matching", + "translation/functions/std.toml#t007_wrong_kind": "matching_error", + "translation/functions/stddev-pop.families.pm.hand.toml#p001": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p002": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p003": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p004": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p005": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p006": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p007": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p008": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p009": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p010": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p011": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p012": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p013": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p014": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p015": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p016": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p017": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p018": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p019": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p020": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p021": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p022": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p023": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p024": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p025": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p026": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p027": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p028": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p029": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p030": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p031": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p032": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p033": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p034": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p035": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p036": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p037": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p038": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p039": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p040": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p041": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p042": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p043": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p044": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p045": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p046": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p047": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p048": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p049": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p050": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p051": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p052": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p053": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p054": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p055": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p056": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p057": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p058": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p059": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p060": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p061": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p062": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p063": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p064": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p065": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p066": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p067": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p068": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p069": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p070": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p071": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p072": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p073": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p074": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p075": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p076": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p077": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p078": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p079": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p080": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p081": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p082": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p083": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p084": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p085": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p086": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p087": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p088": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p089": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p090": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p091": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p092": "matching_within_ulps", + "translation/functions/stddev-pop.families.pm.hand.toml#p093": "matching_within_ulps", + "translation/functions/stddev-pop.orders.pm.hand.toml#p001": "matching_within_ulps", + "translation/functions/stddev-pop.orders.pm.hand.toml#p002": "matching_within_ulps", + "translation/functions/stddev-pop.orders.pm.hand.toml#p003": "matching_within_ulps", + "translation/functions/stddev-pop.orders.pm.hand.toml#p004": "matching_within_ulps", + "translation/functions/stddev-pop.orders.pm.hand.toml#p005": "matching_within_ulps", + "translation/functions/stddev-pop.orders.pm.hand.toml#p006": "matching_within_ulps", + "translation/functions/stddev-pop.orders.pm.hand.toml#p007": "matching_within_ulps", + "translation/functions/stddev-pop.orders.pm.hand.toml#p008": "matching_within_ulps", + "translation/functions/stddev-pop.orders.pm.hand.toml#p009": "matching_within_ulps", + "translation/functions/stddev-pop.orders.pm.hand.toml#p010": "matching_within_ulps", + "translation/functions/stddev-pop.orders.pm.hand.toml#p011": "matching_within_ulps", + "translation/functions/stddev-pop.orders.pm.hand.toml#p012": "matching_within_ulps", + "translation/functions/stddev-pop.orders.pm.hand.toml#p013": "matching_within_ulps", + "translation/functions/stddev-pop.orders.pm.hand.toml#p014": "matching_within_ulps", + "translation/functions/stddev-pop.orders.pm.hand.toml#p015": "matching_within_ulps", + "translation/functions/stddev-pop.toml#t001_types_1": "matching", + "translation/functions/stddev-pop.toml#t002_types_2": "matching", + "translation/functions/stddev-pop.toml#t003_types_3": "matching", + "translation/functions/stddev-pop.toml#t004_null_1": "matching", + "translation/functions/stddev-pop.toml#t005_boundary_1": "matching", + "translation/functions/stddev-pop.toml#t006_boundary_2": "matching", + "translation/functions/stddev-pop.toml#t007_wrong_kind": "matching_error", + "translation/functions/stddev-samp.families.pm.hand.toml#p001": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p002": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p003": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p004": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p005": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p006": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p007": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p008": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p009": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p010": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p011": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p012": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p013": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p014": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p015": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p016": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p017": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p018": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p019": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p020": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p021": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p022": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p023": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p024": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p025": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p026": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p027": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p028": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p029": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p030": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p031": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p032": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p033": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p034": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p035": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p036": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p037": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p038": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p039": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p040": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p041": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p042": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p043": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p044": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p045": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p046": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p047": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p048": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p049": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p050": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p051": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p052": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p053": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p054": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p055": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p056": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p057": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p058": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p059": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p060": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p061": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p062": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p063": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p064": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p065": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p066": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p067": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p068": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p069": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p070": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p071": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p072": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p073": "matching_within_ulps", + "translation/functions/stddev-samp.families.pm.hand.toml#p074": "matching_within_ulps", + "translation/functions/stddev-samp.orders.pm.hand.toml#p001": "matching_within_ulps", + "translation/functions/stddev-samp.orders.pm.hand.toml#p002": "matching_within_ulps", + "translation/functions/stddev-samp.orders.pm.hand.toml#p003": "matching_within_ulps", + "translation/functions/stddev-samp.orders.pm.hand.toml#p004": "matching_within_ulps", + "translation/functions/stddev-samp.orders.pm.hand.toml#p005": "matching_within_ulps", + "translation/functions/stddev-samp.orders.pm.hand.toml#p006": "matching_within_ulps", + "translation/functions/stddev-samp.orders.pm.hand.toml#p007": "matching_within_ulps", + "translation/functions/stddev-samp.orders.pm.hand.toml#p008": "matching_within_ulps", + "translation/functions/stddev-samp.orders.pm.hand.toml#p009": "matching_within_ulps", + "translation/functions/stddev-samp.orders.pm.hand.toml#p010": "matching_within_ulps", + "translation/functions/stddev-samp.orders.pm.hand.toml#p011": "matching_within_ulps", + "translation/functions/stddev-samp.orders.pm.hand.toml#p012": "matching_within_ulps", + "translation/functions/stddev-samp.orders.pm.hand.toml#p013": "matching_within_ulps", + "translation/functions/stddev-samp.orders.pm.hand.toml#p014": "matching_within_ulps", + "translation/functions/stddev-samp.orders.pm.hand.toml#p015": "matching_within_ulps", + "translation/functions/stddev-samp.toml#t001_types_1": "matching", + "translation/functions/stddev-samp.toml#t002_types_2": "matching", + "translation/functions/stddev-samp.toml#t003_types_3": "matching", + "translation/functions/stddev-samp.toml#t004_null_1": "matching", + "translation/functions/stddev-samp.toml#t005_boundary_1": "matching", + "translation/functions/stddev-samp.toml#t006_boundary_2": "matching", + "translation/functions/stddev-samp.toml#t007_wrong_kind": "matching_error", + "translation/functions/stddev.orders.pm.hand.toml#p001": "matching_within_ulps", + "translation/functions/stddev.orders.pm.hand.toml#p002": "matching_within_ulps", + "translation/functions/stddev.toml#t001_types_1": "matching", + "translation/functions/stddev.toml#t002_types_2": "matching", + "translation/functions/stddev.toml#t003_types_3": "matching", + "translation/functions/stddev.toml#t004_null_1": "matching", + "translation/functions/stddev.toml#t005_boundary_1": "matching", + "translation/functions/stddev.toml#t006_boundary_2": "matching", + "translation/functions/stddev.toml#t007_wrong_kind": "matching_error", "translation/functions/str-to-map.toml#t001_types_1": "matching", "translation/functions/str-to-map.toml#t002_null_1": "matching", "translation/functions/str-to-map.toml#t003_boundary_1": "matching", @@ -5504,30 +5705,157 @@ "translation/functions/validate-utf8.toml#t003_boundary_1": "matching", "translation/functions/validate-utf8.toml#t004_boundary_2": "matching", "translation/functions/validate-utf8.toml#t005_wrong_kind": "matching_rejection", - "translation/functions/var-pop.toml#t001_types_1": "refused", - "translation/functions/var-pop.toml#t002_types_2": "refused", - "translation/functions/var-pop.toml#t003_types_3": "refused", - "translation/functions/var-pop.toml#t004_null_1": "refused", - "translation/functions/var-pop.toml#t005_boundary_1": "refused", - "translation/functions/var-pop.toml#t006_boundary_2": "refused", - "translation/functions/var-pop.toml#t007_wrong_kind": "refused", - "translation/functions/var-samp.pa.hand.toml#p001": "refused", - "translation/functions/var-samp.pa.hand.toml#p002": "refused", - "translation/functions/var-samp.pa.hand.toml#p003": "refused", - "translation/functions/var-samp.toml#t001_types_1": "refused", - "translation/functions/var-samp.toml#t002_types_2": "refused", - "translation/functions/var-samp.toml#t003_types_3": "refused", - "translation/functions/var-samp.toml#t004_null_1": "refused", - "translation/functions/var-samp.toml#t005_boundary_1": "refused", - "translation/functions/var-samp.toml#t006_boundary_2": "refused", - "translation/functions/var-samp.toml#t007_wrong_kind": "refused", - "translation/functions/variance.toml#t001_types_1": "refused", - "translation/functions/variance.toml#t002_types_2": "refused", - "translation/functions/variance.toml#t003_types_3": "refused", - "translation/functions/variance.toml#t004_null_1": "refused", - "translation/functions/variance.toml#t005_boundary_1": "refused", - "translation/functions/variance.toml#t006_boundary_2": "refused", - "translation/functions/variance.toml#t007_wrong_kind": "refused", + "translation/functions/var-pop.orders.pm.hand.toml#p001": "matching", + "translation/functions/var-pop.orders.pm.hand.toml#p002": "matching", + "translation/functions/var-pop.orders.pm.hand.toml#p003": "matching", + "translation/functions/var-pop.orders.pm.hand.toml#p004": "matching", + "translation/functions/var-pop.orders.pm.hand.toml#p005": "matching", + "translation/functions/var-pop.orders.pm.hand.toml#p006": "matching", + "translation/functions/var-pop.orders.pm.hand.toml#p007": "matching", + "translation/functions/var-pop.orders.pm.hand.toml#p008": "matching", + "translation/functions/var-pop.orders.pm.hand.toml#p009": "matching", + "translation/functions/var-pop.orders.pm.hand.toml#p010": "matching", + "translation/functions/var-pop.orders.pm.hand.toml#p011": "matching", + "translation/functions/var-pop.orders.pm.hand.toml#p012": "matching", + "translation/functions/var-pop.orders.pm.hand.toml#p013": "matching", + "translation/functions/var-pop.orders.pm.hand.toml#p014": "matching", + "translation/functions/var-pop.orders.pm.hand.toml#p015": "matching", + "translation/functions/var-pop.orders.pm.hand.toml#p016": "matching", + "translation/functions/var-pop.toml#t001_types_1": "matching", + "translation/functions/var-pop.toml#t002_types_2": "matching", + "translation/functions/var-pop.toml#t003_types_3": "matching", + "translation/functions/var-pop.toml#t004_null_1": "matching", + "translation/functions/var-pop.toml#t005_boundary_1": "matching", + "translation/functions/var-pop.toml#t006_boundary_2": "matching", + "translation/functions/var-pop.toml#t007_wrong_kind": "matching_error", + "translation/functions/var-samp.families.pm.hand.toml#p001": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p002": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p003": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p004": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p005": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p006": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p007": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p008": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p009": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p010": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p011": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p012": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p013": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p014": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p015": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p016": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p017": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p018": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p019": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p020": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p021": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p022": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p023": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p024": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p025": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p026": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p027": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p028": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p029": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p030": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p031": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p032": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p033": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p034": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p035": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p036": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p037": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p038": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p039": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p040": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p041": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p042": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p043": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p044": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p045": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p046": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p047": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p048": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p049": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p050": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p051": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p052": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p053": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p054": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p055": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p056": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p057": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p058": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p059": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p060": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p061": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p062": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p063": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p064": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p065": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p066": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p067": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p068": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p069": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p070": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p071": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p072": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p073": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p074": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p075": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p076": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p077": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p078": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p079": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p080": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p081": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p082": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p083": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p084": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p085": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p086": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p087": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p088": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p089": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p090": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p091": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p092": "matching_within_ulps", + "translation/functions/var-samp.families.pm.hand.toml#p093": "matching_within_ulps", + "translation/functions/var-samp.orders.pm.hand.toml#p001": "matching_within_ulps", + "translation/functions/var-samp.orders.pm.hand.toml#p002": "matching_within_ulps", + "translation/functions/var-samp.orders.pm.hand.toml#p003": "matching_within_ulps", + "translation/functions/var-samp.orders.pm.hand.toml#p004": "matching_within_ulps", + "translation/functions/var-samp.orders.pm.hand.toml#p005": "matching_within_ulps", + "translation/functions/var-samp.orders.pm.hand.toml#p006": "matching_within_ulps", + "translation/functions/var-samp.orders.pm.hand.toml#p007": "matching_within_ulps", + "translation/functions/var-samp.orders.pm.hand.toml#p008": "matching_within_ulps", + "translation/functions/var-samp.orders.pm.hand.toml#p009": "matching_within_ulps", + "translation/functions/var-samp.orders.pm.hand.toml#p010": "matching_within_ulps", + "translation/functions/var-samp.orders.pm.hand.toml#p011": "matching_within_ulps", + "translation/functions/var-samp.orders.pm.hand.toml#p012": "matching_within_ulps", + "translation/functions/var-samp.orders.pm.hand.toml#p013": "matching_within_ulps", + "translation/functions/var-samp.orders.pm.hand.toml#p014": "matching_within_ulps", + "translation/functions/var-samp.orders.pm.hand.toml#p015": "matching_within_ulps", + "translation/functions/var-samp.orders.pm.hand.toml#p016": "matching_within_ulps", + "translation/functions/var-samp.pa.hand.toml#p001": "matching_within_ulps", + "translation/functions/var-samp.pa.hand.toml#p002": "matching_within_ulps", + "translation/functions/var-samp.pa.hand.toml#p003": "matching_within_ulps", + "translation/functions/var-samp.toml#t001_types_1": "matching", + "translation/functions/var-samp.toml#t002_types_2": "matching", + "translation/functions/var-samp.toml#t003_types_3": "matching", + "translation/functions/var-samp.toml#t004_null_1": "matching", + "translation/functions/var-samp.toml#t005_boundary_1": "matching", + "translation/functions/var-samp.toml#t006_boundary_2": "matching", + "translation/functions/var-samp.toml#t007_wrong_kind": "matching_error", + "translation/functions/variance.orders.pm.hand.toml#p001": "matching_within_ulps", + "translation/functions/variance.orders.pm.hand.toml#p002": "matching_within_ulps", + "translation/functions/variance.toml#t001_types_1": "matching", + "translation/functions/variance.toml#t002_types_2": "matching", + "translation/functions/variance.toml#t003_types_3": "matching", + "translation/functions/variance.toml#t004_null_1": "matching", + "translation/functions/variance.toml#t005_boundary_1": "matching", + "translation/functions/variance.toml#t006_boundary_2": "matching", + "translation/functions/variance.toml#t007_wrong_kind": "matching_error", "translation/functions/variant-explode-outer.hand.toml#t001_null": "refused", "translation/functions/variant-explode-outer.hand.toml#t002_object": "refused", "translation/functions/variant-explode-outer.toml#t001_types_1": "refused", @@ -6154,7 +6482,7 @@ "db.expressions.decimal-type": "matching", "db.expressions.decimal-type.bd": "matching", "db.expressions.decimal-type.subscript": "matching", - "db.expressions.double-type": "matching", + "db.expressions.double-type": "matching_within_ulps", "db.expressions.double-type.d": "matching", "db.expressions.double-type.d.literals": "matching", "db.expressions.expression": "matching", @@ -6282,7 +6610,7 @@ "db.functions.asin": "matching_within_ulps", "db.functions.asinh": "refused", "db.functions.assert-true": "matching", - "db.functions.asterisksign": "matching", + "db.functions.asterisksign": "matching_within_ulps", "db.functions.atan": "matching_within_ulps", "db.functions.atan2": "refused", "db.functions.atanh": "refused", @@ -6630,7 +6958,7 @@ "db.functions.min": "matching", "db.functions.min-by.min-by": "matching", "db.functions.min-by.min-by.syntax": "matching", - "db.functions.minussign": "matching", + "db.functions.minussign": "matching_within_ulps", "db.functions.minussignunary": "matching", "db.functions.minute": "matching", "db.functions.mod": "matching", @@ -6663,12 +6991,12 @@ "db.functions.percentile-approx": "refused", "db.functions.percentile-cont": "matching", "db.functions.percentile-disc": "matching", - "db.functions.percentsign": "matching", + "db.functions.percentsign": "matching_within_ulps", "db.functions.pi": "matching", "db.functions.pipepipesign": "matching", "db.functions.pipesign.syntax": "unmeasured", "db.functions.pipesign.syntax.syntax": "unmeasured", - "db.functions.plussign": "matching", + "db.functions.plussign": "matching_within_ulps", "db.functions.plussignunary": "matching", "db.functions.pmod": "matching", "db.functions.posexplode": "matching", @@ -6687,7 +7015,7 @@ "db.functions.randn": "unmeasured", "db.functions.random": "unmeasured", "db.functions.randstr": "unmeasured", - "db.functions.range": "matching", + "db.functions.range": "matching_within_ulps", "db.functions.rank": "matching", "db.functions.read-files": "unmeasured", "db.functions.read-kafka": "not_translatable", @@ -6754,7 +7082,7 @@ "db.functions.sinh": "refused", "db.functions.size": "matching", "db.functions.skewness": "refused", - "db.functions.slashsign": "matching", + "db.functions.slashsign": "matching_within_ulps", "db.functions.slice": "matching", "db.functions.smallint": "matching", "db.functions.some": "matching", @@ -6865,10 +7193,10 @@ "db.functions.st-zmin": "not_translatable", "db.functions.stack": "matching", "db.functions.startswith": "matching", - "db.functions.std": "refused", - "db.functions.stddev": "refused", - "db.functions.stddev-pop": "refused", - "db.functions.stddev-samp": "refused", + "db.functions.std": "matching_within_ulps", + "db.functions.stddev": "matching_within_ulps", + "db.functions.stddev-pop": "matching_within_ulps", + "db.functions.stddev-samp": "matching_within_ulps", "db.functions.str-to-map": "matching", "db.functions.string": "matching", "db.functions.string-agg": "matching", @@ -7018,9 +7346,9 @@ "db.functions.user": "not_translatable", "db.functions.uuid": "not_translatable", "db.functions.validate-utf8": "matching", - "db.functions.var-pop": "refused", - "db.functions.var-samp": "refused", - "db.functions.variance": "refused", + "db.functions.var-pop": "matching", + "db.functions.var-samp": "matching_within_ulps", + "db.functions.variance": "matching_within_ulps", "db.functions.variant-explode": "refused", "db.functions.variant-explode-outer": "refused", "db.functions.variant-get": "refused", @@ -7062,14 +7390,14 @@ "db.query.select-column-list": "matching", "db.query.select-cte": "matching", "db.query.select-distributeby": "matching", - "db.query.select-groupby.group-by": "matching", + "db.query.select-groupby.group-by": "matching_within_ulps", "db.query.select-groupby.group-by-all": "matching", "db.query.select-groupby.group-by-rollup-cube": "matching", "db.query.select-groupby.hive-grouping-sets": "matching", "db.query.select-groupby.nested-grouping-sets": "matching", "db.query.select-groupby.subscript-dot": "matching", "db.query.select-having": "matching", - "db.query.select-hints": "matching", + "db.query.select-hints": "matching_within_ulps", "db.query.select-hints.join-hint-alias": "matching", "db.query.select-join": "matching", "db.query.select-lateral-view": "matching", @@ -7089,7 +7417,7 @@ "db.query.select-setops": "matching", "db.query.select-sortby": "matching", "db.query.select-table-reference": "matching", - "db.query.select-tvf": "matching", + "db.query.select-tvf": "matching_within_ulps", "db.query.select-unpivot": "matching", "db.query.select-values.select": "unmeasured", "db.query.select-values.values": "matching", @@ -10390,26 +10718,227 @@ "db.functions.startswith.t003": "met", "db.functions.startswith.t004": "met", "db.functions.startswith.t005": "met", - "db.functions.std.t001": "unmet", - "db.functions.std.t002": "unmet", - "db.functions.std.t003": "unmet", - "db.functions.std.t004": "unmet", - "db.functions.std.t005": "unmet", - "db.functions.stddev-pop.t001": "unmet", - "db.functions.stddev-pop.t002": "unmet", - "db.functions.stddev-pop.t003": "unmet", - "db.functions.stddev-pop.t004": "unmet", - "db.functions.stddev-pop.t005": "unmet", - "db.functions.stddev-samp.t001": "unmet", - "db.functions.stddev-samp.t002": "unmet", - "db.functions.stddev-samp.t003": "unmet", - "db.functions.stddev-samp.t004": "unmet", - "db.functions.stddev-samp.t005": "unmet", - "db.functions.stddev.t001": "unmet", - "db.functions.stddev.t002": "unmet", - "db.functions.stddev.t003": "unmet", - "db.functions.stddev.t004": "unmet", - "db.functions.stddev.t005": "unmet", + "db.functions.std.t001": "met", + "db.functions.std.t002": "met", + "db.functions.std.t003": "met", + "db.functions.std.t004": "met", + "db.functions.std.t005": "met", + "db.functions.std.t006": "met", + "db.functions.std.t007": "met", + "db.functions.stddev-pop.t001": "met", + "db.functions.stddev-pop.t002": "met", + "db.functions.stddev-pop.t003": "met", + "db.functions.stddev-pop.t004": "met", + "db.functions.stddev-pop.t005": "met", + "db.functions.stddev-pop.t006": "met", + "db.functions.stddev-pop.t007": "met", + "db.functions.stddev-pop.t008": "met", + "db.functions.stddev-pop.t009": "met", + "db.functions.stddev-pop.t010": "met", + "db.functions.stddev-pop.t011": "met", + "db.functions.stddev-pop.t012": "met", + "db.functions.stddev-pop.t013": "met", + "db.functions.stddev-pop.t014": "met", + "db.functions.stddev-pop.t015": "met", + "db.functions.stddev-pop.t016": "met", + "db.functions.stddev-pop.t017": "met", + "db.functions.stddev-pop.t018": "met", + "db.functions.stddev-pop.t019": "met", + "db.functions.stddev-pop.t020": "met", + "db.functions.stddev-pop.t021": "met", + "db.functions.stddev-pop.t022": "met", + "db.functions.stddev-pop.t023": "met", + "db.functions.stddev-pop.t024": "met", + "db.functions.stddev-pop.t025": "met", + "db.functions.stddev-pop.t026": "met", + "db.functions.stddev-pop.t027": "met", + "db.functions.stddev-pop.t028": "met", + "db.functions.stddev-pop.t029": "met", + "db.functions.stddev-pop.t030": "met", + "db.functions.stddev-pop.t031": "met", + "db.functions.stddev-pop.t032": "met", + "db.functions.stddev-pop.t033": "met", + "db.functions.stddev-pop.t034": "met", + "db.functions.stddev-pop.t035": "met", + "db.functions.stddev-pop.t036": "met", + "db.functions.stddev-pop.t037": "met", + "db.functions.stddev-pop.t038": "met", + "db.functions.stddev-pop.t039": "met", + "db.functions.stddev-pop.t040": "met", + "db.functions.stddev-pop.t041": "met", + "db.functions.stddev-pop.t042": "met", + "db.functions.stddev-pop.t043": "met", + "db.functions.stddev-pop.t044": "met", + "db.functions.stddev-pop.t045": "met", + "db.functions.stddev-pop.t046": "met", + "db.functions.stddev-pop.t047": "met", + "db.functions.stddev-pop.t048": "met", + "db.functions.stddev-pop.t049": "met", + "db.functions.stddev-pop.t050": "met", + "db.functions.stddev-pop.t051": "met", + "db.functions.stddev-pop.t052": "met", + "db.functions.stddev-pop.t053": "met", + "db.functions.stddev-pop.t054": "met", + "db.functions.stddev-pop.t055": "met", + "db.functions.stddev-pop.t056": "met", + "db.functions.stddev-pop.t057": "met", + "db.functions.stddev-pop.t058": "met", + "db.functions.stddev-pop.t059": "met", + "db.functions.stddev-pop.t060": "met", + "db.functions.stddev-pop.t061": "met", + "db.functions.stddev-pop.t062": "met", + "db.functions.stddev-pop.t063": "met", + "db.functions.stddev-pop.t064": "met", + "db.functions.stddev-pop.t065": "met", + "db.functions.stddev-pop.t066": "met", + "db.functions.stddev-pop.t067": "met", + "db.functions.stddev-pop.t068": "met", + "db.functions.stddev-pop.t069": "met", + "db.functions.stddev-pop.t070": "met", + "db.functions.stddev-pop.t071": "met", + "db.functions.stddev-pop.t072": "met", + "db.functions.stddev-pop.t073": "met", + "db.functions.stddev-pop.t074": "met", + "db.functions.stddev-pop.t075": "met", + "db.functions.stddev-pop.t076": "met", + "db.functions.stddev-pop.t077": "met", + "db.functions.stddev-pop.t078": "met", + "db.functions.stddev-pop.t079": "met", + "db.functions.stddev-pop.t080": "met", + "db.functions.stddev-pop.t081": "met", + "db.functions.stddev-pop.t082": "met", + "db.functions.stddev-pop.t083": "met", + "db.functions.stddev-pop.t084": "met", + "db.functions.stddev-pop.t085": "met", + "db.functions.stddev-pop.t086": "met", + "db.functions.stddev-pop.t087": "met", + "db.functions.stddev-pop.t088": "met", + "db.functions.stddev-pop.t089": "met", + "db.functions.stddev-pop.t090": "met", + "db.functions.stddev-pop.t091": "met", + "db.functions.stddev-pop.t092": "met", + "db.functions.stddev-pop.t093": "met", + "db.functions.stddev-pop.t094": "met", + "db.functions.stddev-pop.t095": "met", + "db.functions.stddev-pop.t096": "met", + "db.functions.stddev-pop.t097": "met", + "db.functions.stddev-pop.t098": "met", + "db.functions.stddev-pop.t099": "met", + "db.functions.stddev-pop.t100": "met", + "db.functions.stddev-pop.t101": "met", + "db.functions.stddev-pop.t102": "met", + "db.functions.stddev-pop.t103": "met", + "db.functions.stddev-pop.t104": "met", + "db.functions.stddev-pop.t105": "met", + "db.functions.stddev-pop.t106": "met", + "db.functions.stddev-pop.t107": "met", + "db.functions.stddev-pop.t108": "met", + "db.functions.stddev-pop.t109": "met", + "db.functions.stddev-pop.t110": "met", + "db.functions.stddev-pop.t111": "met", + "db.functions.stddev-pop.t112": "met", + "db.functions.stddev-pop.t113": "met", + "db.functions.stddev-samp.t001": "met", + "db.functions.stddev-samp.t002": "met", + "db.functions.stddev-samp.t003": "met", + "db.functions.stddev-samp.t004": "met", + "db.functions.stddev-samp.t005": "met", + "db.functions.stddev-samp.t006": "met", + "db.functions.stddev-samp.t007": "met", + "db.functions.stddev-samp.t008": "met", + "db.functions.stddev-samp.t009": "met", + "db.functions.stddev-samp.t010": "met", + "db.functions.stddev-samp.t011": "met", + "db.functions.stddev-samp.t012": "met", + "db.functions.stddev-samp.t013": "met", + "db.functions.stddev-samp.t014": "met", + "db.functions.stddev-samp.t015": "met", + "db.functions.stddev-samp.t016": "met", + "db.functions.stddev-samp.t017": "met", + "db.functions.stddev-samp.t018": "met", + "db.functions.stddev-samp.t019": "met", + "db.functions.stddev-samp.t020": "met", + "db.functions.stddev-samp.t021": "met", + "db.functions.stddev-samp.t022": "met", + "db.functions.stddev-samp.t023": "met", + "db.functions.stddev-samp.t024": "met", + "db.functions.stddev-samp.t025": "met", + "db.functions.stddev-samp.t026": "met", + "db.functions.stddev-samp.t027": "met", + "db.functions.stddev-samp.t028": "met", + "db.functions.stddev-samp.t029": "met", + "db.functions.stddev-samp.t030": "met", + "db.functions.stddev-samp.t031": "met", + "db.functions.stddev-samp.t032": "met", + "db.functions.stddev-samp.t033": "met", + "db.functions.stddev-samp.t034": "met", + "db.functions.stddev-samp.t035": "met", + "db.functions.stddev-samp.t036": "met", + "db.functions.stddev-samp.t037": "met", + "db.functions.stddev-samp.t038": "met", + "db.functions.stddev-samp.t039": "met", + "db.functions.stddev-samp.t040": "met", + "db.functions.stddev-samp.t041": "met", + "db.functions.stddev-samp.t042": "met", + "db.functions.stddev-samp.t043": "met", + "db.functions.stddev-samp.t044": "met", + "db.functions.stddev-samp.t045": "met", + "db.functions.stddev-samp.t046": "met", + "db.functions.stddev-samp.t047": "met", + "db.functions.stddev-samp.t048": "met", + "db.functions.stddev-samp.t049": "met", + "db.functions.stddev-samp.t050": "met", + "db.functions.stddev-samp.t051": "met", + "db.functions.stddev-samp.t052": "met", + "db.functions.stddev-samp.t053": "met", + "db.functions.stddev-samp.t054": "met", + "db.functions.stddev-samp.t055": "met", + "db.functions.stddev-samp.t056": "met", + "db.functions.stddev-samp.t057": "met", + "db.functions.stddev-samp.t058": "met", + "db.functions.stddev-samp.t059": "met", + "db.functions.stddev-samp.t060": "met", + "db.functions.stddev-samp.t061": "met", + "db.functions.stddev-samp.t062": "met", + "db.functions.stddev-samp.t063": "met", + "db.functions.stddev-samp.t064": "met", + "db.functions.stddev-samp.t065": "met", + "db.functions.stddev-samp.t066": "met", + "db.functions.stddev-samp.t067": "met", + "db.functions.stddev-samp.t068": "met", + "db.functions.stddev-samp.t069": "met", + "db.functions.stddev-samp.t070": "met", + "db.functions.stddev-samp.t071": "met", + "db.functions.stddev-samp.t072": "met", + "db.functions.stddev-samp.t073": "met", + "db.functions.stddev-samp.t074": "met", + "db.functions.stddev-samp.t075": "met", + "db.functions.stddev-samp.t076": "met", + "db.functions.stddev-samp.t077": "met", + "db.functions.stddev-samp.t078": "met", + "db.functions.stddev-samp.t079": "met", + "db.functions.stddev-samp.t080": "met", + "db.functions.stddev-samp.t081": "met", + "db.functions.stddev-samp.t082": "met", + "db.functions.stddev-samp.t083": "met", + "db.functions.stddev-samp.t084": "met", + "db.functions.stddev-samp.t085": "met", + "db.functions.stddev-samp.t086": "met", + "db.functions.stddev-samp.t087": "met", + "db.functions.stddev-samp.t088": "met", + "db.functions.stddev-samp.t089": "met", + "db.functions.stddev-samp.t090": "met", + "db.functions.stddev-samp.t091": "met", + "db.functions.stddev-samp.t092": "met", + "db.functions.stddev-samp.t093": "met", + "db.functions.stddev-samp.t094": "met", + "db.functions.stddev.t001": "met", + "db.functions.stddev.t002": "met", + "db.functions.stddev.t003": "met", + "db.functions.stddev.t004": "met", + "db.functions.stddev.t005": "met", + "db.functions.stddev.t006": "met", + "db.functions.stddev.t007": "met", "db.functions.str-to-map.t001": "met", "db.functions.str-to-map.t002": "met", "db.functions.str-to-map.t003": "met", @@ -11118,24 +11647,151 @@ "db.functions.validate-utf8.t001": "met", "db.functions.validate-utf8.t002": "met", "db.functions.validate-utf8.t003": "met", - "db.functions.var-pop.t001": "unmet", - "db.functions.var-pop.t002": "unmet", - "db.functions.var-pop.t003": "unmet", - "db.functions.var-pop.t004": "unmet", - "db.functions.var-pop.t005": "unmet", - "db.functions.var-samp.t001": "unmet", - "db.functions.var-samp.t002": "unmet", - "db.functions.var-samp.t003": "unmet", - "db.functions.var-samp.t004": "unmet", - "db.functions.var-samp.t005": "unmet", - "db.functions.var-samp.t006": "unmet", - "db.functions.var-samp.t007": "unmet", - "db.functions.var-samp.t008": "unmet", - "db.functions.variance.t001": "unmet", - "db.functions.variance.t002": "unmet", - "db.functions.variance.t003": "unmet", - "db.functions.variance.t004": "unmet", - "db.functions.variance.t005": "unmet", + "db.functions.var-pop.t001": "met", + "db.functions.var-pop.t002": "met", + "db.functions.var-pop.t003": "met", + "db.functions.var-pop.t004": "met", + "db.functions.var-pop.t005": "met", + "db.functions.var-pop.t006": "met", + "db.functions.var-pop.t007": "met", + "db.functions.var-pop.t008": "met", + "db.functions.var-pop.t009": "met", + "db.functions.var-pop.t010": "met", + "db.functions.var-pop.t011": "met", + "db.functions.var-pop.t012": "met", + "db.functions.var-pop.t013": "met", + "db.functions.var-pop.t014": "met", + "db.functions.var-pop.t015": "met", + "db.functions.var-pop.t016": "met", + "db.functions.var-pop.t017": "met", + "db.functions.var-pop.t018": "met", + "db.functions.var-pop.t019": "met", + "db.functions.var-pop.t020": "met", + "db.functions.var-pop.t021": "met", + "db.functions.var-samp.t001": "met", + "db.functions.var-samp.t002": "met", + "db.functions.var-samp.t003": "met", + "db.functions.var-samp.t004": "met", + "db.functions.var-samp.t005": "met", + "db.functions.var-samp.t006": "met", + "db.functions.var-samp.t007": "met", + "db.functions.var-samp.t008": "met", + "db.functions.var-samp.t009": "met", + "db.functions.var-samp.t010": "met", + "db.functions.var-samp.t011": "met", + "db.functions.var-samp.t012": "met", + "db.functions.var-samp.t013": "met", + "db.functions.var-samp.t014": "met", + "db.functions.var-samp.t015": "met", + "db.functions.var-samp.t016": "met", + "db.functions.var-samp.t017": "met", + "db.functions.var-samp.t018": "met", + "db.functions.var-samp.t019": "met", + "db.functions.var-samp.t020": "met", + "db.functions.var-samp.t021": "met", + "db.functions.var-samp.t022": "met", + "db.functions.var-samp.t023": "met", + "db.functions.var-samp.t024": "met", + "db.functions.var-samp.t025": "met", + "db.functions.var-samp.t026": "met", + "db.functions.var-samp.t027": "met", + "db.functions.var-samp.t028": "met", + "db.functions.var-samp.t029": "met", + "db.functions.var-samp.t030": "met", + "db.functions.var-samp.t031": "met", + "db.functions.var-samp.t032": "met", + "db.functions.var-samp.t033": "met", + "db.functions.var-samp.t034": "met", + "db.functions.var-samp.t035": "met", + "db.functions.var-samp.t036": "met", + "db.functions.var-samp.t037": "met", + "db.functions.var-samp.t038": "met", + "db.functions.var-samp.t039": "met", + "db.functions.var-samp.t040": "met", + "db.functions.var-samp.t041": "met", + "db.functions.var-samp.t042": "met", + "db.functions.var-samp.t043": "met", + "db.functions.var-samp.t044": "met", + "db.functions.var-samp.t045": "met", + "db.functions.var-samp.t046": "met", + "db.functions.var-samp.t047": "met", + "db.functions.var-samp.t048": "met", + "db.functions.var-samp.t049": "met", + "db.functions.var-samp.t050": "met", + "db.functions.var-samp.t051": "met", + "db.functions.var-samp.t052": "met", + "db.functions.var-samp.t053": "met", + "db.functions.var-samp.t054": "met", + "db.functions.var-samp.t055": "met", + "db.functions.var-samp.t056": "met", + "db.functions.var-samp.t057": "met", + "db.functions.var-samp.t058": "met", + "db.functions.var-samp.t059": "met", + "db.functions.var-samp.t060": "met", + "db.functions.var-samp.t061": "met", + "db.functions.var-samp.t062": "met", + "db.functions.var-samp.t063": "met", + "db.functions.var-samp.t064": "met", + "db.functions.var-samp.t065": "met", + "db.functions.var-samp.t066": "met", + "db.functions.var-samp.t067": "met", + "db.functions.var-samp.t068": "met", + "db.functions.var-samp.t069": "met", + "db.functions.var-samp.t070": "met", + "db.functions.var-samp.t071": "met", + "db.functions.var-samp.t072": "met", + "db.functions.var-samp.t073": "met", + "db.functions.var-samp.t074": "met", + "db.functions.var-samp.t075": "met", + "db.functions.var-samp.t076": "met", + "db.functions.var-samp.t077": "met", + "db.functions.var-samp.t078": "met", + "db.functions.var-samp.t079": "met", + "db.functions.var-samp.t080": "met", + "db.functions.var-samp.t081": "met", + "db.functions.var-samp.t082": "met", + "db.functions.var-samp.t083": "met", + "db.functions.var-samp.t084": "met", + "db.functions.var-samp.t085": "met", + "db.functions.var-samp.t086": "met", + "db.functions.var-samp.t087": "met", + "db.functions.var-samp.t088": "met", + "db.functions.var-samp.t089": "met", + "db.functions.var-samp.t090": "met", + "db.functions.var-samp.t091": "met", + "db.functions.var-samp.t092": "met", + "db.functions.var-samp.t093": "met", + "db.functions.var-samp.t094": "met", + "db.functions.var-samp.t095": "met", + "db.functions.var-samp.t096": "met", + "db.functions.var-samp.t097": "met", + "db.functions.var-samp.t098": "met", + "db.functions.var-samp.t099": "met", + "db.functions.var-samp.t100": "met", + "db.functions.var-samp.t101": "met", + "db.functions.var-samp.t102": "met", + "db.functions.var-samp.t103": "met", + "db.functions.var-samp.t104": "met", + "db.functions.var-samp.t105": "met", + "db.functions.var-samp.t106": "met", + "db.functions.var-samp.t107": "met", + "db.functions.var-samp.t108": "met", + "db.functions.var-samp.t109": "met", + "db.functions.var-samp.t110": "met", + "db.functions.var-samp.t111": "met", + "db.functions.var-samp.t112": "met", + "db.functions.var-samp.t113": "met", + "db.functions.var-samp.t114": "met", + "db.functions.var-samp.t115": "met", + "db.functions.var-samp.t116": "met", + "db.functions.var-samp.t117": "met", + "db.functions.variance.t001": "met", + "db.functions.variance.t002": "met", + "db.functions.variance.t003": "met", + "db.functions.variance.t004": "met", + "db.functions.variance.t005": "met", + "db.functions.variance.t006": "met", + "db.functions.variance.t007": "met", "db.functions.variant-explode-outer.t001": "unmet", "db.functions.variant-explode-outer.t002": "unmet", "db.functions.variant-explode-outer.t003": "unmet", diff --git a/crates/sqlbabel-compare/src/comparison/_helpers/rows.rs b/crates/sqlbabel-compare/src/comparison/_helpers/rows.rs index dada57c90..e7f37661b 100644 --- a/crates/sqlbabel-compare/src/comparison/_helpers/rows.rs +++ b/crates/sqlbabel-compare/src/comparison/_helpers/rows.rs @@ -11,7 +11,7 @@ pub(crate) struct RowRules { pub(crate) float32_ulps: u32, pub(crate) float64_ulps: u32, /// Wider 64-bit float limits for single columns, by position. - pub(crate) float64_column_ulps: BTreeMap, + pub(crate) float64_column_ulps: BTreeMap, pub(crate) ignore_zone_labels: bool, /// Columns holding VARIANT text, compared without the whitespace outside JSON strings. pub(crate) json_columns: Vec, @@ -124,7 +124,9 @@ fn values_match( let float64_ulps = rules .float64_column_ulps .get(&column) - .map_or(rules.float64_ulps, |limit| (*limit).max(rules.float64_ulps)); + .map_or(u64::from(rules.float64_ulps), |limit| { + (*limit).max(u64::from(rules.float64_ulps)) + }); match (expected, actual) { (CanonicalValue::Float32(left), CanonicalValue::Float32(right)) if rules.float32_ulps > 0 => @@ -135,7 +137,7 @@ fn values_match( (CanonicalValue::Float64(left), CanonicalValue::Float64(right)) if float64_ulps > 0 && comparable_by_ulps(*left, *right) => { - ulps_apart(ordered64(*left), ordered64(*right)) <= u64::from(float64_ulps) + ulps_apart(ordered64(*left), ordered64(*right)) <= float64_ulps } _ => expected == actual, } diff --git a/crates/sqlbabel-compare/src/comparison/tests/helpers.rs b/crates/sqlbabel-compare/src/comparison/tests/helpers.rs index 0ebfda969..73ccedb9b 100644 --- a/crates/sqlbabel-compare/src/comparison/tests/helpers.rs +++ b/crates/sqlbabel-compare/src/comparison/tests/helpers.rs @@ -139,7 +139,7 @@ pub(crate) fn replay_mismatch( pub(crate) fn column_replay_mismatch( recorded_columns: &[TestColumn], replayed_columns: &[TestColumn], - tolerated: &[(usize, u32)], + tolerated: &[(usize, u64)], ) -> Option { let mut comparator = comparator(0); comparator.float64_column_ulps = tolerated.iter().copied().collect(); diff --git a/crates/sqlbabel-compare/src/comparison/tests/test_compare_with_replay.rs b/crates/sqlbabel-compare/src/comparison/tests/test_compare_with_replay.rs index 9899f70a7..b313e5616 100644 --- a/crates/sqlbabel-compare/src/comparison/tests/test_compare_with_replay.rs +++ b/crates/sqlbabel-compare/src/comparison/tests/test_compare_with_replay.rs @@ -303,6 +303,18 @@ fn given_a_tolerance_for_one_column_when_comparing_then_every_other_float_column offsets: [2, 0], expected_mismatch: Some(MismatchKind::Value), }, + ColumnToleranceTestCase { + description: "a limit beyond 2^32 ulps passes a miss of exactly that many", + tolerated: &[(0, 5_000_000_000)], + offsets: [5_000_000_000, 0], + expected_mismatch: None, + }, + ColumnToleranceTestCase { + description: "a limit beyond 2^32 ulps fails a miss one unit past it", + tolerated: &[(0, 5_000_000_000)], + offsets: [5_000_000_001, 0], + expected_mismatch: Some(MismatchKind::Value), + }, ]; let values = [0.1_f64, 0.7_f64]; let recorded = || { diff --git a/crates/sqlbabel-compare/src/comparison/tests/test_types.rs b/crates/sqlbabel-compare/src/comparison/tests/test_types.rs index 269c19702..d38f6378d 100644 --- a/crates/sqlbabel-compare/src/comparison/tests/test_types.rs +++ b/crates/sqlbabel-compare/src/comparison/tests/test_types.rs @@ -21,7 +21,7 @@ pub(crate) struct ReplayTestCase { pub(crate) struct ColumnToleranceTestCase { pub(crate) description: &'static str, /// Result column positions with a wider 64-bit float limit, and the limit. - pub(crate) tolerated: &'static [(usize, u32)], + pub(crate) tolerated: &'static [(usize, u64)], /// How many units in the last place each of the two replayed columns is above its recording. pub(crate) offsets: [u64; 2], pub(crate) expected_mismatch: Option, diff --git a/crates/sqlbabel-convert/src/databricks/conversion/_helpers/functions/calls.rs b/crates/sqlbabel-convert/src/databricks/conversion/_helpers/functions/calls.rs index c070e6180..13a4f27f4 100644 --- a/crates/sqlbabel-convert/src/databricks/conversion/_helpers/functions/calls.rs +++ b/crates/sqlbabel-convert/src/databricks/conversion/_helpers/functions/calls.rs @@ -33,15 +33,15 @@ use crate::databricks::conversion::_helpers::support::typing::rejected_cast; use crate::databricks::conversion::constants::{ AGGREGATE_RULE, AGGREGATES, ARRAY_SORT_NAME, BITMAP_BITS, BITMAP_POSITION_ERROR, CASE_RULE, CAST_FUNCTIONS, CAST_RULE, COALESCE_NAME, COLLECT_ORDER, COLLECT_ORDER_ERROR, CONCAT_RULE, - COUNT_NAME, COUNTER_DIFF_NAME, DECODE_CHARSET_ARGUMENTS, DOUBLE_EXACT_DIGITS, + COUNT_NAME, COUNTER_DIFF_NAME, DECODE_CHARSET_ARGUMENTS, DEVIATIONS, DOUBLE_EXACT_DIGITS, DOUBLE_EXACT_INTEGERS, EXACT_FRACTION_STEPS, FLOAT_ELEMENTS, IDENTIFIER_NAME, IN_LIST_RULE, INEXACT_SUM_ERROR, LAMBDA_ELEMENT, LAMBDA_FUNCTIONS, LAMBDA_INDEX, LAMBDA_TOTAL, MAX_DECIMAL_PRECISION, MEDIAN_ZERO_ERROR, MIN_IN_ARGUMENTS, MIN_LIST_ARGUMENTS, MODE_TIES, - MODE_TIES_ERROR, MOMENT_ORDER, NANOS_TIMESTAMP_ERROR, ORDER_FREE_READERS, ORDERED_PICKS, - ORDERING_FUNCTIONS, PERCENTILE_NAME, PICK_COUNT_EMPTY_ERROR, PICK_ORDER, PICK_ORDER_ERROR, - PICK_TIES, PICK_TIES_ERROR, RANGE_NAME, SAME_FUNCTION_RULE, SAME_FUNCTIONS, - STRING_AGG_FUNCTION, TIME_DIFF_NAME, UNIT_ARGUMENTS, UNIT_FUNCTIONS, UNWINDOWED_COUNTER_ERROR, - WHOLE_AGGREGATES, WITHIN_GROUP_KIND, + MODE_TIES_ERROR, MOMENT_ORDER, MOMENT_SPREAD, NANOS_TIMESTAMP_ERROR, ORDER_FREE_READERS, + ORDERED_PICKS, ORDERING_FUNCTIONS, PERCENTILE_NAME, PICK_COUNT_EMPTY_ERROR, PICK_ORDER, + PICK_ORDER_ERROR, PICK_TIES, PICK_TIES_ERROR, RANGE_NAME, SAME_FUNCTION_RULE, SAME_FUNCTIONS, + SAMPLE_MOMENTS, STRING_AGG_FUNCTION, TIME_DIFF_NAME, UNIT_ARGUMENTS, UNIT_FUNCTIONS, + UNWINDOWED_COUNTER_ERROR, WHOLE_AGGREGATES, WITHIN_GROUP_KIND, }; use crate::databricks::conversion::models::{DatabricksType, Element, Emitted, Literal, Signature}; @@ -426,7 +426,8 @@ pub(crate) fn aggregate(call: &Aggregate<'_>, site: Site<'_>) -> Result value, }; let value = match name { - "SUM" | "TRY_SUM" | "MEDIAN" | "AVG" | "MEAN" | "TRY_AVG" | "VAR_POP" => { + "SUM" | "TRY_SUM" | "MEDIAN" | "AVG" | "MEAN" | "TRY_AVG" | "VAR_POP" | "VAR_SAMP" + | "VARIANCE" | "STDDEV_SAMP" | "STDDEV" | "STD" | "STDDEV_POP" => { as_number(value, DatabricksType::Double) } _ => value, @@ -571,18 +572,27 @@ pub(crate) fn aggregate(call: &Aggregate<'_>, site: Site<'_>) -> Result { Some(bitmap_aggregate(function, &value.sql)) } - ("VAR_POP", data_type) - if !distinct - && over.is_none() - && match data_type { - T::Decimal { precision, .. } => usize::from(precision) <= DOUBLE_EXACT_DIGITS, - data_type => { - data_type.is_integral() || matches!(data_type, T::Double | T::Float) - } - } => + ( + "VAR_POP" | "VAR_SAMP" | "VARIANCE" | "STDDEV_SAMP" | "STDDEV" | "STD" | "STDDEV_POP", + data_type, + ) if !distinct + && over.is_none() + && match data_type { + T::Decimal { precision, .. } => usize::from(precision) <= DOUBLE_EXACT_DIGITS, + data_type => data_type.is_integral() || matches!(data_type, T::Double | T::Float), + } => { - site.log.divergence(MOMENT_ORDER, "fn:VAR_POP"); - Some(var_pop(&as_type(&value, T::Double))) + let x = as_type(&value, T::Double); + match name { + "VAR_POP" => { + site.log.divergence(MOMENT_ORDER, "fn:VAR_POP"); + Some(var_pop(&x)) + } + _ => { + site.log.divergence(MOMENT_SPREAD, &format!("fn:{name}")); + Some(two_pass_moment(name, &x)) + } + } } ("BITMAP_CONSTRUCT_AGG", data_type) if data_type.is_integral() && over.is_none() && !distinct => @@ -624,6 +634,30 @@ fn var_pop(x: &str) -> Emitted { ) } +/// VAR_SAMP, STDDEV_SAMP, STDDEV_POP or an alias of the DOUBLE `x`, in two passes over the rows. +fn two_pass_moment(name: &str, x: &str) -> Emitted { + let (rows, mean, e) = (LAMBDA_INDEX, LAMBDA_TOTAL, LAMBDA_ELEMENT); + let (fewest, divisor) = match SAMPLE_MOMENTS.contains(&name) { + true => (1, format!("(len({rows}) - 1)")), + false => (0, format!("len({rows})")), + }; + let variance = format!( + "list_sum(list_transform({rows}, lambda {e}: ({e} - {mean}) * ({e} - {mean}))) / {divisor}" + ); + let result = match DEVIATIONS.contains(&name) { + true => format!("sqrt({variance})"), + false => variance, + }; + typed( + format!( + "list_transform([list({x}) FILTER (WHERE {x} IS NOT NULL)], lambda {rows}: \ + list_transform([list_avg({rows})], lambda {mean}: \ + CASE WHEN len({rows}) > {fewest} THEN {result} END)[1])[1]" + ), + DatabricksType::Double, + ) +} + /// `BITMAP_OR_AGG` or `BITMAP_AND_AGG` as DuckDB's `bit_or` or `bit_and` of each BINARY zero-padded or cut to 32768 bits, NULLs skipped; all zero bits, or all one bits for AND, when none remain. fn bitmap_aggregate(function: &str, x: &str) -> Emitted { let none = match function { diff --git a/crates/sqlbabel-convert/src/databricks/conversion/constants.rs b/crates/sqlbabel-convert/src/databricks/conversion/constants.rs index d2be432a0..17ffac063 100644 --- a/crates/sqlbabel-convert/src/databricks/conversion/constants.rs +++ b/crates/sqlbabel-convert/src/databricks/conversion/constants.rs @@ -260,6 +260,12 @@ pub const WHOLE_AGGREGATES: &[&str] = &[ "COLLECT_LIST", "ARRAY_AGG", "VAR_POP", + "VAR_SAMP", + "VARIANCE", + "STDDEV_SAMP", + "STDDEV", + "STD", + "STDDEV_POP", ]; /// The divergence of COLLECT_LIST and ARRAY_AGG, whose element order neither engine defines. pub const COLLECT_ORDER: &str = "collect_list_order"; @@ -1306,9 +1312,21 @@ pub const AGGREGATES: &[(&str, &str)] = &[ ("BITMAP_AND_AGG", "bit_and"), ("BITMAP_CONSTRUCT_AGG", "bitstring_agg"), ("VAR_POP", "var_pop"), + ("VAR_SAMP", "var_samp"), + ("VARIANCE", "var_samp"), + ("STDDEV_SAMP", "stddev_samp"), + ("STDDEV", "stddev_samp"), + ("STD", "stddev_samp"), + ("STDDEV_POP", "stddev_pop"), ]; /// The divergence of VAR_POP, whose result depends on the order rows arrive, as in Databricks. pub const MOMENT_ORDER: &str = "central_moment_order"; +/// The divergence of the two-pass VAR_SAMP, STDDEV_SAMP, STDDEV_POP and their aliases. +pub const MOMENT_SPREAD: &str = "moment_spread"; +/// The sample moments, dividing by one less than the count: VAR_SAMP, STDDEV_SAMP and aliases. +pub const SAMPLE_MOMENTS: &[&str] = &["VAR_SAMP", "VARIANCE", "STDDEV_SAMP", "STDDEV", "STD"]; +/// The moments whose result is a standard deviation, the square root of the variance. +pub const DEVIATIONS: &[&str] = &["STDDEV_SAMP", "STDDEV", "STD", "STDDEV_POP"]; /// The functions named after a type, which cast their one argument to it. pub const CAST_FUNCTIONS: &[(&str, DatabricksType)] = &[ diff --git a/crates/sqlbabel-convert/src/databricks/conversion/tests/test_aggregates.rs b/crates/sqlbabel-convert/src/databricks/conversion/tests/test_aggregates.rs index 46a36ca9f..ff0c906fc 100644 --- a/crates/sqlbabel-convert/src/databricks/conversion/tests/test_aggregates.rs +++ b/crates/sqlbabel-convert/src/databricks/conversion/tests/test_aggregates.rs @@ -47,6 +47,34 @@ fn given_an_order_dependent_aggregate_when_converted_then_duckdb_orders_or_raise ], expected_types: &[DatabricksType::Double], }, + ConvertTestCase { + description: "VAR_SAMP sums squared deviations from the mean and divides by one less than the count", + query: "SELECT var_samp(x1) AS v FROM input", + expected_sql: &[ + "list_transform([list(CAST(\"x1\" AS DOUBLE)) FILTER (WHERE CAST(\"x1\" AS DOUBLE) IS NOT NULL)], lambda slot: \ + list_transform([list_avg(slot)], lambda total: CASE WHEN len(slot) > 1 THEN \ + list_sum(list_transform(slot, lambda element: (element - total) * (element - total))) / (len(slot) - 1) END)[1])[1] AS \"v\"", + ], + expected_types: &[DatabricksType::Double], + }, + ConvertTestCase { + description: "STD, an alias of STDDEV_SAMP, takes the square root of the sample variance", + query: "SELECT std(x1) AS v FROM input", + expected_sql: &[ + "CASE WHEN len(slot) > 1 THEN sqrt(list_sum(", + ") / (len(slot) - 1)) END", + ], + expected_types: &[DatabricksType::Double], + }, + ConvertTestCase { + description: "STDDEV_POP divides by the count and is 0 over one row", + query: "SELECT stddev_pop(x1) AS v FROM input", + expected_sql: &[ + "CASE WHEN len(slot) > 0 THEN sqrt(list_sum(", + ") / len(slot)) END", + ], + expected_types: &[DatabricksType::Double], + }, ]; for test_case in test_cases { let converted = analyze(&format!("{FIXTURE}{}", test_case.query)) @@ -92,9 +120,14 @@ fn given_an_order_dependent_aggregate_no_rule_orders_when_converted_then_it_is_r expected_reason: "as a window function", }, RefuseTestCase { - description: "VAR_SAMP, which Databricks computes otherwise than the row-by-row update when alone", - query: "SELECT var_samp(x1) AS r FROM input", - expected_reason: "VAR_SAMP", + description: "STDDEV with DISTINCT, whose two passes over distinct values no recording shows", + query: "SELECT stddev(DISTINCT x1) AS r FROM input", + expected_reason: "no rule converts STDDEV of INT with DISTINCT", + }, + RefuseTestCase { + description: "VARIANCE over a window, which no rule converts", + query: "SELECT variance(x1) OVER (ORDER BY ordinal) AS r FROM input", + expected_reason: "as a window function", }, ]; for test_case in test_cases { diff --git a/crates/sqlbabel-convert/src/databricks/conversion/tests/test_convert.rs b/crates/sqlbabel-convert/src/databricks/conversion/tests/test_convert.rs index d0aff9c44..2eaa78a57 100644 --- a/crates/sqlbabel-convert/src/databricks/conversion/tests/test_convert.rs +++ b/crates/sqlbabel-convert/src/databricks/conversion/tests/test_convert.rs @@ -1757,6 +1757,11 @@ fn given_a_function_with_a_known_difference_when_converted_then_it_relies_on_tha query: "SELECT var_pop(x1) AS a FROM input", expected_divergences: &["central_moment_order"], }, + DivergenceTestCase { + description: "VAR_SAMP, STDDEV_SAMP, STDDEV_POP and their aliases share the divergence on Databricks's spread", + query: "SELECT var_samp(x1) AS a, variance(x1) AS b, stddev_samp(x1) AS c, stddev(x1) AS d, std(x1) AS e, stddev_pop(x1) AS f FROM input", + expected_divergences: &["moment_spread"], + }, DivergenceTestCase { description: "URL_DECODE and TRY_URL_DECODE share one divergence", query: "SELECT url_decode(s) AS a, try_url_decode(s) AS b FROM input", diff --git a/crates/sqlbabel-evidence/src/cases/_helpers/loading.rs b/crates/sqlbabel-evidence/src/cases/_helpers/loading.rs index 2edeb1303..03867d561 100644 --- a/crates/sqlbabel-evidence/src/cases/_helpers/loading.rs +++ b/crates/sqlbabel-evidence/src/cases/_helpers/loading.rs @@ -54,6 +54,17 @@ pub(crate) fn load_file( { problems.push(format!("{relative}#{}: unknown divergence `{id}`", case.id)); } + if let Some(family) = &case.family + && !policy + .divergences + .values() + .any(|divergence| divergence.float64_family_ulps.contains_key(family)) + { + problems.push(format!( + "{relative}#{}: no divergence declares a float limit for the family `{family}`", + case.id + )); + } } problems.extend( file.cases @@ -185,6 +196,7 @@ fn expand( hash, role: CaseRole::Conversion, expected_divergence: case.expected_divergence.clone(), + family: case.family.clone(), values, compile_error: case.compile_error, expected_error: case.tags.iter().any(|tag| tag == ERROR_TAG), diff --git a/crates/sqlbabel-evidence/src/cases/models.rs b/crates/sqlbabel-evidence/src/cases/models.rs index 5bce29035..827b355c4 100644 --- a/crates/sqlbabel-evidence/src/cases/models.rs +++ b/crates/sqlbabel-evidence/src/cases/models.rs @@ -62,6 +62,9 @@ pub struct CaseDefinition { /// A policy divergence the case demonstrates: Snowflake returns rows, DuckDB raises; never hashed. #[serde(default)] pub expected_divergence: Option, + /// The data family naming a divergence's float limit for the case; never hashed. None is exact. + #[serde(default)] + pub family: Option, /// What the case is evidence for, overriding its file's `evidence`. #[serde(default)] pub evidence: Option, @@ -285,6 +288,8 @@ pub struct LoadedCase { pub role: CaseRole, /// The policy divergence the case demonstrates, if any. pub expected_divergence: Option, + /// The family of data its rows belong to, which picks a divergence's per-family float limit. + pub family: Option, /// Whether the recording keeps the result's values, not only its column types and row count. pub values: bool, /// Whether Snowflake is expected to refuse to compile the SQL. diff --git a/crates/sqlbabel-evidence/src/cases/tests/test_load_cases.rs b/crates/sqlbabel-evidence/src/cases/tests/test_load_cases.rs index d9ae76088..2e3bb1378 100644 --- a/crates/sqlbabel-evidence/src/cases/tests/test_load_cases.rs +++ b/crates/sqlbabel-evidence/src/cases/tests/test_load_cases.rs @@ -28,6 +28,14 @@ fn given_case_file_when_loading_then_format_and_policy_rules_are_enforced() { with: "tags = [\"null\"]", expected_problem: Some("category `string` requires inputs no case covers: empty"), }, + LoadTestCase { + description: "a family no divergence gives a float limit is rejected", + replace: "tags = [\"null\", \"empty\"]", + with: "tags = [\"null\", \"empty\"]\nfamily = \"small-integers\"", + expected_problem: Some( + "no divergence declares a float limit for the family `small-integers`", + ), + }, LoadTestCase { description: "an unknown category is rejected", replace: "category = \"string\"", diff --git a/crates/sqlbabel-evidence/src/coverage/tests/helpers.rs b/crates/sqlbabel-evidence/src/coverage/tests/helpers.rs index 709de7d0b..bfa890a70 100644 --- a/crates/sqlbabel-evidence/src/coverage/tests/helpers.rs +++ b/crates/sqlbabel-evidence/src/coverage/tests/helpers.rs @@ -28,6 +28,7 @@ fn case(inputs: &[(&str, &[&str])]) -> LoadedCase { hash: String::new(), role: CaseRole::Conversion, expected_divergence: None, + family: None, values: true, compile_error: false, expected_error: false, diff --git a/crates/sqlbabel-evidence/src/verify/_helpers/judge.rs b/crates/sqlbabel-evidence/src/verify/_helpers/judge.rs index 285a8f46e..15e287170 100644 --- a/crates/sqlbabel-evidence/src/verify/_helpers/judge.rs +++ b/crates/sqlbabel-evidence/src/verify/_helpers/judge.rs @@ -345,7 +345,7 @@ fn judge_converted( (python.as_deref(), &settings), ); let duckdb_error = replayed.as_ref().err().cloned(); - let comparator = relied_comparator(policy, &provenance); + let comparator = relied_comparator(policy, &provenance, case.family.as_deref()); let verdict = match &case.expected_divergence { Some(divergence) => divergence_verdict( case, @@ -393,38 +393,54 @@ fn judge_converted( (verdict, Some(provenance), error_check) } -/// Each result column's 64-bit float limit wider than the policy's, from its own divergences. -fn relied_column_ulps(policy: &Policy, provenance: &Provenance) -> BTreeMap { - let mut limits: BTreeMap = BTreeMap::new(); +/// Each result column's 64-bit float limit wider than the policy's, from its divergences for `family`. +fn relied_column_ulps( + policy: &Policy, + provenance: &Provenance, + family: Option<&str>, +) -> BTreeMap { + let mut limits: BTreeMap = BTreeMap::new(); for (id, columns) in &provenance.column_divergences { let Some(divergence) = policy.divergences.get(id) else { continue; }; - if divergence.float64_ulps <= policy.comparator.float_ulps.float64 { + let allowed = match divergence.float64_family_ulps.is_empty() { + true => u64::from(divergence.float64_ulps), + false => family + .and_then(|family| divergence.float64_family_ulps.get(family)) + .copied() + .unwrap_or(0), + }; + if allowed <= u64::from(policy.comparator.float_ulps.float64) { continue; } for column in columns { let limit = limits.entry(*column).or_default(); - *limit = (*limit).max(divergence.float64_ulps); + *limit = (*limit).max(allowed); } } limits } -/// The most units in the last place any result column may differ by, beyond the policy's limit. -pub(crate) fn relied_float64_ulps(policy: &Policy, provenance: &Provenance) -> u32 { - relied_column_ulps(policy, provenance) +/// The most units in the last place any result column of `case` may differ by, beyond the policy's limit. +pub(crate) fn relied_float64_ulps( + policy: &Policy, + provenance: &Provenance, + case: &LoadedCase, +) -> u64 { + relied_column_ulps(policy, provenance, case.family.as_deref()) .into_values() .max() .unwrap_or(0) } -/// The policy's comparator, widening 64-bit floats only in columns whose own divergences allow it. +/// The policy's comparator, widening 64-bit floats only where a column's divergences allow it. pub(crate) fn relied_comparator<'policy>( policy: &'policy Policy, provenance: &Provenance, + family: Option<&str>, ) -> Cow<'policy, ComparatorPolicy> { - let limits = relied_column_ulps(policy, provenance); + let limits = relied_column_ulps(policy, provenance, family); if limits.is_empty() { return Cow::Borrowed(&policy.comparator); } @@ -841,7 +857,7 @@ fn replayed_judgement( Ok(replay) => replay, Err(error) => return failed(format!("DuckDB failed: {error}"), provenance), }; - let comparator = relied_comparator(policy, &provenance); + let comparator = relied_comparator(policy, &provenance, case.family.as_deref()); let mut checked = None; for (index, (recorded, replayed)) in loaded .receipt diff --git a/crates/sqlbabel-evidence/src/verify/main/verify_cases.rs b/crates/sqlbabel-evidence/src/verify/main/verify_cases.rs index ebaff083c..4bf2f07b9 100644 --- a/crates/sqlbabel-evidence/src/verify/main/verify_cases.rs +++ b/crates/sqlbabel-evidence/src/verify/main/verify_cases.rs @@ -1,6 +1,6 @@ //! `verify_cases`: every case's verdict against its recorded result, and every claim's support. -use std::collections::BTreeSet; +use std::collections::{BTreeMap, BTreeSet}; use std::path::Path; use rayon::iter::{IntoParallelRefIterator, ParallelIterator}; @@ -72,15 +72,59 @@ pub fn verify_cases(inputs: VerifyInputs<'_>) -> Result Vec { + let family_of: BTreeMap<&str, &str> = cases + .iter() + .filter_map(|case| Some((case.reference.as_str(), case.family.as_deref()?))) + .collect(); + let mut exercised: BTreeSet<(&str, &str)> = BTreeSet::new(); + for verdict in verdicts { + let (Verdict::Passed, Some(family), Some(provenance)) = ( + &verdict.verdict, + family_of.get(verdict.reference.as_str()), + verdict.provenance.as_ref(), + ) else { + continue; + }; + for id in provenance.column_divergences.keys() { + exercised.insert((id.as_str(), *family)); + } + } + let named: BTreeSet<&str> = family_of.values().copied().collect(); + let mut unexercised: Vec = Vec::new(); + for (id, divergence) in &policy.divergences { + let families = &divergence.float64_family_ulps; + if !families + .keys() + .any(|family| named.contains(family.as_str())) + { + continue; + } + for family in families.keys() { + if !exercised.contains(&(id.as_str(), family.as_str())) { + unexercised.push(format!("{id}/{family}")); + } + } + } + unexercised +} + /// One case's verdict with Snowflake's message, whether its result's session is unproven, and what it shows of its claimed types. fn judged_case( case: &LoadedCase, @@ -101,7 +145,7 @@ fn judged_case( }; let float64_ulps = match (&verdict, &provenance) { (Verdict::Passed, Some(provenance)) => { - Some(relied_float64_ulps(policy, provenance)).filter(|ulps| *ulps > 0) + Some(relied_float64_ulps(policy, provenance, case)).filter(|ulps| *ulps > 0) } _ => None, }; diff --git a/crates/sqlbabel-evidence/src/verify/models.rs b/crates/sqlbabel-evidence/src/verify/models.rs index cc8025194..51769adde 100644 --- a/crates/sqlbabel-evidence/src/verify/models.rs +++ b/crates/sqlbabel-evidence/src/verify/models.rs @@ -128,7 +128,7 @@ pub struct CaseVerdict { pub snowflake_message: Option, /// For a passed case relying on a divergence that lets floats differ, by how many units in the last place. #[serde(skip_serializing_if = "Option::is_none")] - pub float64_ulps: Option, + pub float64_ulps: Option, /// The Arrow SHA-256 of the microsecond re-recording judged in place of the stored rows, if any. #[serde(skip_serializing_if = "Option::is_none")] pub microsecond_receipt: Option, @@ -274,6 +274,8 @@ pub struct VerifyReport { pub unreferenced_results: Vec, /// Results recorded before pinning while no account defaults are recorded to vouch for them. pub unproven_sessions: usize, + /// Per-family float limits, as `divergence/family`, that no passed case of that family relies on. + pub unexercised_families: Vec, } /// How a replay compares with a recording under the strict comparator. diff --git a/crates/sqlbabel-evidence/src/verify/tests/helpers.rs b/crates/sqlbabel-evidence/src/verify/tests/helpers.rs index 366b76302..fbc7ddb66 100644 --- a/crates/sqlbabel-evidence/src/verify/tests/helpers.rs +++ b/crates/sqlbabel-evidence/src/verify/tests/helpers.rs @@ -1,4 +1,4 @@ -use std::collections::BTreeMap; +use std::collections::{BTreeMap, BTreeSet}; use std::fs::File; use std::path::Path; use std::sync::Arc; @@ -8,6 +8,7 @@ use arrow::datatypes::{DataType, Field, Schema}; use arrow::ipc::writer::FileWriter; use sqlbabel_compare::values::models::ResultSet; use sqlbabel_diagnostics::failures::models::{ErrorKind, FailureMode}; +use sqlbabel_diagnostics::provenance::models::Provenance; use sqlbabel_policy::policy::main::evidence_policy::evidence_policy; use sqlbabel_policy::policy::main::load_policy::load_policy; use sqlbabel_policy::policy::models::{EvidenceDialect, Policy}; @@ -27,10 +28,12 @@ use crate::results::models::{ }; use crate::verify::_helpers::compile_errors::rejected_at_compile_time; use crate::verify::_helpers::compile_errors::undeclared_compile_error; +use crate::verify::_helpers::judge::relied_comparator; use crate::verify::main::verify_cases::verify_cases; use crate::verify::models::{EffectConversion, VerifyInputs}; use crate::verify::tests::test_types::{ - ReceiptTampering, RoundTrip, Tampering, UnchangedEffectsForTests, UnchangedSqlForTests, + FloatToleranceTestCase, ReceiptTampering, RoundTrip, Tampering, UnchangedEffectsForTests, + UnchangedSqlForTests, }; use crate::verify::types::{CaseConverter, FailureModes}; use sqlbabel_compare::comparison::models::RowOrder; @@ -495,6 +498,7 @@ pub(crate) fn compile_error_judgement_for( hash: String::new(), role: CaseRole::Conversion, expected_divergence: None, + family: None, values: true, compile_error: declared, expected_error: false, @@ -954,3 +958,34 @@ pub(crate) fn effect_round_trip( }) .collect() } + +/// The Databricks policy's widened 64-bit float columns and its float64 and float32 limits for `test_case`. +pub(crate) fn relied_float_limits( + test_case: &FloatToleranceTestCase, +) -> (BTreeMap, u32, u32) { + let path = + Path::new(env!("CARGO_MANIFEST_DIR")).join("../sqlbabel-policy/policy-databricks.toml"); + let policy = load_policy(&path).expect("the Databricks policy loads"); + let divergences: BTreeMap> = test_case + .relied + .iter() + .map(|(id, _)| ((*id).to_owned(), BTreeSet::new())) + .collect(); + let column_divergences: BTreeMap> = test_case + .relied + .iter() + .filter(|(_, columns)| !columns.is_empty()) + .map(|(id, columns)| ((*id).to_owned(), columns.iter().copied().collect())) + .collect(); + let provenance = Provenance { + divergences, + column_divergences, + ..Provenance::default() + }; + let comparator = relied_comparator(&policy, &provenance, test_case.family); + ( + comparator.float64_column_ulps.clone(), + comparator.float_ulps.float64, + comparator.float_ulps.float32, + ) +} diff --git a/crates/sqlbabel-evidence/src/verify/tests/test_float_tolerance.rs b/crates/sqlbabel-evidence/src/verify/tests/test_float_tolerance.rs index 833aad9fc..9786526d7 100644 --- a/crates/sqlbabel-evidence/src/verify/tests/test_float_tolerance.rs +++ b/crates/sqlbabel-evidence/src/verify/tests/test_float_tolerance.rs @@ -1,9 +1,6 @@ -use std::collections::{BTreeMap, BTreeSet}; +use std::collections::BTreeMap; -use sqlbabel_diagnostics::provenance::models::Provenance; -use sqlbabel_policy::policy::main::load_policy::load_policy; - -use crate::verify::_helpers::judge::relied_comparator; +use crate::verify::tests::helpers::relied_float_limits; use crate::verify::tests::test_types::FloatToleranceTestCase; #[test] @@ -13,62 +10,102 @@ fn given_the_databricks_policy_when_a_conversion_relies_on_a_last_place_divergen FloatToleranceTestCase { description: "no divergence keeps floats exact", relied: &[], + family: None, expected_column_ulps: &[], }, FloatToleranceTestCase { description: "a last-place divergence allows one unit in its own column only", relied: &[("sin_last_place", &[1])], + family: None, expected_column_ulps: &[(1, 1)], }, FloatToleranceTestCase { description: "two last-place divergences in one column still allow one unit", relied: &[("pow_last_place", &[0]), ("ln_last_place", &[0])], + family: None, expected_column_ulps: &[(0, 1)], }, FloatToleranceTestCase { description: "a divergence relied on outside every result column widens nothing", relied: &[("sin_last_place", &[])], + family: None, expected_column_ulps: &[], }, FloatToleranceTestCase { description: "an id the policy does not declare widens nothing", relied: &[("tan_last_place", &[0])], + family: None, expected_column_ulps: &[], }, ]; - let path = std::path::Path::new(env!("CARGO_MANIFEST_DIR")) - .join("../sqlbabel-policy/policy-databricks.toml"); - let policy = load_policy(&path).expect("the Databricks policy loads"); - for test_case in test_cases { - let divergences: BTreeMap> = test_case - .relied - .iter() - .map(|(id, _)| ((*id).to_owned(), BTreeSet::new())) - .collect(); - let column_divergences: BTreeMap> = test_case - .relied - .iter() - .filter(|(_, columns)| !columns.is_empty()) - .map(|(id, columns)| ((*id).to_owned(), columns.iter().copied().collect())) - .collect(); - let provenance = Provenance { - divergences, - column_divergences, - ..Provenance::default() - }; - let comparator = relied_comparator(&policy, &provenance); + for test_case in &test_cases { assert_eq!( + relied_float_limits(test_case), ( - comparator.float64_column_ulps.clone(), - comparator.float_ulps.float64, - comparator.float_ulps.float32 + test_case + .expected_column_ulps + .iter() + .copied() + .collect::>(), + 0, + 0 ), + "{}", + test_case.description + ); + } +} + +#[test] +fn given_the_databricks_policy_when_a_case_relies_on_a_per_family_divergence_then_only_its_own_familys_limit_applies() + { + let test_cases = [ + FloatToleranceTestCase { + description: "three small integers allow their own one unit", + relied: &[("moment_spread", &[0])], + family: Some("small-integers"), + expected_column_ulps: &[(0, 1)], + }, + FloatToleranceTestCase { + description: "six values sharing a large mean allow their own recorded spread", + relied: &[("moment_spread", &[0])], + family: Some("large-mean-six-rows"), + expected_column_ulps: &[(0, 376_525_814)], + }, + FloatToleranceTestCase { + description: "more than 4,096 rows allow a limit beyond 2^32 units", + relied: &[("moment_spread", &[1])], + family: Some("many-rows"), + expected_column_ulps: &[(1, 124_099_191_718)], + }, + FloatToleranceTestCase { + description: "a case of no family compares exactly", + relied: &[("moment_spread", &[0])], + family: None, + expected_column_ulps: &[], + }, + FloatToleranceTestCase { + description: "a family the divergence does not declare compares exactly", + relied: &[("moment_spread", &[0])], + family: Some("orders"), + expected_column_ulps: &[], + }, + FloatToleranceTestCase { + description: "a family never widens a divergence without per-family limits", + relied: &[("sin_last_place", &[0])], + family: Some("many-rows"), + expected_column_ulps: &[(0, 1)], + }, + ]; + for test_case in &test_cases { + assert_eq!( + relied_float_limits(test_case), ( test_case .expected_column_ulps .iter() .copied() - .collect::>(), + .collect::>(), 0, 0 ), diff --git a/crates/sqlbabel-evidence/src/verify/tests/test_types.rs b/crates/sqlbabel-evidence/src/verify/tests/test_types.rs index 30ce8debc..6e3d2dd0f 100644 --- a/crates/sqlbabel-evidence/src/verify/tests/test_types.rs +++ b/crates/sqlbabel-evidence/src/verify/tests/test_types.rs @@ -112,8 +112,10 @@ pub(crate) struct FloatToleranceTestCase { pub(crate) description: &'static str, /// Divergences relied on, each with the result columns whose own expression relied on it. pub(crate) relied: &'static [(&'static str, &'static [usize])], + /// The family of data the case's rows belong to, if any. + pub(crate) family: Option<&'static str>, /// The wider 64-bit float limit of each result column, by position. - pub(crate) expected_column_ulps: &'static [(usize, u32)], + pub(crate) expected_column_ulps: &'static [(usize, u64)], } /// Test-only converter: an effect case's setup and statements unchanged and each table probe as its rows sorted; `dropping` runs a statement that changes nothing in place of each one. diff --git a/crates/sqlbabel-policy/policy-databricks.toml b/crates/sqlbabel-policy/policy-databricks.toml index 37c3b376c..1e3d1c278 100644 --- a/crates/sqlbabel-policy/policy-databricks.toml +++ b/crates/sqlbabel-policy/policy-databricks.toml @@ -316,8 +316,8 @@ reason = "LN (line 783, case class Log) and one-argument LOG (line 1666, case cl # 313,174,710 for four. Merged partial states gave Databricks further values within that spread. The # divergence is bounded by that recorded spread, not by a number of units, so there is no ulp # tolerance: every recorded case fixes its row order and must match exactly. VAR_SAMP, STDDEV_SAMP, -# STDDEV_POP and their aliases are not converted: alone in an aggregation Databricks computes them -# otherwise, so the recordings of the same rows differ from the update. +# STDDEV_POP and their aliases rely on moment_spread instead: alone in an aggregation Databricks +# computes them otherwise, so the recordings of the same rows differ from the update. [divergences.central_moment_order] constructs = ["fn:VAR_POP"] @@ -326,6 +326,46 @@ default = "allow" failure = "value" reason = "VAR_POP updates a running count, mean and second central moment row by row in DOUBLE, as Spark's CentralMomentAgg does. The converted SQL repeats that arithmetic exactly in the order DuckDB collects the rows, so its result is one Databricks itself returns for some order of the same rows: within Databricks's own row-order variation, which reaches the last digits, and further where the values share a large mean and vary little." +# VAR_SAMP, STDDEV_SAMP, STDDEV_POP and their aliases VARIANCE, STDDEV and STD: the converted SQL +# computes them in two passes over the rows DuckDB collects, the mean, then the sum of squared +# deviations from it. Databricks's own result moves with row order, partitioning and file layout, +# and with what else shares the aggregation. A case relying on the divergence compares within the +# limit of its family, the kind of data its rows hold, and a case of no family compares exactly. +# Each limit is the largest spread between Databricks's own recorded results for the same rows of +# that family in the evidence corpus, recorded on release 2026.47 under forced orders (VALUES order, +# REPARTITION and COALESCE hints, permuted generated rows). One family takes one unit more: for three +# small integers Databricks fuses the multiply and add of each squared deviation and DuckDB rounds +# each product, so the converted result can sit one unit below a value Databricks returns under +# every order; its cases show that unit and no more. Earlier exploratory recordings, not evidence, +# showed wider spreads where the corpus has no case: 1,288,490,364 units for five values near 1e9, +# and 429,599,270,738 units for generated rows over several range partitions. + +[divergences.moment_spread] +constructs = ["fn:VAR_SAMP", "fn:VARIANCE", "fn:STDDEV_SAMP", "fn:STDDEV", "fn:STD", "fn:STDDEV_POP"] +replay = "warn" +default = "allow" +failure = "value" +reason = "VAR_SAMP, STDDEV_SAMP, STDDEV_POP and their aliases are computed in two passes, the mean and then the squared deviations from it. Databricks's own result for the same rows varies with row order, partitioning and file layout; the converted result is bounded, per kind of data, by the largest spread Databricks's recorded results showed for that kind, plus one unit for three small integers, where Databricks fuses the multiply and add of each squared deviation." + +# Each family's limit, its corpus spread: the largest distance between two of Databricks's results +# for the same rows, over every recorded case of that family. +[divergences.moment_spread.float64_family_ulps] +# Three INT values within +-100: spread 0 over every order and repartitioning, plus 1 for the fused +# multiply-add of squared deviations. +small-integers = 1 +# Eight DOUBLE values mixing 2^53 or 1e16 with small ones. +mixed-magnitudes = 4 +# Three or four DOUBLE values near 1e9, at most 1 apart (2.3e-13 relative). +large-mean-few-rows = 1536 +# Six DOUBLE values near 1e9, less than 2 apart (5.2e-8 relative). +large-mean-six-rows = 376525814 +# 24 generated DOUBLE values near 1e9 over several partitions (3.0e-7 relative). +partitioned-rows = 1409026987 +# Groups of 428 or 429 generated DOUBLE values near 1e9 (9.6e-8 relative). +grouped-rows = 484425842 +# 4,097 to 100,000 generated DOUBLE values near 1e9 (2.5e-5 relative). +many-rows = 124099191718 + # Order-dependent sums share Snowflake's mechanism: the converted SQL sums only where every order of # addition gives the exact total and raises otherwise. Spark's Sum starts each partial from 0.0 and # adds doubles with no overflow check (Sum.scala, updateExpressions), so the exact, two-value and diff --git a/crates/sqlbabel-policy/src/databricks/constants.rs b/crates/sqlbabel-policy/src/databricks/constants.rs index 79ad362c3..08fc86bb5 100644 --- a/crates/sqlbabel-policy/src/databricks/constants.rs +++ b/crates/sqlbabel-policy/src/databricks/constants.rs @@ -96,6 +96,24 @@ pub const KNOWN_DIFFERENCES: &[KnownDifference] = &[ wrong_when: "The result must equal one particular Databricks run exactly: the last digits can differ, and where the values share a large mean and vary little, so can digits well before the last, with no error.", failure: DivergenceFailure::Value, }, + KnownDifference { + name: "moment_spread", + title: "VAR_SAMP, STDDEV_SAMP and STDDEV_POP can differ from Databricks as much as Databricks varies", + differs: "Databricks's VAR_SAMP, STDDEV_SAMP and STDDEV_POP of the same rows change with row \ + order, partitioning and file layout. The converted SQL computes them in two passes, \ + and its result can differ from a given Databricks run by up to Databricks's own \ + variation: about 3e-7 relative where the values share a large mean and vary little, \ + and as much as 1e-4 relative over more than 4,096 such rows.", + details: Some( + "VAR_SAMP, VARIANCE, STDDEV_SAMP, STDDEV, STD and STDDEV_POP of integers, DECIMAL of up \ + to 15 digits, FLOAT, DOUBLE and text read as DOUBLE are affected, without DISTINCT or \ + OVER. Where the values vary widely next to their mean the results agree to the last \ + digit or within a few units of it.", + ), + fine_when: "Any result Databricks itself could return for the same rows is acceptable, or the result is compared or shown to the digits that agree: all but the last where values vary widely next to their mean.", + wrong_when: "The result must equal one particular Databricks run exactly: where the values share a large mean and vary little, digits well before the last can differ, with no error.", + failure: DivergenceFailure::Value, + }, KnownDifference { name: "float_sum_order", title: "Sums of DOUBLE values raise an error unless every order gives the same total", diff --git a/crates/sqlbabel-policy/src/policy/_helpers/validation.rs b/crates/sqlbabel-policy/src/policy/_helpers/validation.rs index 6cbc95409..b528d8da6 100644 --- a/crates/sqlbabel-policy/src/policy/_helpers/validation.rs +++ b/crates/sqlbabel-policy/src/policy/_helpers/validation.rs @@ -201,7 +201,28 @@ fn divergence_problems(name: &str, divergence: &Divergence) -> Vec { divergence.float64_ulps )); } - if divergence.float64_ulps > 0 && divergence.failure == DivergenceFailure::Loud { + if !divergence.float64_family_ulps.is_empty() && divergence.float64_ulps > 0 { + found.push(format!( + "divergence `{name}` sets both a float limit and per-family limits; a case's family \ + decides its limit" + )); + } + for (family, ulps) in &divergence.float64_family_ulps { + if !is_kebab_name(family) { + found.push(format!( + "divergence `{name}` names the family `{family}`; families need lower-case kebab names" + )); + } + if *ulps == 0 { + found.push(format!( + "divergence `{name}` gives the family `{family}` no float limit; leave it out so its \ + cases compare exactly" + )); + } + } + if (divergence.float64_ulps > 0 || !divergence.float64_family_ulps.is_empty()) + && divergence.failure == DivergenceFailure::Loud + { found.push(format!( "divergence `{name}` lets floats differ, whose failure is a different value, so it \ cannot be loud" diff --git a/crates/sqlbabel-policy/src/policy/models.rs b/crates/sqlbabel-policy/src/policy/models.rs index 780f91a6e..630100804 100644 --- a/crates/sqlbabel-policy/src/policy/models.rs +++ b/crates/sqlbabel-policy/src/policy/models.rs @@ -97,7 +97,7 @@ pub struct ComparatorPolicy { pub type_equality: Vec, /// Wider 64-bit float limits by result column position, set by verify, never by a policy file. #[serde(skip)] - pub float64_column_ulps: BTreeMap, + pub float64_column_ulps: BTreeMap, } /// How result column names are matched. @@ -242,6 +242,9 @@ pub struct Divergence { /// How many units in the last place a 64-bit float may differ by in a case relying on it. #[serde(default)] pub float64_ulps: u32, + /// Per data family, the last-place units a 64-bit float may differ by; others compare exactly. + #[serde(default)] + pub float64_family_ulps: BTreeMap, } /// What relying on a known divergence can do where DuckDB and Snowflake differ. diff --git a/crates/sqlbabel/src/cli/_helpers/verify_command.rs b/crates/sqlbabel/src/cli/_helpers/verify_command.rs index 3a0b11dbc..0796a19df 100644 --- a/crates/sqlbabel/src/cli/_helpers/verify_command.rs +++ b/crates/sqlbabel/src/cli/_helpers/verify_command.rs @@ -142,6 +142,7 @@ pub(crate) fn verify_command( }; let blocked = unwritten || failed > 0 + || !report.unexercised_families.is_empty() || (arguments.require_verified && (unverified > 0 || report.unproven_sessions > 0)) || (arguments.strict_errors && error_findings > 0) || coverage_blocked; @@ -194,6 +195,14 @@ pub(crate) fn verify_command( report.claims.len() - unverified, report.claims.len(), ); + if !report.unexercised_families.is_empty() { + let _ = writeln!( + stderr, + "sqlbabel verify: no passed case checks the per-family float limits {}; each needs a \ + recorded case of its family", + report.unexercised_families.join(", "), + ); + } if report.unproven_sessions > 0 { let _ = writeln!( stderr, diff --git a/docs/architecture.md b/docs/architecture.md index 9c1d0efde..c52ec0848 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -535,6 +535,13 @@ patterns (`numeric_range` and `timestamp_range` overflows). Another DuckDB error different value or a Snowflake error fails it, and the verdict names what matched. Such cases do not count toward verifying a claim. +A divergence may set `float64_ulps`, at most 1, or `float64_family_ulps`, a limit per family of +data, for results whose source warehouse varies more than that between runs. A case declares its +family with `family = ""` (not hashed), and a result column relying on such a divergence +compares within that family's limit only; a case of another family or of none compares exactly. +Each family limit is the largest spread between the warehouse's own recorded results for the same +rows of that family, and verify fails when a declared family has no passed case relying on it. + A raise on one row hides the values of the others, so verify then replays each input row alone where result rows follow input rows one for one: an expression, or a query reading `input` in order with no window, grouping, aggregate, join, subquery or set operation. A row that alone diff --git a/evidence.toml b/evidence.toml index f6e3003a7..e5f72523e 100644 --- a/evidence.toml +++ b/evidence.toml @@ -1,4 +1,4 @@ # The evidence SQLBabel's checks read: one commit of the evidence repository, and the SHA-256 of its files. repository = "https://github.com/sqlstack-io/sqlbabel-evidence.git" -commit = "534640716c2b3a421b2c6c60de7b5cc2b90c52cc" -content_sha256 = "59945683050eec186279c9612bc22cb0590f8c149a92430ff4b7f08a661c3c77" +commit = "6285729f9a6cd839cb37d1164addb97b86b332d5" +content_sha256 = "4e9c4838d5ee740a1da6ab1ad6e0868311708d2f601676ff2e8e2923912293cb" From 7f51ea0d5a01947405aebaac89f28fa4f4ef40a8 Mon Sep 17 00:00:00 2001 From: Kevin Longe <273747162+kvlonge@users.noreply.github.com> Date: Mon, 30 Nov 2026 16:12:48 +0000 Subject: [PATCH 3/4] fix(databricks): keep a subquery's divergences off the result's columns A query nested in an expression, such as an IN subquery in WHERE, named its own column positions for the divergences it relied on, and verify read them as the outer result's columns. A function only in a WHERE subquery then widened the comparison of an unrelated result column. A subquery's divergences now name only the column whose expression holds it. --- .../conversion/_helpers/queries/query.rs | 4 +- .../src/databricks/conversion/tests.rs | 2 + .../tests/test_column_divergences.rs | 70 +++++++++++++++++++ .../conversion/tests/test_convert.rs | 53 +------------- .../src/provenance/models.rs | 8 +++ 5 files changed, 83 insertions(+), 54 deletions(-) create mode 100644 crates/sqlbabel-convert/src/databricks/conversion/tests/test_column_divergences.rs diff --git a/crates/sqlbabel-convert/src/databricks/conversion/_helpers/queries/query.rs b/crates/sqlbabel-convert/src/databricks/conversion/_helpers/queries/query.rs index 10e29301e..f6740bcf3 100644 --- a/crates/sqlbabel-convert/src/databricks/conversion/_helpers/queries/query.rs +++ b/crates/sqlbabel-convert/src/databricks/conversion/_helpers/queries/query.rs @@ -66,12 +66,12 @@ pub(crate) fn defined_query( query(node, log, &outer, false) } -/// The DuckDB SQL and columns of a subquery in an expression, which reads no table or column of the query around it. +/// The DuckDB SQL and columns of a subquery in an expression, which reads no table or column of the query around it; its columns name no result column for a divergence. pub(crate) fn subquery( node: &Value, log: &ProvenanceLog, ) -> Result<(String, Vec<(String, DatabricksType)>), Refusal> { - query(node, log, &[], false) + log.without_column_divergences(|| query(node, log, &[], false)) } /// A query: one block or a set operation of blocks, reading the common tables `outer` defines; a `top` query's results are written as Databricks returns them, a nested one's kept as DuckDB values. diff --git a/crates/sqlbabel-convert/src/databricks/conversion/tests.rs b/crates/sqlbabel-convert/src/databricks/conversion/tests.rs index d30dd2e44..53ff1313f 100644 --- a/crates/sqlbabel-convert/src/databricks/conversion/tests.rs +++ b/crates/sqlbabel-convert/src/databricks/conversion/tests.rs @@ -2,6 +2,8 @@ mod test_aggregates; #[path = "tests/test_categories.rs"] mod test_categories; +#[path = "tests/test_column_divergences.rs"] +mod test_column_divergences; #[path = "tests/test_convert.rs"] mod test_convert; #[path = "tests/test_convert_effect.rs"] diff --git a/crates/sqlbabel-convert/src/databricks/conversion/tests/test_column_divergences.rs b/crates/sqlbabel-convert/src/databricks/conversion/tests/test_column_divergences.rs new file mode 100644 index 000000000..79ce61bb2 --- /dev/null +++ b/crates/sqlbabel-convert/src/databricks/conversion/tests/test_column_divergences.rs @@ -0,0 +1,70 @@ +//! The result columns a Databricks query's divergences name: only those whose own values may differ. + +use crate::databricks::analysis::main::analyze::analyze; +use crate::databricks::conversion::tests::test_types::ColumnDivergenceTestCase; + +const FIXTURE: &str = "WITH input AS (SELECT * FROM VALUES (1, CAST(-7 AS INT), CAST('a' AS STRING)), \ + (2, CAST(NULL AS INT), CAST(NULL AS STRING)) AS input(ordinal, x1, s)) "; + +#[test] +fn given_a_last_place_function_in_one_result_column_when_converted_then_only_that_column_relies_on_it() + { + let test_cases = [ + ColumnDivergenceTestCase { + fixture: FIXTURE, + description: "each function's divergence names only its own column", + query: "SELECT sin(x1) AS a, x1 * 2 AS b, ln(x1) AS c FROM input", + expected_columns: &[("ln_last_place", &[2]), ("sin_last_place", &[0])], + }, + ColumnDivergenceTestCase { + fixture: FIXTURE, + description: "a function nested in a column's expression still names that column", + query: "SELECT x1 AS a, pow(sin(x1), 2) AS b FROM input", + expected_columns: &[("pow_last_place", &[1]), ("sin_last_place", &[1])], + }, + ColumnDivergenceTestCase { + fixture: FIXTURE, + description: "a function only in WHERE names no column", + query: "SELECT x1 AS a FROM input WHERE sin(x1) > 0", + expected_columns: &[], + }, + ColumnDivergenceTestCase { + fixture: "WITH input AS (SELECT * FROM VALUES (1, CAST(1 AS DOUBLE)) AS input(ordinal, x1)) ", + description: "a function only in a WHERE subquery names no column, whatever its own position", + query: "SELECT ordinal AS a, ordinal AS b FROM input WHERE x1 IN (SELECT stddev_samp(v) AS s FROM VALUES (CAST(1 AS DOUBLE)), (CAST(3 AS DOUBLE)) AS t(v))", + expected_columns: &[], + }, + ColumnDivergenceTestCase { + fixture: "WITH input AS (SELECT * FROM VALUES (1, CAST(1 AS DOUBLE)) AS input(ordinal, x1)) ", + description: "a function in a select item's subquery names that item's column", + query: "SELECT ordinal AS a, x1 IN (SELECT stddev_samp(v) AS s FROM VALUES (CAST(1 AS DOUBLE)), (CAST(3 AS DOUBLE)) AS t(v)) AS b FROM input", + expected_columns: &[("moment_spread", &[1])], + }, + ColumnDivergenceTestCase { + fixture: "WITH input AS (SELECT * FROM VALUES (1, sin(CAST(0.5 AS DOUBLE))) AS input(ordinal, x1)) ", + description: "a function in a fixture cell names every column, as any may read the cell", + query: "SELECT 1 AS a, x1 AS b FROM input", + expected_columns: &[("sin_last_place", &[0, 1])], + }, + ]; + for test_case in test_cases { + let converted = analyze(&format!("{}{}", test_case.fixture, test_case.query)) + .expect("the query converts"); + let actual: Vec<(&str, Vec)> = converted + .provenance + .column_divergences + .iter() + .map(|(id, columns)| (id.as_str(), columns.iter().copied().collect())) + .collect(); + assert_eq!( + actual, + test_case + .expected_columns + .iter() + .map(|(id, columns)| (*id, columns.to_vec())) + .collect::>(), + "{}", + test_case.description + ); + } +} diff --git a/crates/sqlbabel-convert/src/databricks/conversion/tests/test_convert.rs b/crates/sqlbabel-convert/src/databricks/conversion/tests/test_convert.rs index 2eaa78a57..afb73c672 100644 --- a/crates/sqlbabel-convert/src/databricks/conversion/tests/test_convert.rs +++ b/crates/sqlbabel-convert/src/databricks/conversion/tests/test_convert.rs @@ -5,7 +5,7 @@ use crate::databricks::conversion::constants::{DAY_TO_SECOND, YEAR_TO_MONTH}; use crate::databricks::conversion::models::{DatabricksType, Element, IntervalField}; use crate::databricks::conversion::tests::test_types::{ - ColumnDivergenceTestCase, ConvertTestCase, DivergenceTestCase, RefuseTestCase, + ConvertTestCase, DivergenceTestCase, RefuseTestCase, }; const FIXTURE: &str = "WITH input AS (SELECT * FROM VALUES (1, CAST(-7 AS INT), CAST('a' AS STRING)), \ @@ -1853,57 +1853,6 @@ fn given_collect_list_when_its_order_could_show_then_it_relies_on_collect_list_o } } -#[test] -fn given_a_last_place_function_in_one_result_column_when_converted_then_only_that_column_relies_on_it() - { - let test_cases = [ - ColumnDivergenceTestCase { - fixture: FIXTURE, - description: "each function's divergence names only its own column", - query: "SELECT sin(x1) AS a, x1 * 2 AS b, ln(x1) AS c FROM input", - expected_columns: &[("ln_last_place", &[2]), ("sin_last_place", &[0])], - }, - ColumnDivergenceTestCase { - fixture: FIXTURE, - description: "a function nested in a column's expression still names that column", - query: "SELECT x1 AS a, pow(sin(x1), 2) AS b FROM input", - expected_columns: &[("pow_last_place", &[1]), ("sin_last_place", &[1])], - }, - ColumnDivergenceTestCase { - fixture: FIXTURE, - description: "a function only in WHERE names no column", - query: "SELECT x1 AS a FROM input WHERE sin(x1) > 0", - expected_columns: &[], - }, - ColumnDivergenceTestCase { - fixture: "WITH input AS (SELECT * FROM VALUES (1, sin(CAST(0.5 AS DOUBLE))) AS input(ordinal, x1)) ", - description: "a function in a fixture cell names every column, as any may read the cell", - query: "SELECT 1 AS a, x1 AS b FROM input", - expected_columns: &[("sin_last_place", &[0, 1])], - }, - ]; - for test_case in test_cases { - let converted = analyze(&format!("{}{}", test_case.fixture, test_case.query)) - .expect("the query converts"); - let actual: Vec<(&str, Vec)> = converted - .provenance - .column_divergences - .iter() - .map(|(id, columns)| (id.as_str(), columns.iter().copied().collect())) - .collect(); - assert_eq!( - actual, - test_case - .expected_columns - .iter() - .map(|(id, columns)| (*id, columns.to_vec())) - .collect::>(), - "{}", - test_case.description - ); - } -} - #[test] fn given_float_array_elements_when_a_function_compares_them_then_it_is_refused_by_name() { let test_cases = [ diff --git a/crates/sqlbabel-diagnostics/src/provenance/models.rs b/crates/sqlbabel-diagnostics/src/provenance/models.rs index 4cb1c626c..108e12973 100644 --- a/crates/sqlbabel-diagnostics/src/provenance/models.rs +++ b/crates/sqlbabel-diagnostics/src/provenance/models.rs @@ -177,6 +177,14 @@ impl ProvenanceLog { } } + /// Runs `convert`, a query nested in an expression, keeping its divergences off result columns. + pub fn without_column_divergences(&self, convert: impl FnOnce() -> T) -> T { + let kept = self.recorded.borrow().column_divergences.clone(); + let converted = convert(); + self.recorded.borrow_mut().column_divergences = kept; + converted + } + /// How many divergence uses are recorded so far, to pass to `place_divergences` later. pub fn divergence_mark(&self) -> usize { self.uses.borrow().len() From 20fceb986f31c3b8433239748990cd1207ef5f18 Mon Sep 17 00:00:00 2001 From: Kevin Longe <273747162+kvlonge@users.noreply.github.com> Date: Mon, 30 Nov 2026 16:28:11 +0000 Subject: [PATCH 4/4] fix(coverage): sign off the Databricks declared refusals and row-pattern matching Each of the six declared-refusal groups (collect-list-order, first-last-order, float-sum-order, regex-column-pattern, to-binary-odd-hex and url-decode-invalid-utf8) has a reason matching its loud divergence in the Databricks policy, and every one of its 27 statements raises on DuckDB rather than return another value, so all six are signed off. MATCH_RECOGNIZE's NEXT and PREV navigate rows within a row-pattern match, which DuckDB cannot evaluate either, so they join the row-pattern-matching group, which is signed off with them. In the baseline, the 13 forms the declared statements exercise move from refused to unmet obligations, since the obligations citing those statements stay unmet, and the eight row-pattern forms become not translatable. --- .../not-translatable.toml | 2 + .../results-baseline.json | 46 +++++++++---------- .../reviews/results.toml | 46 ++++++++++++++++++- 3 files changed, 69 insertions(+), 25 deletions(-) diff --git a/coverage/translation-databricks/not-translatable.toml b/coverage/translation-databricks/not-translatable.toml index ecd88a423..0f0ba803d 100644 --- a/coverage/translation-databricks/not-translatable.toml +++ b/coverage/translation-databricks/not-translatable.toml @@ -504,6 +504,8 @@ reason = "MATCH_RECOGNIZE matches a regular expression of row patterns over orde forms = [ "db.functions.classifier", "db.functions.match-number", + "db.functions.match-recognize-next", + "db.functions.match-recognize-prev", "db.query.select-match-recognize", "db.query.select-match-recognize-define", "db.query.select-match-recognize-measures", diff --git a/coverage/translation-databricks/results-baseline.json b/coverage/translation-databricks/results-baseline.json index eb4952ee0..5ac631f5e 100644 --- a/coverage/translation-databricks/results-baseline.json +++ b/coverage/translation-databricks/results-baseline.json @@ -6578,7 +6578,7 @@ "db.functions.ampersandsign": "matching", "db.functions.and": "matching", "db.functions.any": "matching", - "db.functions.any-value": "refused", + "db.functions.any-value": "unmet_obligations", "db.functions.approx-count-distinct": "refused", "db.functions.approx-percentile": "refused", "db.functions.approx-top-k": "refused", @@ -6586,7 +6586,7 @@ "db.functions.approx-top-k-combine": "refused", "db.functions.approx-top-k-estimate": "refused", "db.functions.array": "matching", - "db.functions.array-agg": "refused", + "db.functions.array-agg": "unmet_obligations", "db.functions.array-append": "matching", "db.functions.array-compact": "matching", "db.functions.array-contains": "matching", @@ -6614,7 +6614,7 @@ "db.functions.atan": "matching_within_ulps", "db.functions.atan2": "refused", "db.functions.atanh": "refused", - "db.functions.avg": "refused", + "db.functions.avg": "unmet_obligations", "db.functions.bangeqsign": "matching", "db.functions.bangsign": "matching", "db.functions.base64": "matching", @@ -6654,13 +6654,13 @@ "db.functions.character-length": "matching", "db.functions.charindex": "matching", "db.functions.chr": "matching", - "db.functions.classifier": "unmeasured", + "db.functions.classifier": "not_translatable", "db.functions.cloud-files-state": "not_translatable", "db.functions.coalesce": "matching", "db.functions.collate": "unmeasured", "db.functions.collation": "matching", "db.functions.collations": "unmeasured", - "db.functions.collect-list": "refused", + "db.functions.collect-list": "unmet_obligations", "db.functions.collect-set": "refused", "db.functions.coloncolonsign": "matching", "db.functions.colonsign": "refused", @@ -6748,8 +6748,8 @@ "db.functions.factorial": "matching", "db.functions.filter": "matching", "db.functions.find-in-set": "matching", - "db.functions.first": "refused", - "db.functions.first-value": "refused", + "db.functions.first": "unmet_obligations", + "db.functions.first-value": "unmet_obligations", "db.functions.flatten": "refused", "db.functions.float": "matching", "db.functions.floor": "matching", @@ -6890,10 +6890,10 @@ "db.functions.kll-sketch-to-string-float": "not_translatable", "db.functions.kurtosis": "refused", "db.functions.lag": "matching", - "db.functions.last": "refused", + "db.functions.last": "unmet_obligations", "db.functions.last-day": "matching", "db.functions.last-snapshot-version": "not_translatable", - "db.functions.last-value": "refused", + "db.functions.last-value": "unmet_obligations", "db.functions.lcase": "matching", "db.functions.lead": "matching", "db.functions.least": "matching", @@ -6943,11 +6943,11 @@ "db.functions.map-values": "matching", "db.functions.map-zip-with": "matching", "db.functions.mask": "matching", - "db.functions.match-number": "unmeasured", - "db.functions.match-recognize-first": "refused", - "db.functions.match-recognize-last": "refused", - "db.functions.match-recognize-next": "unmeasured", - "db.functions.match-recognize-prev": "unmeasured", + "db.functions.match-number": "not_translatable", + "db.functions.match-recognize-first": "no_obligations", + "db.functions.match-recognize-last": "no_obligations", + "db.functions.match-recognize-next": "not_translatable", + "db.functions.match-recognize-prev": "not_translatable", "db.functions.max": "matching", "db.functions.max-by.max-by": "matching", "db.functions.max-by.max-by.syntax": "matching", @@ -7049,7 +7049,7 @@ "db.functions.reverse": "matching", "db.functions.right": "matching", "db.functions.rint": "matching", - "db.functions.rlike": "refused", + "db.functions.rlike": "unmet_obligations", "db.functions.round": "matching", "db.functions.row-number": "matching", "db.functions.rpad": "matching", @@ -7206,7 +7206,7 @@ "db.functions.substring-index": "matching", "db.functions.substring.substring": "matching", "db.functions.substring.substring-from": "matching", - "db.functions.sum": "refused", + "db.functions.sum": "unmet_obligations", "db.functions.table-changes": "not_translatable", "db.functions.tan": "refused", "db.functions.tanh": "refused", @@ -7238,7 +7238,7 @@ "db.functions.timestampdiff": "matching", "db.functions.tinyint": "matching", "db.functions.to-avro": "not_translatable", - "db.functions.to-binary": "refused", + "db.functions.to-binary": "unmet_obligations", "db.functions.to-char": "matching", "db.functions.to-csv": "refused", "db.functions.to-date": "matching", @@ -7292,7 +7292,7 @@ "db.functions.try-reflect": "not_translatable", "db.functions.try-secret": "not_translatable", "db.functions.try-subtract": "matching", - "db.functions.try-sum": "refused", + "db.functions.try-sum": "unmet_obligations", "db.functions.try-to-binary": "matching", "db.functions.try-to-date": "matching", "db.functions.try-to-file": "not_translatable", @@ -7341,7 +7341,7 @@ "db.functions.unix-seconds": "matching", "db.functions.unix-timestamp": "matching", "db.functions.upper": "matching", - "db.functions.url-decode": "refused", + "db.functions.url-decode": "unmet_obligations", "db.functions.url-encode": "matching", "db.functions.user": "not_translatable", "db.functions.uuid": "not_translatable", @@ -7402,10 +7402,10 @@ "db.query.select-join": "matching", "db.query.select-lateral-view": "matching", "db.query.select-limit": "matching", - "db.query.select-match-recognize": "refused", - "db.query.select-match-recognize-define": "refused", - "db.query.select-match-recognize-measures": "refused", - "db.query.select-match-recognize-pattern": "refused", + "db.query.select-match-recognize": "not_translatable", + "db.query.select-match-recognize-define": "not_translatable", + "db.query.select-match-recognize-measures": "not_translatable", + "db.query.select-match-recognize-pattern": "not_translatable", "db.query.select-named-window": "matching", "db.query.select-nearest-by": "not_translatable", "db.query.select-offset": "matching", diff --git a/coverage/translation-databricks/reviews/results.toml b/coverage/translation-databricks/reviews/results.toml index 7f3a15641..818d37943 100644 --- a/coverage/translation-databricks/reviews/results.toml +++ b/coverage/translation-databricks/reviews/results.toml @@ -1,5 +1,5 @@ -# Sign-offs of the result-matching measure's link map and not-translatable groups. The link map -# in form-links.toml and the function links are unreviewed. +# Sign-offs of the result-matching measure's link map, not-translatable groups and declared-refusal +# groups. The link map in form-links.toml and the function links are unreviewed. [[signoff]] subject = "not-translatable:account-context-functions" @@ -108,3 +108,45 @@ subject = "grammar-obligations" sha256 = "384e845fe7e6a8f56a24583d4f30313bfe4461a7e0569e6b4bb21e52e7a7cbae" scope = "full" reviewed_utc = "2026-11-29T20:22:01Z" + +[[signoff]] +subject = "declared-refusal:collect-list-order" +sha256 = "4fca209f692a8b9df109cee2c4ac2bd7b922ff9e472c4e8d863b2050d58b7f56" +scope = "full" +reviewed_utc = "2026-11-30T16:27:56Z" + +[[signoff]] +subject = "declared-refusal:first-last-order" +sha256 = "bacde106ddb39b9f2df7902bc65f824d681e1bfab189ab89dd909662aa87336f" +scope = "full" +reviewed_utc = "2026-11-30T16:27:56Z" + +[[signoff]] +subject = "declared-refusal:float-sum-order" +sha256 = "ad0ce4f8124de57a63cd12ca8100047a5d54a2ed4c8cc224f86ef9686a113a2d" +scope = "full" +reviewed_utc = "2026-11-30T16:27:56Z" + +[[signoff]] +subject = "declared-refusal:regex-column-pattern" +sha256 = "2c182d829dc09c883af487226cb3263b94273771fe7fd119b6b933038f7442e0" +scope = "full" +reviewed_utc = "2026-11-30T16:27:56Z" + +[[signoff]] +subject = "declared-refusal:to-binary-odd-hex" +sha256 = "53088ee55d65e3a5c0cb71ee326e03d7042afeb58b73078eee8e73a21d4db47d" +scope = "full" +reviewed_utc = "2026-11-30T16:27:56Z" + +[[signoff]] +subject = "declared-refusal:url-decode-invalid-utf8" +sha256 = "0295b1a8499d1ce8ebed385cb9301f870ac8b4cbfa531b457634a4d1a4b0702b" +scope = "full" +reviewed_utc = "2026-11-30T16:27:56Z" + +[[signoff]] +subject = "not-translatable:row-pattern-matching" +sha256 = "298da68122f0eabced829d9b3e0638a6cc8f4e00a2da0988e8d94385476fb2d1" +scope = "full" +reviewed_utc = "2026-11-30T16:27:56Z"