[jira] [Updated] (SPARK-45478) codegen sum(decimal_column / 2) computes div twice

2023-10-17 Thread Zhizhen Hou (Jira)
[ https://issues.apache.org/jira/browse/SPARK-45478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Zhizhen Hou updated SPARK-45478: Description: After eliminates all common subexpression of `If`, it reduces computation time from

[jira] [Updated] (SPARK-45478) codegen sum(decimal_column / 2) computes div twice

2023-10-17 Thread Zhizhen Hou (Jira)
[ https://issues.apache.org/jira/browse/SPARK-45478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Zhizhen Hou updated SPARK-45478: Description: After eliminates all common subexpression of `If`, it reduces computation time from

[jira] [Commented] (SPARK-45478) codegen sum(decimal_column / 2) computes div twice

2023-10-11 Thread Zhizhen Hou (Jira)
[ https://issues.apache.org/jira/browse/SPARK-45478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17773921#comment-17773921 ] Zhizhen Hou commented on SPARK-45478: - There are three children in If: predicate, trueValue and

[jira] [Updated] (SPARK-45478) codegen sum(decimal_column / 2) computes div twice

2023-10-10 Thread Zhizhen Hou (Jira)
[ https://issues.apache.org/jira/browse/SPARK-45478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Zhizhen Hou updated SPARK-45478: Description: *The SQL to reproduce the result* {code:java} create table t_dec (c1 decimal(6,2));

[jira] [Commented] (SPARK-45478) codegen sum(decimal_column / 2) computes div twice

2023-10-10 Thread Zhizhen Hou (Jira)
[ https://issues.apache.org/jira/browse/SPARK-45478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17773579#comment-17773579 ] Zhizhen Hou commented on SPARK-45478: - The new compiled spark 4.0.0-SNAPSHOT from master branch also

[jira] [Updated] (SPARK-45478) codegen sum(decimal_column / 2) computes div twice

2023-10-10 Thread Zhizhen Hou (Jira)
[ https://issues.apache.org/jira/browse/SPARK-45478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Zhizhen Hou updated SPARK-45478: Description: *The SQL to reproduce*  {code:java} create table t_dec (c1 decimal(6,2)); insert

[jira] [Created] (SPARK-45478) codegen sum(decimal_column / 2) computes div twice

2023-10-10 Thread Zhizhen Hou (Jira)
Zhizhen Hou created SPARK-45478: --- Summary: codegen sum(decimal_column / 2) computes div twice Key: SPARK-45478 URL: https://issues.apache.org/jira/browse/SPARK-45478 Project: Spark Issue Type: