You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[C++] Multi argument operator kernel behavior for decimal columns #17762
This is a JIRA to discuss the behavior of operator kernels that require more than one decimal column input where the column types have a different scale parameter.
For example:
a: decimal(12, 2)
b: decimal(10, 3)
c = a + b
Arithmetic is the primary use case, but anything that needs to efficiently operate on decimal columns with different scales would require this functionality.
I imagine that @jacques-n and folks at Dremio have thought about and solved the problem in Java. If so, we should consider implementing this behavior in C++. Otherwise, I'll do a bit of reading and digging to see how existing systems efficiently handle this problem.
These are the notes that we have about our scale/precision behaviors (we're actually in the middle of reimplementing decimal using llvm). These are primarily modeled after MS SQL Server's behavior. We can share as we've reimplemented.
Activity
asfimport commentedon Nov 4, 2017
Jacques Nadeau / @jacques-n:
Start by taking a look here.
https://github.com/dremio/dremio-oss/blob/master/sabot/kernel/src/main/java/com/dremio/exec/expr/fn/OutputDerivation.java
These are the notes that we have about our scale/precision behaviors (we're actually in the middle of reimplementing decimal using llvm). These are primarily modeled after MS SQL Server's behavior. We can share as we've reimplemented.
asfimport commentedon May 25, 2020
Wes McKinney / @wesm:
This will need to be resolved once adding Decimal support to compute/kernels/scalar_arithmetic.cc
asfimport commentedon Aug 4, 2021
Antoine Pitrou / @pitrou:
This was done as part of ARROW-12074 (for simple arithmetics).