diff --git a/src/substrait/__init__.py b/src/substrait/__init__.py index b5413d0..7c1b41b 100644 --- a/src/substrait/__init__.py +++ b/src/substrait/__init__.py @@ -3,6 +3,6 @@ except ImportError: pass -__substrait_version__ = "0.48.0" -__substrait_hash__ = "3dc77ae" +__substrait_version__ = "0.49.0" +__substrait_hash__ = "fcf0f76" __minimum_substrait_version__ = "0.30.0" diff --git a/src/substrait/extensions/functions_arithmetic_decimal.yaml b/src/substrait/extensions/functions_arithmetic_decimal.yaml index a0f93db..b62c634 100644 --- a/src/substrait/extensions/functions_arithmetic_decimal.yaml +++ b/src/substrait/extensions/functions_arithmetic_decimal.yaml @@ -102,6 +102,15 @@ scalar_functions: scale_after_borrow = max(init_scale - delta, min_scale) scale = init_prec > 38 ? scale_after_borrow : init_scale DECIMAL + - + name: "abs" + description: Calculate the absolute value of the argument. + impls: + - args: + - name: x + value: decimal + return: decimal + aggregate_functions: - name: "sum" description: Sum a set of values. diff --git a/src/substrait/extensions/functions_comparison.yaml b/src/substrait/extensions/functions_comparison.yaml index 6b6ad61..dffc572 100644 --- a/src/substrait/extensions/functions_comparison.yaml +++ b/src/substrait/extensions/functions_comparison.yaml @@ -50,6 +50,24 @@ scalar_functions: return: boolean nullability: DECLARED_OUTPUT - + name: "is_distinct_from" + description: > + Whether two values are not equal. + + This function treats `null` values as comparable, so + + `is_distinct_from(null, null) == False` + + This is in contrast to `equal`, in which `null` values do not compare. + impls: + - args: + - value: any1 + name: x + - value: any1 + name: y + return: boolean + nullability: DECLARED_OUTPUT + - name: "lt" description: > Less than. diff --git a/third_party/substrait b/third_party/substrait index 3dc77ae..fcf0f76 160000 --- a/third_party/substrait +++ b/third_party/substrait @@ -1 +1 @@ -Subproject commit 3dc77aeca820eba70ba141bf3afa5e4c5ba055b9 +Subproject commit fcf0f762a3d39eabadf2f2b507ff803aadcb123e