Grokbase Groups Hive commits May 2015
FAQ
Repository: hive
Updated Branches:
   refs/heads/master 03eca7708 -> 31383348c


HIVE-10690: ArrayIndexOutOfBounds exception in MetaStoreDirectSql.aggrColStatsForPartitions() (Vaibhav Gumashta reviewed by Jason Dere)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/31383348
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/31383348
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/31383348

Branch: refs/heads/master
Commit: 31383348c1bd32b7991a20b793a362cca19987e9
Parents: 03eca77
Author: Vaibhav Gumashta <vgumashta@apache.org>
Authored: Wed May 13 13:44:41 2015 -0700
Committer: Vaibhav Gumashta <vgumashta@apache.org>
Committed: Wed May 13 13:44:41 2015 -0700

----------------------------------------------------------------------
  .../apache/hadoop/hive/metastore/MetaStoreDirectSql.java | 10 ++++++----
  1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/31383348/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java
----------------------------------------------------------------------
diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java b/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java
index 8bee978..0a56bac 100644
--- a/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java
+++ b/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java
@@ -1129,10 +1129,12 @@ class MetaStoreDirectSql {
              colStatsAggrFromDB =
                  columnStatisticsObjForPartitions(dbName, tableName, partNames, colNamesForDB,
                      partsFound, useDensityFunctionForNDVEstimation);
- ColumnStatisticsObj colStatsAggr = colStatsAggrFromDB.get(0);
- colStatsList.add(colStatsAggr);
- // Update the cache to add this new aggregate node
- aggrStatsCache.add(dbName, tableName, colName, partsFound, colStatsAggr, bloomFilter);
+ if (!colStatsAggrFromDB.isEmpty()) {
+ ColumnStatisticsObj colStatsAggr = colStatsAggrFromDB.get(0);
+ colStatsList.add(colStatsAggr);
+ // Update the cache to add this new aggregate node
+ aggrStatsCache.add(dbName, tableName, colName, partsFound, colStatsAggr, bloomFilter);
+ }
            }
          }
        }

Search Discussions

  • Vgumashta at May 18, 2015 at 7:13 pm
    Repository: hive
    Updated Branches:
       refs/heads/branch-1.2 af9f5a8a0 -> 1e0088fc6


    HIVE-10690: ArrayIndexOutOfBounds exception in MetaStoreDirectSql.aggrColStatsForPartitions() (Vaibhav Gumashta reviewed by Jason Dere)


    Project: http://git-wip-us.apache.org/repos/asf/hive/repo
    Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/1e0088fc
    Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/1e0088fc
    Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/1e0088fc

    Branch: refs/heads/branch-1.2
    Commit: 1e0088fc6cebc899cce6d4c54b111d96136294d9
    Parents: af9f5a8
    Author: Vaibhav Gumashta <vgumashta@apache.org>
    Authored: Mon May 18 12:12:49 2015 -0700
    Committer: Vaibhav Gumashta <vgumashta@apache.org>
    Committed: Mon May 18 12:12:49 2015 -0700

    ----------------------------------------------------------------------
      .../apache/hadoop/hive/metastore/MetaStoreDirectSql.java | 10 ++++++----
      1 file changed, 6 insertions(+), 4 deletions(-)
    ----------------------------------------------------------------------


    http://git-wip-us.apache.org/repos/asf/hive/blob/1e0088fc/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java
    ----------------------------------------------------------------------
    diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java b/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java
    index 8bee978..0a56bac 100644
    --- a/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java
    +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java
    @@ -1129,10 +1129,12 @@ class MetaStoreDirectSql {
                  colStatsAggrFromDB =
                      columnStatisticsObjForPartitions(dbName, tableName, partNames, colNamesForDB,
                          partsFound, useDensityFunctionForNDVEstimation);
    - ColumnStatisticsObj colStatsAggr = colStatsAggrFromDB.get(0);
    - colStatsList.add(colStatsAggr);
    - // Update the cache to add this new aggregate node
    - aggrStatsCache.add(dbName, tableName, colName, partsFound, colStatsAggr, bloomFilter);
    + if (!colStatsAggrFromDB.isEmpty()) {
    + ColumnStatisticsObj colStatsAggr = colStatsAggrFromDB.get(0);
    + colStatsList.add(colStatsAggr);
    + // Update the cache to add this new aggregate node
    + aggrStatsCache.add(dbName, tableName, colName, partsFound, colStatsAggr, bloomFilter);
    + }
                }
              }
            }

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommits @
categorieshive, hadoop
postedMay 13, '15 at 8:46p
activeMay 18, '15 at 7:13p
posts2
users1
websitehive.apache.org

1 user in discussion

Vgumashta: 2 posts

People

Translate

site design / logo © 2021 Grokbase