[jira] [Updated] (HIVE-28082) HiveAggregateReduceFunctionsRule could generate an inconsistent result
[ https://issues.apache.org/jira/browse/HIVE-28082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Krisztian Kasa updated HIVE-28082: -- Fix Version/s: 4.1.0 Resolution: Fixed Status: Resolved (was: Patch Available) Merged to master. Thanks [~okumin] for the patch and [~amansinha100] for the review. > HiveAggregateReduceFunctionsRule could generate an inconsistent result > -- > > Key: HIVE-28082 > URL: https://issues.apache.org/jira/browse/HIVE-28082 > Project: Hive > Issue Type: Bug > Components: CBO >Affects Versions: 4.0.0-beta-1 >Reporter: Shohei Okumiya >Assignee: Shohei Okumiya >Priority: Major > Labels: hive-4.0.1-must, pull-request-available > Fix For: 4.1.0 > > > HiveAggregateReduceFunctionsRule translates AVG, STDDEV_POP, STDDEV_SAMP, > VAR_POP, and VAR_SAMP. Those UDFs accept string types and try to decode them > as floating point values. It is possible that undecodable values exist. > We found that it could cause inconsistent behaviors with or without CBO. > {code:java} > 0: jdbc:hive2://hive-hiveserver2:1/defaul> SELECT AVG('text'); > ... > +--+ > | _c0 | > +--+ > | 0.0 | > +--+ > 1 row selected (18.229 seconds) > 0: jdbc:hive2://hive-hiveserver2:1/defaul> set hive.cbo.enable=false; > No rows affected (0.013 seconds) > 0: jdbc:hive2://hive-hiveserver2:1/defaul> SELECT AVG('text'); > ... > +---+ > | _c0 | > +---+ > | NULL | > +---+ {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (HIVE-28082) HiveAggregateReduceFunctionsRule could generate an inconsistent result
[ https://issues.apache.org/jira/browse/HIVE-28082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ayush Saxena updated HIVE-28082: Labels: hive-4.0.1-must pull-request-available (was: pull-request-available) > HiveAggregateReduceFunctionsRule could generate an inconsistent result > -- > > Key: HIVE-28082 > URL: https://issues.apache.org/jira/browse/HIVE-28082 > Project: Hive > Issue Type: Bug > Components: CBO >Affects Versions: 4.0.0-beta-1 >Reporter: Shohei Okumiya >Assignee: Shohei Okumiya >Priority: Major > Labels: hive-4.0.1-must, pull-request-available > > HiveAggregateReduceFunctionsRule translates AVG, STDDEV_POP, STDDEV_SAMP, > VAR_POP, and VAR_SAMP. Those UDFs accept string types and try to decode them > as floating point values. It is possible that undecodable values exist. > We found that it could cause inconsistent behaviors with or without CBO. > {code:java} > 0: jdbc:hive2://hive-hiveserver2:1/defaul> SELECT AVG('text'); > ... > +--+ > | _c0 | > +--+ > | 0.0 | > +--+ > 1 row selected (18.229 seconds) > 0: jdbc:hive2://hive-hiveserver2:1/defaul> set hive.cbo.enable=false; > No rows affected (0.013 seconds) > 0: jdbc:hive2://hive-hiveserver2:1/defaul> SELECT AVG('text'); > ... > +---+ > | _c0 | > +---+ > | NULL | > +---+ {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (HIVE-28082) HiveAggregateReduceFunctionsRule could generate an inconsistent result
[ https://issues.apache.org/jira/browse/HIVE-28082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ASF GitHub Bot updated HIVE-28082: -- Labels: pull-request-available (was: ) > HiveAggregateReduceFunctionsRule could generate an inconsistent result > -- > > Key: HIVE-28082 > URL: https://issues.apache.org/jira/browse/HIVE-28082 > Project: Hive > Issue Type: Bug > Components: CBO >Affects Versions: 4.0.0-beta-1 >Reporter: Shohei Okumiya >Assignee: Shohei Okumiya >Priority: Major > Labels: pull-request-available > > HiveAggregateReduceFunctionsRule translates AVG, STDDEV_POP, STDDEV_SAMP, > VAR_POP, and VAR_SAMP. Those UDFs accept string types and try to decode them > as floating point values. It is possible that undecodable values exist. > We found that it could cause inconsistent behaviors with or without CBO. > {code:java} > 0: jdbc:hive2://hive-hiveserver2:1/defaul> SELECT AVG('text'); > ... > +--+ > | _c0 | > +--+ > | 0.0 | > +--+ > 1 row selected (18.229 seconds) > 0: jdbc:hive2://hive-hiveserver2:1/defaul> set hive.cbo.enable=false; > No rows affected (0.013 seconds) > 0: jdbc:hive2://hive-hiveserver2:1/defaul> SELECT AVG('text'); > ... > +---+ > | _c0 | > +---+ > | NULL | > +---+ {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (HIVE-28082) HiveAggregateReduceFunctionsRule could generate an inconsistent result
[ https://issues.apache.org/jira/browse/HIVE-28082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] okumin updated HIVE-28082: -- Status: Patch Available (was: Open) I created a PR. https://github.com/apache/hive/pull/5091 > HiveAggregateReduceFunctionsRule could generate an inconsistent result > -- > > Key: HIVE-28082 > URL: https://issues.apache.org/jira/browse/HIVE-28082 > Project: Hive > Issue Type: Bug > Components: CBO >Affects Versions: 4.0.0-beta-1 >Reporter: okumin >Assignee: okumin >Priority: Major > > HiveAggregateReduceFunctionsRule translates AVG, STDDEV_POP, STDDEV_SAMP, > VAR_POP, and VAR_SAMP. Those UDFs accept string types and try to decode them > as floating point values. It is possible that undecodable values exist. > We found that it could cause inconsistent behaviors with or without CBO. > {code:java} > 0: jdbc:hive2://hive-hiveserver2:1/defaul> SELECT AVG('text'); > ... > +--+ > | _c0 | > +--+ > | 0.0 | > +--+ > 1 row selected (18.229 seconds) > 0: jdbc:hive2://hive-hiveserver2:1/defaul> set hive.cbo.enable=false; > No rows affected (0.013 seconds) > 0: jdbc:hive2://hive-hiveserver2:1/defaul> SELECT AVG('text'); > ... > +---+ > | _c0 | > +---+ > | NULL | > +---+ {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)