Skip to content

Commit

Permalink
fix: add overflow behavior to integer division (substrait-io#223)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: The signature of divide functions for multiple types now specify an enumeration prior to specifying operands.
  • Loading branch information
westonpace authored and Carlo Curino committed Jul 20, 2022
1 parent c9469ee commit 7f5d120
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions extensions/functions_arithmetic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,18 +126,26 @@ scalar_functions:
description: "Divide one value by another. Partial values are truncated."
impls:
- args:
- options: [ SILENT, SATURATE, ERROR ]
required: false
- value: i8
- value: i8
return: i8
- args:
- options: [ SILENT, SATURATE, ERROR ]
required: false
- value: i16
- value: i16
return: i16
- args:
- options: [ SILENT, SATURATE, ERROR ]
required: false
- value: i32
- value: i32
return: i32
- args:
- options: [ SILENT, SATURATE, ERROR ]
required: false
- value: i64
- value: i64
return: i64
Expand Down

0 comments on commit 7f5d120

Please sign in to comment.