-
Notifications
You must be signed in to change notification settings - Fork 457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GLUTEN-5620][CORE] Remove check_overflow and refactor code #5654
Conversation
Run Gluten Clickhouse CI |
3 similar comments
Run Gluten Clickhouse CI |
Run Gluten Clickhouse CI |
Run Gluten Clickhouse CI |
Run Gluten Clickhouse CI |
1 similar comment
Run Gluten Clickhouse CI |
/Benchmark Velox |
===== Performance report for TPCH SF2000 with Velox backend, for reference only ====
|
Run Gluten Clickhouse CI |
Run Gluten Clickhouse CI |
1 similar comment
Run Gluten Clickhouse CI |
/Benchmark Velox TPCDS |
Run Gluten Clickhouse CI |
1 similar comment
Run Gluten Clickhouse CI |
===== Performance report for TPCH SF2000 with Velox backend, for reference only ====
|
Run Gluten Clickhouse CI |
/Benchmark Velox TPCDS |
===== Performance report for TPCH SF2000 with Velox backend, for reference only ====
|
===== Performance report for TPCDS SF2000 with Velox backend, for reference only ====
|
Spark 33 result: <style> </style>
|
Can you help rerun the failed test? This failure is not related to the PR. @zhouyuan |
Can you help merge it? Thanks! @zhouyuan |
operationType: OperationType.Config, | ||
type1: DecimalType, | ||
type2: DecimalType): DecimalType = { | ||
def getResultType(expr: BinaryArithmetic, type1: DecimalType, type2: DecimalType): DecimalType = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we are going into here, that means there is no checkoverflow for decimal binary arithmetic. If there is no PromotePrecision
, should the result decimal type be b.dataType
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this may run into by Checkoverflow(child: BinaryArithmetic), if we match this one like this version https://github.com/apache/incubator-gluten/compare/3c88fd40395c94505d76b5c146cd9498fe1a33b6..8110523f356e7356d1ff0a590610699f016e52d0, the tests can be passed, but performance regression, so I change it to current minimal change version.
@@ -492,7 +514,6 @@ object ExpressionConverter extends SQLConfHelper with Logging { | |||
expr.children.map( | |||
replaceWithExpressionTransformerInternal(_, attributeSeq, expressionsMap)), | |||
expr) | |||
|
|||
case CheckOverflow(b: BinaryArithmetic, decimalType, _) | |||
if !BackendsApiManager.getSettings.transformCheckOverflow && | |||
DecimalArithmeticUtil.isDecimalArithmetic(b) => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jinchengchenghh if you update codes at the following
case b: BinaryArithmetic if DecimalArithmeticUtil.isDecimalArithmetic(b) =>
DecimalArithmeticUtil.checkAllowDecimalArithmetic()
///...
The same logical should apply there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Velox transformCheckOverflow is true, so it won't go here. And rescale and remove cast only needs in velox backend
@baibaichen @ulysses-you |
No description provided.