You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by we...@apache.org on 2017/05/08 22:18:06 UTC

[49/50] [abbrv] hive git commit: HIVE-14671 : merge master into hive-14535 (Wei Zheng)

http://git-wip-us.apache.org/repos/asf/hive/blob/1ceaf357/common/src/java/org/apache/hadoop/hive/common/FileUtils.java
----------------------------------------------------------------------
diff --cc common/src/java/org/apache/hadoop/hive/common/FileUtils.java
index c6bc9b9,985fd8c..58284dc
--- a/common/src/java/org/apache/hadoop/hive/common/FileUtils.java
+++ b/common/src/java/org/apache/hadoop/hive/common/FileUtils.java
@@@ -870,11 -865,11 +870,11 @@@ public final class FileUtils 
      }
      return false;
    }
--  
--  
++
++
    /**
     * Return whenever all paths in the collection are schemaless
--   * 
++   *
     * @param paths
     * @return
     */
@@@ -889,16 -884,16 +889,16 @@@
  
    /**
     * Returns the deepest candidate path for the given path.
--   * 
++   *
     * prioritizes on paths including schema / then includes matches without schema
--   * 
++   *
     * @param path
     * @param candidates  the candidate paths
     * @return
     */
    public static Path getParentRegardlessOfScheme(Path path, Collection<Path> candidates) {
      Path schemalessPath = Path.getPathWithoutSchemeAndAuthority(path);
--    
++
      for(;path!=null && schemalessPath!=null; path=path.getParent(),schemalessPath=schemalessPath.getParent()){
        if(candidates.contains(path))
          return path;
@@@ -911,13 -906,13 +911,13 @@@
  
    /**
     * Checks whenever path is inside the given subtree
--   * 
++   *
     * return true iff
     *  * path = subtree
     *  * subtreeContains(path,d) for any descendant of the subtree node
     * @param path    the path in question
     * @param subtree
--   * 
++   *
     * @return
     */
    public static boolean isPathWithinSubtree(Path path, Path subtree) {

http://git-wip-us.apache.org/repos/asf/hive/blob/1ceaf357/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/hive/blob/1ceaf357/itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java
----------------------------------------------------------------------
diff --cc itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java
index 8468b84,88b9faf..93ff498
--- a/itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java
+++ b/itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java
@@@ -915,49 -914,8 +916,55 @@@ public class DummyRawStoreFailEvent imp
    }
  
    @Override
+   public Map<String, ColumnStatisticsObj> getAggrColStatsForTablePartitions(String dbName,
+       String tableName) throws MetaException, NoSuchObjectException {
+     return objectStore.getAggrColStatsForTablePartitions(dbName, tableName);
+   }
++
++  @Override
 +  @CanNotRetry
 +  public Boolean commitTransactionExpectDeadlock() {
 +    return null;
 +  }
 +
 +  @Override
 +  public void createTableWrite(Table arg0, long arg1, char arg2, long arg3) {
 +  }
 +
 +  @Override
 +  public void deleteTableWrites(String arg0, String arg1, long arg2, long arg3)
 +      throws MetaException {
 +  }
 +
 +  @Override
 +  public List<FullTableName> getAllMmTablesForCleanup() throws MetaException {
 +    return null;
 +  }
 +
 +  @Override
 +  public Collection<String> getAllPartitionLocations(String arg0, String arg1) {
 +    return null;
 +  }
 +
 +  @Override
 +  public MTableWrite getTableWrite(String arg0, String arg1, long arg2)
 +      throws MetaException {
 +    return null;
 +  }
 +
 +  @Override
 +  public List<Long> getTableWriteIds(String arg0, String arg1, long arg2,
 +      long arg3, char arg4) throws MetaException {
 +    return null;
 +  }
 +
 +  @Override
 +  public List<MTableWrite> getTableWrites(String arg0, String arg1, long arg2,
 +      long arg3) throws MetaException {
 +    return null;
 +  }
 +
 +  @Override
 +  public void updateTableWrite(MTableWrite arg0) {
 +  }
  }

http://git-wip-us.apache.org/repos/asf/hive/blob/1ceaf357/itests/src/test/resources/testconfiguration.properties
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/hive/blob/1ceaf357/metastore/if/hive_metastore.thrift
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/hive/blob/1ceaf357/metastore/scripts/upgrade/derby/hive-schema-2.2.0.derby.sql
----------------------------------------------------------------------
diff --cc metastore/scripts/upgrade/derby/hive-schema-2.2.0.derby.sql
index 7f1a64b,16e611c..a4977b6
--- a/metastore/scripts/upgrade/derby/hive-schema-2.2.0.derby.sql
+++ b/metastore/scripts/upgrade/derby/hive-schema-2.2.0.derby.sql
@@@ -60,7 -60,7 +60,7 @@@ CREATE TABLE "APP"."COLUMNS" ("SD_ID" B
  
  CREATE TABLE "APP"."ROLES" ("ROLE_ID" BIGINT NOT NULL, "CREATE_TIME" INTEGER NOT NULL, "OWNER_NAME" VARCHAR(128), "ROLE_NAME" VARCHAR(128));
  
- CREATE TABLE "APP"."TBLS" ("TBL_ID" BIGINT NOT NULL, "CREATE_TIME" INTEGER NOT NULL, "DB_ID" BIGINT, "LAST_ACCESS_TIME" INTEGER NOT NULL, "OWNER" VARCHAR(767), "RETENTION" INTEGER NOT NULL, "SD_ID" BIGINT, "TBL_NAME" VARCHAR(128), "TBL_TYPE" VARCHAR(128), "VIEW_EXPANDED_TEXT" LONG VARCHAR, "VIEW_ORIGINAL_TEXT" LONG VARCHAR, "IS_REWRITE_ENABLED" CHAR(1) NOT NULL, "MM_WATERMARK_WRITE_ID" BIGINT DEFAULT -1, "MM_NEXT_WRITE_ID" BIGINT DEFAULT 0);
 -CREATE TABLE "APP"."TBLS" ("TBL_ID" BIGINT NOT NULL, "CREATE_TIME" INTEGER NOT NULL, "DB_ID" BIGINT, "LAST_ACCESS_TIME" INTEGER NOT NULL, "OWNER" VARCHAR(767), "RETENTION" INTEGER NOT NULL, "SD_ID" BIGINT, "TBL_NAME" VARCHAR(256), "TBL_TYPE" VARCHAR(128), "VIEW_EXPANDED_TEXT" LONG VARCHAR, "VIEW_ORIGINAL_TEXT" LONG VARCHAR, "IS_REWRITE_ENABLED" CHAR(1) NOT NULL);
++CREATE TABLE "APP"."TBLS" ("TBL_ID" BIGINT NOT NULL, "CREATE_TIME" INTEGER NOT NULL, "DB_ID" BIGINT, "LAST_ACCESS_TIME" INTEGER NOT NULL, "OWNER" VARCHAR(767), "RETENTION" INTEGER NOT NULL, "SD_ID" BIGINT, "TBL_NAME" VARCHAR(256), "TBL_TYPE" VARCHAR(128), "VIEW_EXPANDED_TEXT" LONG VARCHAR, "VIEW_ORIGINAL_TEXT" LONG VARCHAR, "IS_REWRITE_ENABLED" CHAR(1) NOT NULL, "MM_WATERMARK_WRITE_ID" BIGINT DEFAULT -1, "MM_NEXT_WRITE_ID" BIGINT DEFAULT 0);
  
  CREATE TABLE "APP"."PARTITION_KEYS" ("TBL_ID" BIGINT NOT NULL, "PKEY_COMMENT" VARCHAR(4000), "PKEY_NAME" VARCHAR(128) NOT NULL, "PKEY_TYPE" VARCHAR(767) NOT NULL, "INTEGER_IDX" INTEGER NOT NULL);
  

http://git-wip-us.apache.org/repos/asf/hive/blob/1ceaf357/metastore/scripts/upgrade/derby/upgrade-2.1.0-to-2.2.0.derby.sql
----------------------------------------------------------------------
diff --cc metastore/scripts/upgrade/derby/upgrade-2.1.0-to-2.2.0.derby.sql
index cbf5be1,b05942f..3e87091
--- a/metastore/scripts/upgrade/derby/upgrade-2.1.0-to-2.2.0.derby.sql
+++ b/metastore/scripts/upgrade/derby/upgrade-2.1.0-to-2.2.0.derby.sql
@@@ -1,7 -1,6 +1,8 @@@
  -- Upgrade MetaStore schema from 2.1.0 to 2.2.0
  RUN '037-HIVE-14496.derby.sql';
  RUN '038-HIVE-10562.derby.sql';
+ RUN '039-HIVE-12274.derby.sql';
  
 +RUN '037-HIVE-14637.derby.sql';
 +
  UPDATE "APP".VERSION SET SCHEMA_VERSION='2.2.0', VERSION_COMMENT='Hive release version 2.2.0' where VER_ID=1;

http://git-wip-us.apache.org/repos/asf/hive/blob/1ceaf357/metastore/scripts/upgrade/mssql/hive-schema-2.2.0.mssql.sql
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/hive/blob/1ceaf357/metastore/scripts/upgrade/mssql/upgrade-2.1.0-to-2.2.0.mssql.sql
----------------------------------------------------------------------
diff --cc metastore/scripts/upgrade/mssql/upgrade-2.1.0-to-2.2.0.mssql.sql
index 99024c2,4995349..b786b16
--- a/metastore/scripts/upgrade/mssql/upgrade-2.1.0-to-2.2.0.mssql.sql
+++ b/metastore/scripts/upgrade/mssql/upgrade-2.1.0-to-2.2.0.mssql.sql
@@@ -1,8 -1,8 +1,9 @@@
  SELECT 'Upgrading MetaStore schema from 2.1.0 to 2.2.0' AS MESSAGE;
  
  :r 022-HIVE-14496.mssql.sql
 +:r 023-HIVE-14637.mssql.sql
  :r 023-HIVE-10562.mssql.sql
+ :r 024-HIVE-12274.mssql.sql
  
  UPDATE VERSION SET SCHEMA_VERSION='2.2.0', VERSION_COMMENT='Hive release version 2.2.0' where VER_ID=1;
  SELECT 'Finished upgrading MetaStore schema from 2.1.0 to 2.2.0' AS MESSAGE;

http://git-wip-us.apache.org/repos/asf/hive/blob/1ceaf357/metastore/scripts/upgrade/mysql/hive-schema-2.2.0.mysql.sql
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/hive/blob/1ceaf357/metastore/scripts/upgrade/mysql/upgrade-2.1.0-to-2.2.0.mysql.sql
----------------------------------------------------------------------
diff --cc metastore/scripts/upgrade/mysql/upgrade-2.1.0-to-2.2.0.mysql.sql
index 68300d3,e221439..f4c69a5
--- a/metastore/scripts/upgrade/mysql/upgrade-2.1.0-to-2.2.0.mysql.sql
+++ b/metastore/scripts/upgrade/mysql/upgrade-2.1.0-to-2.2.0.mysql.sql
@@@ -1,8 -1,8 +1,9 @@@
  SELECT 'Upgrading MetaStore schema from 2.1.0 to 2.2.0' AS ' ';
  
  SOURCE 037-HIVE-14496.mysql.sql;
 +SOURCE 038-HIVE-14637.mysql.sql;
  SOURCE 038-HIVE-10562.mysql.sql;
+ SOURCE 039-HIVE-12274.mysql.sql;
  
  UPDATE VERSION SET SCHEMA_VERSION='2.2.0', VERSION_COMMENT='Hive release version 2.2.0' where VER_ID=1;
  SELECT 'Finished upgrading MetaStore schema from 2.1.0 to 2.2.0' AS ' ';

http://git-wip-us.apache.org/repos/asf/hive/blob/1ceaf357/metastore/scripts/upgrade/oracle/hive-schema-2.2.0.oracle.sql
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/hive/blob/1ceaf357/metastore/scripts/upgrade/oracle/upgrade-2.1.0-to-2.2.0.oracle.sql
----------------------------------------------------------------------
diff --cc metastore/scripts/upgrade/oracle/upgrade-2.1.0-to-2.2.0.oracle.sql
index 058c0d5,53ec681..b2f35de
--- a/metastore/scripts/upgrade/oracle/upgrade-2.1.0-to-2.2.0.oracle.sql
+++ b/metastore/scripts/upgrade/oracle/upgrade-2.1.0-to-2.2.0.oracle.sql
@@@ -1,8 -1,8 +1,9 @@@
  SELECT 'Upgrading MetaStore schema from 2.1.0 to 2.2.0' AS Status from dual;
  
  @037-HIVE-14496.oracle.sql;
 +@038-HIVE-14637.oracle.sql;
  @038-HIVE-10562.oracle.sql;
+ @039-HIVE-12274.oracle.sql;
  
  UPDATE VERSION SET SCHEMA_VERSION='2.2.0', VERSION_COMMENT='Hive release version 2.2.0' where VER_ID=1;
  SELECT 'Finished upgrading MetaStore schema from 2.1.0 to 2.2.0' AS Status from dual;

http://git-wip-us.apache.org/repos/asf/hive/blob/1ceaf357/metastore/scripts/upgrade/postgres/hive-schema-2.2.0.postgres.sql
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/hive/blob/1ceaf357/metastore/scripts/upgrade/postgres/upgrade-2.1.0-to-2.2.0.postgres.sql
----------------------------------------------------------------------
diff --cc metastore/scripts/upgrade/postgres/upgrade-2.1.0-to-2.2.0.postgres.sql
index ae4adf7,732e184..e6daeca
--- a/metastore/scripts/upgrade/postgres/upgrade-2.1.0-to-2.2.0.postgres.sql
+++ b/metastore/scripts/upgrade/postgres/upgrade-2.1.0-to-2.2.0.postgres.sql
@@@ -1,8 -1,8 +1,9 @@@
  SELECT 'Upgrading MetaStore schema from 2.1.0 to 2.2.0';
  
  \i 036-HIVE-14496.postgres.sql;
 +\i 037-HIVE-14637.postgres.sql;
  \i 037-HIVE-10562.postgres.sql;
+ \i 038-HIVE-12274.postgres.sql;
  
  UPDATE "VERSION" SET "SCHEMA_VERSION"='2.2.0', "VERSION_COMMENT"='Hive release version 2.2.0' where "VER_ID"=1;
  SELECT 'Finished upgrading MetaStore schema from 2.1.0 to 2.2.0';