[jira] [Updated] (HIVE-18279) Incorrect condition in StatsOpimizer

2018-07-23 Thread Zoltan Haindrich (JIRA)


 [ 
https://issues.apache.org/jira/browse/HIVE-18279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zoltan Haindrich updated HIVE-18279:

Resolution: Invalid
Status: Resolved  (was: Patch Available)

as my earlier comment...I don't think this is not an incorrect condition.
please submit a usecase which is producing incorrect results because of this

> Incorrect condition in StatsOpimizer
> 
>
> Key: HIVE-18279
> URL: https://issues.apache.org/jira/browse/HIVE-18279
> Project: Hive
>  Issue Type: Bug
>  Components: Statistics
>Reporter: Oleksiy Sayankin
>Assignee: Oleksiy Sayankin
>Priority: Major
> Fix For: 3.2.0
>
> Attachments: HIVE-18279.1.patch
>
>
> At the moment {{StatsOpimizer}} has code
> {code}
> if (rowCnt == null) {
>   // if rowCnt < 1 than its either empty table or table on which 
> stats are not
>   //  computed We assume the worse and don't attempt to optimize.
>   Logger.debug("Table doesn't have up to date stats " + 
> tbl.getTableName());
>   rowCnt = null;
> }
> {code}
> in method {{private Long getRowCnt()}}. Condition 
> {code}
> if (rowCnt == null) {
> {code}
> should be changed to 
> {code}
> if (rowCnt == null || rowCnt == 0) {
> {code}
> because 0 value also means that table stats may not be computed.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (HIVE-18279) Incorrect condition in StatsOpimizer

2018-06-27 Thread Vineet Garg (JIRA)


 [ 
https://issues.apache.org/jira/browse/HIVE-18279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vineet Garg updated HIVE-18279:
---
Fix Version/s: (was: 3.1.0)
   3.2.0

Deferring this to 3.2.0 since the branch for 3.1.0 has been cut off.

> Incorrect condition in StatsOpimizer
> 
>
> Key: HIVE-18279
> URL: https://issues.apache.org/jira/browse/HIVE-18279
> Project: Hive
>  Issue Type: Bug
>  Components: Statistics
>Reporter: Oleksiy Sayankin
>Assignee: Oleksiy Sayankin
>Priority: Major
> Fix For: 3.2.0
>
> Attachments: HIVE-18279.1.patch
>
>
> At the moment {{StatsOpimizer}} has code
> {code}
> if (rowCnt == null) {
>   // if rowCnt < 1 than its either empty table or table on which 
> stats are not
>   //  computed We assume the worse and don't attempt to optimize.
>   Logger.debug("Table doesn't have up to date stats " + 
> tbl.getTableName());
>   rowCnt = null;
> }
> {code}
> in method {{private Long getRowCnt()}}. Condition 
> {code}
> if (rowCnt == null) {
> {code}
> should be changed to 
> {code}
> if (rowCnt == null || rowCnt == 0) {
> {code}
> because 0 value also means that table stats may not be computed.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (HIVE-18279) Incorrect condition in StatsOpimizer

2018-04-09 Thread Vineet Garg (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-18279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vineet Garg updated HIVE-18279:
---
Fix Version/s: (was: 3.0.0)
   3.1.0

Deferring this to 3.1.0 since the branch for 3.0.0 has been cut off. Please 
update the JIRA if you would like to get your patch in 3.0.0.

> Incorrect condition in StatsOpimizer
> 
>
> Key: HIVE-18279
> URL: https://issues.apache.org/jira/browse/HIVE-18279
> Project: Hive
>  Issue Type: Bug
>  Components: Statistics
>Reporter: Oleksiy Sayankin
>Assignee: Oleksiy Sayankin
>Priority: Major
> Fix For: 3.1.0
>
> Attachments: HIVE-18279.1.patch
>
>
> At the moment {{StatsOpimizer}} has code
> {code}
> if (rowCnt == null) {
>   // if rowCnt < 1 than its either empty table or table on which 
> stats are not
>   //  computed We assume the worse and don't attempt to optimize.
>   Logger.debug("Table doesn't have up to date stats " + 
> tbl.getTableName());
>   rowCnt = null;
> }
> {code}
> in method {{private Long getRowCnt()}}. Condition 
> {code}
> if (rowCnt == null) {
> {code}
> should be changed to 
> {code}
> if (rowCnt == null || rowCnt == 0) {
> {code}
> because 0 value also means that table stats may not be computed.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (HIVE-18279) Incorrect condition in StatsOpimizer

2017-12-19 Thread Zoltan Haindrich (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-18279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zoltan Haindrich updated HIVE-18279:

Component/s: Statistics

> Incorrect condition in StatsOpimizer
> 
>
> Key: HIVE-18279
> URL: https://issues.apache.org/jira/browse/HIVE-18279
> Project: Hive
>  Issue Type: Bug
>  Components: Statistics
>Reporter: Oleksiy Sayankin
>Assignee: Oleksiy Sayankin
> Fix For: 3.0.0
>
> Attachments: HIVE-18279.1.patch
>
>
> At the moment {{StatsOpimizer}} has code
> {code}
> if (rowCnt == null) {
>   // if rowCnt < 1 than its either empty table or table on which 
> stats are not
>   //  computed We assume the worse and don't attempt to optimize.
>   Logger.debug("Table doesn't have up to date stats " + 
> tbl.getTableName());
>   rowCnt = null;
> }
> {code}
> in method {{private Long getRowCnt()}}. Condition 
> {code}
> if (rowCnt == null) {
> {code}
> should be changed to 
> {code}
> if (rowCnt == null || rowCnt == 0) {
> {code}
> because 0 value also means that table stats may not be computed.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (HIVE-18279) Incorrect condition in StatsOpimizer

2017-12-14 Thread Oleksiy Sayankin (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-18279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Oleksiy Sayankin updated HIVE-18279:

Status: Patch Available  (was: In Progress)

> Incorrect condition in StatsOpimizer
> 
>
> Key: HIVE-18279
> URL: https://issues.apache.org/jira/browse/HIVE-18279
> Project: Hive
>  Issue Type: Bug
>Reporter: Oleksiy Sayankin
>Assignee: Oleksiy Sayankin
> Fix For: 3.0.0
>
> Attachments: HIVE-18279.1.patch
>
>
> At the moment {{StatsOpimizer}} has code
> {code}
> if (rowCnt == null) {
>   // if rowCnt < 1 than its either empty table or table on which 
> stats are not
>   //  computed We assume the worse and don't attempt to optimize.
>   Logger.debug("Table doesn't have up to date stats " + 
> tbl.getTableName());
>   rowCnt = null;
> }
> {code}
> in method {{private Long getRowCnt()}}. Condition 
> {code}
> if (rowCnt == null) {
> {code}
> should be changed to 
> {code}
> if (rowCnt == null || rowCnt == 0) {
> {code}
> because 0 value also means that table stats may not be computed.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (HIVE-18279) Incorrect condition in StatsOpimizer

2017-12-14 Thread Oleksiy Sayankin (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-18279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Oleksiy Sayankin updated HIVE-18279:

Attachment: HIVE-18279.1.patch

> Incorrect condition in StatsOpimizer
> 
>
> Key: HIVE-18279
> URL: https://issues.apache.org/jira/browse/HIVE-18279
> Project: Hive
>  Issue Type: Bug
>Reporter: Oleksiy Sayankin
>Assignee: Oleksiy Sayankin
> Fix For: 3.0.0
>
> Attachments: HIVE-18279.1.patch
>
>
> At the moment {{StatsOpimizer}} has code
> {code}
> if (rowCnt == null) {
>   // if rowCnt < 1 than its either empty table or table on which 
> stats are not
>   //  computed We assume the worse and don't attempt to optimize.
>   Logger.debug("Table doesn't have up to date stats " + 
> tbl.getTableName());
>   rowCnt = null;
> }
> {code}
> in method {{private Long getRowCnt()}}. Condition 
> {code}
> if (rowCnt == null) {
> {code}
> should be changed to 
> {code}
> if (rowCnt == null || rowCnt == 0) {
> {code}
> because 0 value also means that table stats may not be computed.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (HIVE-18279) Incorrect condition in StatsOpimizer

2017-12-14 Thread Oleksiy Sayankin (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-18279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Oleksiy Sayankin updated HIVE-18279:

Fix Version/s: 3.0.0

> Incorrect condition in StatsOpimizer
> 
>
> Key: HIVE-18279
> URL: https://issues.apache.org/jira/browse/HIVE-18279
> Project: Hive
>  Issue Type: Bug
>Reporter: Oleksiy Sayankin
>Assignee: Oleksiy Sayankin
> Fix For: 3.0.0
>
>
> At the moment {{StatsOpimizer}} has code
> {code}
> if (rowCnt == null) {
>   // if rowCnt < 1 than its either empty table or table on which 
> stats are not
>   //  computed We assume the worse and don't attempt to optimize.
>   Logger.debug("Table doesn't have up to date stats " + 
> tbl.getTableName());
>   rowCnt = null;
> }
> {code}
> in method {{private Long getRowCnt()}}. Condition 
> {code}
> if (rowCnt == null) {
> {code}
> should be changed to 
> {code}
> if (rowCnt == null || rowCnt == 0) {
> {code}
> because 0 value also means that table stats may not be computed.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (HIVE-18279) Incorrect condition in StatsOpimizer

2017-12-14 Thread Oleksiy Sayankin (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-18279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Oleksiy Sayankin updated HIVE-18279:

Description: 
At the moment {{StatsOpimizer}} has code

{code}
if (rowCnt == null) {
  // if rowCnt < 1 than its either empty table or table on which stats 
are not
  //  computed We assume the worse and don't attempt to optimize.
  Logger.debug("Table doesn't have up to date stats " + 
tbl.getTableName());
  rowCnt = null;
}
{code}

in method {{private Long getRowCnt()}}. Condition 

{code}
if (rowCnt == null) {
{code}

should be changed to 

{code}
if (rowCnt == null || rowCnt == 0) {
{code}

because 0 value also means that table stats may not be computed.

  was:At the moment {{}}


> Incorrect condition in StatsOpimizer
> 
>
> Key: HIVE-18279
> URL: https://issues.apache.org/jira/browse/HIVE-18279
> Project: Hive
>  Issue Type: Improvement
>Reporter: Oleksiy Sayankin
>Assignee: Oleksiy Sayankin
>
> At the moment {{StatsOpimizer}} has code
> {code}
> if (rowCnt == null) {
>   // if rowCnt < 1 than its either empty table or table on which 
> stats are not
>   //  computed We assume the worse and don't attempt to optimize.
>   Logger.debug("Table doesn't have up to date stats " + 
> tbl.getTableName());
>   rowCnt = null;
> }
> {code}
> in method {{private Long getRowCnt()}}. Condition 
> {code}
> if (rowCnt == null) {
> {code}
> should be changed to 
> {code}
> if (rowCnt == null || rowCnt == 0) {
> {code}
> because 0 value also means that table stats may not be computed.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (HIVE-18279) Incorrect condition in StatsOpimizer

2017-12-14 Thread Oleksiy Sayankin (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-18279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Oleksiy Sayankin updated HIVE-18279:

Issue Type: Bug  (was: Improvement)

> Incorrect condition in StatsOpimizer
> 
>
> Key: HIVE-18279
> URL: https://issues.apache.org/jira/browse/HIVE-18279
> Project: Hive
>  Issue Type: Bug
>Reporter: Oleksiy Sayankin
>Assignee: Oleksiy Sayankin
>
> At the moment {{StatsOpimizer}} has code
> {code}
> if (rowCnt == null) {
>   // if rowCnt < 1 than its either empty table or table on which 
> stats are not
>   //  computed We assume the worse and don't attempt to optimize.
>   Logger.debug("Table doesn't have up to date stats " + 
> tbl.getTableName());
>   rowCnt = null;
> }
> {code}
> in method {{private Long getRowCnt()}}. Condition 
> {code}
> if (rowCnt == null) {
> {code}
> should be changed to 
> {code}
> if (rowCnt == null || rowCnt == 0) {
> {code}
> because 0 value also means that table stats may not be computed.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (HIVE-18279) Incorrect condition in StatsOpimizer

2017-12-14 Thread Oleksiy Sayankin (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-18279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Oleksiy Sayankin updated HIVE-18279:

Description: At the moment {{}}

> Incorrect condition in StatsOpimizer
> 
>
> Key: HIVE-18279
> URL: https://issues.apache.org/jira/browse/HIVE-18279
> Project: Hive
>  Issue Type: Improvement
>Reporter: Oleksiy Sayankin
>Assignee: Oleksiy Sayankin
>
> At the moment {{}}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)