hadoop-hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From na...@apache.org
Subject svn commit: r997851 [1/12] - in /hadoop/hive/branches/branch-0.6: ./ eclipse-templates/ metastore/if/ metastore/src/gen-cpp/ metastore/src/gen-javabean/org/apache/hadoop/hive/metastore/api/ metastore/src/gen-php/ metastore/src/gen-php/hive_metastore/ m...
Date Thu, 16 Sep 2010 17:09:43 GMT
Author: namit
Date: Thu Sep 16 17:09:41 2010
New Revision: 997851

URL: http://svn.apache.org/viewvc?rev=997851&view=rev
Log:
HIVE-675. add database/schema support Hive QL
(Carl Steinbach via namit)


Added:
    hadoop/hive/branches/branch-0.6/eclipse-templates/TestEmbeddedHiveMetaStore.launchtemplate
    hadoop/hive/branches/branch-0.6/eclipse-templates/TestHiveMetaStoreChecker.launchtemplate
    hadoop/hive/branches/branch-0.6/eclipse-templates/TestRemoteMetaStore.launchtemplate
    hadoop/hive/branches/branch-0.6/metastore/src/gen-php/hive_metastore/
    hadoop/hive/branches/branch-0.6/metastore/src/gen-php/hive_metastore/ThriftHiveMetastore.php
    hadoop/hive/branches/branch-0.6/metastore/src/gen-php/hive_metastore/hive_metastore_constants.php
    hadoop/hive/branches/branch-0.6/metastore/src/gen-php/hive_metastore/hive_metastore_types.php
    hadoop/hive/branches/branch-0.6/metastore/src/test/org/apache/hadoop/hive/metastore/TestEmbeddedHiveMetaStore.java
    hadoop/hive/branches/branch-0.6/metastore/src/test/org/apache/hadoop/hive/metastore/TestRemoteHiveMetaStore.java
    hadoop/hive/branches/branch-0.6/ql/src/java/org/apache/hadoop/hive/ql/plan/CreateDatabaseDesc.java
    hadoop/hive/branches/branch-0.6/ql/src/java/org/apache/hadoop/hive/ql/plan/DropDatabaseDesc.java
    hadoop/hive/branches/branch-0.6/ql/src/java/org/apache/hadoop/hive/ql/plan/ShowDatabasesDesc.java
    hadoop/hive/branches/branch-0.6/ql/src/java/org/apache/hadoop/hive/ql/plan/SwitchDatabaseDesc.java
    hadoop/hive/branches/branch-0.6/ql/src/test/queries/clientnegative/database_create_already_exists.q
    hadoop/hive/branches/branch-0.6/ql/src/test/queries/clientnegative/database_create_invalid_name.q
    hadoop/hive/branches/branch-0.6/ql/src/test/queries/clientnegative/database_drop_does_not_exist.q
    hadoop/hive/branches/branch-0.6/ql/src/test/queries/clientnegative/database_drop_not_empty.q
    hadoop/hive/branches/branch-0.6/ql/src/test/queries/clientnegative/database_switch_does_not_exist.q
    hadoop/hive/branches/branch-0.6/ql/src/test/queries/clientpositive/database.q
    hadoop/hive/branches/branch-0.6/ql/src/test/results/clientnegative/database_create_already_exists.q.out
    hadoop/hive/branches/branch-0.6/ql/src/test/results/clientnegative/database_create_invalid_name.q.out
    hadoop/hive/branches/branch-0.6/ql/src/test/results/clientnegative/database_drop_does_not_exist.q.out
    hadoop/hive/branches/branch-0.6/ql/src/test/results/clientnegative/database_drop_not_empty.q.out
    hadoop/hive/branches/branch-0.6/ql/src/test/results/clientnegative/database_switch_does_not_exist.q.out
    hadoop/hive/branches/branch-0.6/ql/src/test/results/clientpositive/database.q.out
Modified:
    hadoop/hive/branches/branch-0.6/.gitignore
    hadoop/hive/branches/branch-0.6/CHANGES.txt
    hadoop/hive/branches/branch-0.6/build-common.xml
    hadoop/hive/branches/branch-0.6/eclipse-templates/TestCliDriver.launchtemplate
    hadoop/hive/branches/branch-0.6/eclipse-templates/TestHive.launchtemplate
    hadoop/hive/branches/branch-0.6/metastore/if/hive_metastore.thrift
    hadoop/hive/branches/branch-0.6/metastore/src/gen-cpp/ThriftHiveMetastore.cpp
    hadoop/hive/branches/branch-0.6/metastore/src/gen-cpp/ThriftHiveMetastore.h
    hadoop/hive/branches/branch-0.6/metastore/src/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp
    hadoop/hive/branches/branch-0.6/metastore/src/gen-cpp/hive_metastore_types.cpp
    hadoop/hive/branches/branch-0.6/metastore/src/gen-cpp/hive_metastore_types.h
    hadoop/hive/branches/branch-0.6/metastore/src/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java
    hadoop/hive/branches/branch-0.6/metastore/src/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java
    hadoop/hive/branches/branch-0.6/metastore/src/gen-php/ThriftHiveMetastore.php
    hadoop/hive/branches/branch-0.6/metastore/src/gen-php/hive_metastore_types.php
    hadoop/hive/branches/branch-0.6/metastore/src/gen-py/hive_metastore/ThriftHiveMetastore-remote
    hadoop/hive/branches/branch-0.6/metastore/src/gen-py/hive_metastore/ThriftHiveMetastore.py
    hadoop/hive/branches/branch-0.6/metastore/src/gen-py/hive_metastore/ttypes.py
    hadoop/hive/branches/branch-0.6/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java
    hadoop/hive/branches/branch-0.6/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java
    hadoop/hive/branches/branch-0.6/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java
    hadoop/hive/branches/branch-0.6/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java
    hadoop/hive/branches/branch-0.6/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java
    hadoop/hive/branches/branch-0.6/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java
    hadoop/hive/branches/branch-0.6/metastore/src/java/org/apache/hadoop/hive/metastore/Warehouse.java
    hadoop/hive/branches/branch-0.6/metastore/src/model/org/apache/hadoop/hive/metastore/model/MDatabase.java
    hadoop/hive/branches/branch-0.6/metastore/src/model/package.jdo
    hadoop/hive/branches/branch-0.6/metastore/src/test/org/apache/hadoop/hive/metastore/TestHiveMetaStore.java
    hadoop/hive/branches/branch-0.6/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java
    hadoop/hive/branches/branch-0.6/ql/src/java/org/apache/hadoop/hive/ql/exec/MoveTask.java
    hadoop/hive/branches/branch-0.6/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java
    hadoop/hive/branches/branch-0.6/ql/src/java/org/apache/hadoop/hive/ql/metadata/Table.java
    hadoop/hive/branches/branch-0.6/ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java
    hadoop/hive/branches/branch-0.6/ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java
    hadoop/hive/branches/branch-0.6/ql/src/java/org/apache/hadoop/hive/ql/parse/Hive.g
    hadoop/hive/branches/branch-0.6/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java
    hadoop/hive/branches/branch-0.6/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzerFactory.java
    hadoop/hive/branches/branch-0.6/ql/src/java/org/apache/hadoop/hive/ql/plan/DDLWork.java
    hadoop/hive/branches/branch-0.6/ql/src/test/org/apache/hadoop/hive/ql/QTestUtil.java
    hadoop/hive/branches/branch-0.6/ql/src/test/org/apache/hadoop/hive/ql/metadata/TestHive.java
    hadoop/hive/branches/branch-0.6/ql/src/test/org/apache/hadoop/hive/ql/metadata/TestHiveMetaStoreChecker.java
    hadoop/hive/branches/branch-0.6/ql/src/test/org/apache/hadoop/hive/ql/metadata/TestPartition.java
    hadoop/hive/branches/branch-0.6/ql/src/test/queries/clientpositive/add_part_exist.q
    hadoop/hive/branches/branch-0.6/ql/src/test/queries/clientpositive/alter1.q
    hadoop/hive/branches/branch-0.6/ql/src/test/queries/clientpositive/alter2.q
    hadoop/hive/branches/branch-0.6/ql/src/test/queries/clientpositive/alter3.q
    hadoop/hive/branches/branch-0.6/ql/src/test/queries/clientpositive/rename_column.q
    hadoop/hive/branches/branch-0.6/ql/src/test/results/clientnegative/invalid_t_alter2.q.out
    hadoop/hive/branches/branch-0.6/ql/src/test/results/clientnegative/load_wrong_fileformat_txt_seq.q.out
    hadoop/hive/branches/branch-0.6/ql/src/test/results/clientpositive/add_part_exist.q.out
    hadoop/hive/branches/branch-0.6/ql/src/test/results/clientpositive/alter1.q.out
    hadoop/hive/branches/branch-0.6/ql/src/test/results/clientpositive/alter2.q.out
    hadoop/hive/branches/branch-0.6/ql/src/test/results/clientpositive/alter3.q.out
    hadoop/hive/branches/branch-0.6/ql/src/test/results/clientpositive/archive.q.out
    hadoop/hive/branches/branch-0.6/ql/src/test/results/clientpositive/rename_column.q.out

Modified: hadoop/hive/branches/branch-0.6/.gitignore
URL: http://svn.apache.org/viewvc/hadoop/hive/branches/branch-0.6/.gitignore?rev=997851&r1=997850&r2=997851&view=diff
==============================================================================
--- hadoop/hive/branches/branch-0.6/.gitignore (original)
+++ hadoop/hive/branches/branch-0.6/.gitignore Thu Sep 16 17:09:41 2010
@@ -6,3 +6,4 @@ build-eclipse
 .settings
 *.launch
 *~
+metastore_db

Modified: hadoop/hive/branches/branch-0.6/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hive/branches/branch-0.6/CHANGES.txt?rev=997851&r1=997850&r2=997851&view=diff
==============================================================================
--- hadoop/hive/branches/branch-0.6/CHANGES.txt (original)
+++ hadoop/hive/branches/branch-0.6/CHANGES.txt Thu Sep 16 17:09:41 2010
@@ -105,6 +105,9 @@ Release 0.6.0 -  Unreleased
     HIVE-1307. More efficient merge
     (Ning Zhang via namit)
 
+    HIVE-675. add database/schema support Hive QL
+    (Carl Steinbach via namit)
+
   IMPROVEMENTS
     HIVE-983. Function from_unixtime takes long.
     (Ning Zhang via zshao)

Modified: hadoop/hive/branches/branch-0.6/build-common.xml
URL: http://svn.apache.org/viewvc/hadoop/hive/branches/branch-0.6/build-common.xml?rev=997851&r1=997850&r2=997851&view=diff
==============================================================================
--- hadoop/hive/branches/branch-0.6/build-common.xml (original)
+++ hadoop/hive/branches/branch-0.6/build-common.xml Thu Sep 16 17:09:41 2010
@@ -428,7 +428,7 @@
       <batchtest todir="${test.build.dir}" unless="testcase">
         <fileset dir="${test.build.classes}"
                  includes="**/${test.include}.class"
-                 excludes="**/TestSerDe.class,**/*$*.class" />
+                 excludes="**/TestSerDe.class,**/TestHiveMetaStore.class,**/*$*.class" />
       </batchtest>
       <batchtest todir="${test.build.dir}" if="testcase">
         <fileset dir="${test.build.classes}" includes="**/${testcase}.class"/>

Modified: hadoop/hive/branches/branch-0.6/eclipse-templates/TestCliDriver.launchtemplate
URL: http://svn.apache.org/viewvc/hadoop/hive/branches/branch-0.6/eclipse-templates/TestCliDriver.launchtemplate?rev=997851&r1=997850&r2=997851&view=diff
==============================================================================
--- hadoop/hive/branches/branch-0.6/eclipse-templates/TestCliDriver.launchtemplate (original)
+++ hadoop/hive/branches/branch-0.6/eclipse-templates/TestCliDriver.launchtemplate Thu Sep
16 17:09:41 2010
@@ -21,6 +21,6 @@
   <booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
   <stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.apache.hadoop.hive.cli.TestCliDriver"/>
   <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="@PROJECT@"/>
-  <stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dhive.root.logger=INFO,console
-Dtest.tmp.dir=&quot;${workspace_loc:@PROJECT@}/build/ql/tmp&quot; -Dbuild.dir=&quot;${workspace_loc:@PROJECT@}/build/ql&quot;
-Dbuild.dir.hive=&quot;${workspace_loc:@PROJECT@}/build&quot; -Dversion=&quot;@HIVE_VERSION@&quot;"/>
+  <stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dhive.root.logger=INFO,console
-Dtest.tmp.dir=&quot;${workspace_loc:@PROJECT@}/build/ql/tmp&quot; -Dtest.warehouse.dir=&quot;pfile://${workspace_loc:@PROJECT@}/build/test/data/warehouse&quot;
-Dbuild.dir=&quot;${workspace_loc:@PROJECT@}/build/ql&quot; -Dbuild.dir.hive=&quot;${workspace_loc:@PROJECT@}/build&quot;
-Dversion=&quot;@HIVE_VERSION@&quot;"/>
   <stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:@PROJECT@}/ql"/>
 </launchConfiguration>

Added: hadoop/hive/branches/branch-0.6/eclipse-templates/TestEmbeddedHiveMetaStore.launchtemplate
URL: http://svn.apache.org/viewvc/hadoop/hive/branches/branch-0.6/eclipse-templates/TestEmbeddedHiveMetaStore.launchtemplate?rev=997851&view=auto
==============================================================================
--- hadoop/hive/branches/branch-0.6/eclipse-templates/TestEmbeddedHiveMetaStore.launchtemplate
(added)
+++ hadoop/hive/branches/branch-0.6/eclipse-templates/TestEmbeddedHiveMetaStore.launchtemplate
Thu Sep 16 17:09:41 2010
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<launchConfiguration type="org.eclipse.jdt.junit.launchconfig">
+  <booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="false"/>
+  <mapAttribute key="org.eclipse.debug.core.environmentVariables">
+    <mapEntry key="JAVA_HOME" value="${system_property:java.home}"/>
+    <mapEntry key="HADOOP_HOME" value="${workspace_loc:@PROJECT@}/build/hadoopcore/hadoop-@HADOOPVER@"/>
+  </mapAttribute>
+  <stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
+  <booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
+  <stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
+  <stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit3"/>
+  <listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
+    <listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry
containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; javaProject=&quot;@PROJECT@&quot;
path=&quot;1&quot; type=&quot;4&quot;/&gt;&#10;"/>
+    <listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry
internalArchive=&quot;/@PROJECT@/build/metastore/hive-model-@HIVE_VERSION@.jar&quot;
path=&quot;3&quot; type=&quot;2&quot;/&gt;&#10;"/>
+    <listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry
internalArchive=&quot;/@PROJECT@/metastore/src/model&quot; path=&quot;3&quot;
type=&quot;2&quot;/&gt;&#10;"/>
+    <listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry
internalArchive=&quot;/@PROJECT@/build/hadoopcore/hadoop-@HADOOPVER@/conf&quot; path=&quot;3&quot;
type=&quot;2&quot;/&gt;&#10;"/>
+    <listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry
internalArchive=&quot;/@PROJECT@/data/conf&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#10;"/>
+    <listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry
id=&quot;org.eclipse.jdt.launching.classpathentry.defaultClasspath&quot;&gt;&#10;&lt;memento
exportedEntriesOnly=&quot;false&quot; project=&quot;@PROJECT@&quot;/&gt;&#10;&lt;/runtimeClasspathEntry&gt;&#10;"/>
+    <listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry
internalArchive=&quot;/@PROJECT@/conf&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#10;"/>
+  </listAttribute>
+  <booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
+  <stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.apache.hadoop.hive.metastore.TestEmbeddedHiveMetaStore"/>
+  <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="@PROJECT@"/>
+  <stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dhive.root.logger=INFO,console
-Dtest.tmp.dir=&quot;${workspace_loc:@PROJECT@}/build/ql/tmp&quot; -Dtest.warehouse.dir=&quot;pfile://${workspace_loc:@PROJECT@}/build/test/data/warehouse&quot;
-Dbuild.dir=&quot;${workspace_loc:@PROJECT@}/build/ql&quot; -Dbuild.dir.hive=&quot;${workspace_loc:@PROJECT@}/build&quot;
-Dversion=&quot;@HIVE_VERSION@&quot;"/>
+  <stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:@PROJECT@}/ql"/>
+</launchConfiguration>

Modified: hadoop/hive/branches/branch-0.6/eclipse-templates/TestHive.launchtemplate
URL: http://svn.apache.org/viewvc/hadoop/hive/branches/branch-0.6/eclipse-templates/TestHive.launchtemplate?rev=997851&r1=997850&r2=997851&view=diff
==============================================================================
--- hadoop/hive/branches/branch-0.6/eclipse-templates/TestHive.launchtemplate (original)
+++ hadoop/hive/branches/branch-0.6/eclipse-templates/TestHive.launchtemplate Thu Sep 16 17:09:41
2010
@@ -21,6 +21,6 @@
   <booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
   <stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.apache.hadoop.hive.ql.metadata.TestHive"/>
   <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="@PROJECT@"/>
-  <stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dhive.root.logger=INFO,console
-Dtest.tmp.dir=&quot;${workspace_loc:@PROJECT@}/build/ql/tmp&quot; -Dbuild.dir=&quot;${workspace_loc:@PROJECT@}/build/ql&quot;
-Dbuild.dir.hive=&quot;${workspace_loc:@PROJECT@}/build&quot; -Dversion=&quot;@HIVE_VERSION@&quot;"/>
+  <stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dhive.root.logger=INFO,console
-Dtest.tmp.dir=&quot;${workspace_loc:@PROJECT@}/build/ql/tmp&quot; -Dtest.warehouse.dir=&quot;pfile://${workspace_loc:@PROJECT@}/build/test/data/warehouse&quot;
-Dbuild.dir=&quot;${workspace_loc:@PROJECT@}/build/ql&quot; -Dbuild.dir.hive=&quot;${workspace_loc:@PROJECT@}/build&quot;
-Dversion=&quot;@HIVE_VERSION@&quot;"/>
   <stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:@PROJECT@}/ql"/>
 </launchConfiguration>

Added: hadoop/hive/branches/branch-0.6/eclipse-templates/TestHiveMetaStoreChecker.launchtemplate
URL: http://svn.apache.org/viewvc/hadoop/hive/branches/branch-0.6/eclipse-templates/TestHiveMetaStoreChecker.launchtemplate?rev=997851&view=auto
==============================================================================
--- hadoop/hive/branches/branch-0.6/eclipse-templates/TestHiveMetaStoreChecker.launchtemplate
(added)
+++ hadoop/hive/branches/branch-0.6/eclipse-templates/TestHiveMetaStoreChecker.launchtemplate
Thu Sep 16 17:09:41 2010
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<launchConfiguration type="org.eclipse.jdt.junit.launchconfig">
+  <booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="false"/>
+  <mapAttribute key="org.eclipse.debug.core.environmentVariables">
+    <mapEntry key="JAVA_HOME" value="${system_property:java.home}"/>
+    <mapEntry key="HADOOP_HOME" value="${workspace_loc:@PROJECT@}/build/hadoopcore/hadoop-@HADOOPVER@"/>
+  </mapAttribute>
+  <stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
+  <booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
+  <stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
+  <stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit3"/>
+  <listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
+    <listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry
containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; javaProject=&quot;@PROJECT@&quot;
path=&quot;1&quot; type=&quot;4&quot;/&gt;&#10;"/>
+    <listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry
internalArchive=&quot;/@PROJECT@/build/metastore/hive-model-@HIVE_VERSION@.jar&quot;
path=&quot;3&quot; type=&quot;2&quot;/&gt;&#10;"/>
+    <listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry
internalArchive=&quot;/@PROJECT@/metastore/src/model&quot; path=&quot;3&quot;
type=&quot;2&quot;/&gt;&#10;"/>
+    <listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry
internalArchive=&quot;/@PROJECT@/build/hadoopcore/hadoop-@HADOOPVER@/conf&quot; path=&quot;3&quot;
type=&quot;2&quot;/&gt;&#10;"/>
+    <listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry
internalArchive=&quot;/@PROJECT@/data/conf&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#10;"/>
+    <listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry
id=&quot;org.eclipse.jdt.launching.classpathentry.defaultClasspath&quot;&gt;&#10;&lt;memento
exportedEntriesOnly=&quot;false&quot; project=&quot;@PROJECT@&quot;/&gt;&#10;&lt;/runtimeClasspathEntry&gt;&#10;"/>
+    <listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry
internalArchive=&quot;/@PROJECT@/conf&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#10;"/>
+  </listAttribute>
+  <booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
+  <stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.apache.hadoop.hive.ql.metadata.TestHiveMetaStoreChecker"/>
+  <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="@PROJECT@"/>
+  <stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dhive.root.logger=INFO,console
-Dtest.tmp.dir=&quot;${workspace_loc:@PROJECT@}/build/ql/tmp&quot; -Dtest.warehouse.dir=&quot;pfile://${workspace_loc:@PROJECT@}/build/test/data/warehouse&quot;
-Dbuild.dir=&quot;${workspace_loc:@PROJECT@}/build/ql&quot; -Dbuild.dir.hive=&quot;${workspace_loc:@PROJECT@}/build&quot;
-Dversion=&quot;@HIVE_VERSION@&quot;"/>
+  <stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:@PROJECT@}/ql"/>
+</launchConfiguration>

Added: hadoop/hive/branches/branch-0.6/eclipse-templates/TestRemoteMetaStore.launchtemplate
URL: http://svn.apache.org/viewvc/hadoop/hive/branches/branch-0.6/eclipse-templates/TestRemoteMetaStore.launchtemplate?rev=997851&view=auto
==============================================================================
--- hadoop/hive/branches/branch-0.6/eclipse-templates/TestRemoteMetaStore.launchtemplate (added)
+++ hadoop/hive/branches/branch-0.6/eclipse-templates/TestRemoteMetaStore.launchtemplate Thu
Sep 16 17:09:41 2010
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<launchConfiguration type="org.eclipse.jdt.junit.launchconfig">
+  <booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="false"/>
+  <mapAttribute key="org.eclipse.debug.core.environmentVariables">
+    <mapEntry key="JAVA_HOME" value="${system_property:java.home}"/>
+    <mapEntry key="HADOOP_HOME" value="${workspace_loc:@PROJECT@}/build/hadoopcore/hadoop-@HADOOPVER@"/>
+  </mapAttribute>
+  <stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
+  <booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
+  <stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
+  <stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit3"/>
+  <listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
+    <listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry
containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; javaProject=&quot;@PROJECT@&quot;
path=&quot;1&quot; type=&quot;4&quot;/&gt;&#10;"/>
+    <listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry
internalArchive=&quot;/@PROJECT@/build/metastore/hive-model-@HIVE_VERSION@.jar&quot;
path=&quot;3&quot; type=&quot;2&quot;/&gt;&#10;"/>
+    <listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry
internalArchive=&quot;/@PROJECT@/metastore/src/model&quot; path=&quot;3&quot;
type=&quot;2&quot;/&gt;&#10;"/>
+    <listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry
internalArchive=&quot;/@PROJECT@/build/hadoopcore/hadoop-@HADOOPVER@/conf&quot; path=&quot;3&quot;
type=&quot;2&quot;/&gt;&#10;"/>
+    <listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry
internalArchive=&quot;/@PROJECT@/data/conf&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#10;"/>
+    <listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry
id=&quot;org.eclipse.jdt.launching.classpathentry.defaultClasspath&quot;&gt;&#10;&lt;memento
exportedEntriesOnly=&quot;false&quot; project=&quot;@PROJECT@&quot;/&gt;&#10;&lt;/runtimeClasspathEntry&gt;&#10;"/>
+    <listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry
internalArchive=&quot;/@PROJECT@/conf&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#10;"/>
+  </listAttribute>
+  <booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
+  <stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore"/>
+  <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="@PROJECT@"/>
+  <stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dhive.root.logger=INFO,console
-Dtest.tmp.dir=&quot;${workspace_loc:@PROJECT@}/build/ql/tmp&quot; -Dtest.warehouse.dir=&quot;pfile://${workspace_loc:@PROJECT@}/build/test/data/warehouse&quot;
-Dbuild.dir=&quot;${workspace_loc:@PROJECT@}/build/ql&quot; -Dbuild.dir.hive=&quot;${workspace_loc:@PROJECT@}/build&quot;
-Dversion=&quot;@HIVE_VERSION@&quot;"/>
+  <stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc:@PROJECT@}/ql"/>
+</launchConfiguration>

Modified: hadoop/hive/branches/branch-0.6/metastore/if/hive_metastore.thrift
URL: http://svn.apache.org/viewvc/hadoop/hive/branches/branch-0.6/metastore/if/hive_metastore.thrift?rev=997851&r1=997850&r2=997851&view=diff
==============================================================================
--- hadoop/hive/branches/branch-0.6/metastore/if/hive_metastore.thrift (original)
+++ hadoop/hive/branches/branch-0.6/metastore/if/hive_metastore.thrift Thu Sep 16 17:09:41
2010
@@ -33,6 +33,7 @@ struct Type {
 struct Database {
   1: string name,
   2: string description,
+  3: string locationUri,
 }
 
 // This object holds the information needed by SerDes
@@ -148,16 +149,16 @@ exception ConfigValSecurityException {
 */
 service ThriftHiveMetastore extends fb303.FacebookService
 {
-  bool create_database(1:string name, 2:string description)
-                                       throws(1:AlreadyExistsException o1, 2:MetaException
o2)
+  void create_database(1:Database database) throws(1:AlreadyExistsException o1, 2:InvalidObjectException
o2, 3:MetaException o3)
   Database get_database(1:string name) throws(1:NoSuchObjectException o1, 2:MetaException
o2)
-  bool drop_database(1:string name)    throws(2:MetaException o2)
-  list<string> get_databases()         throws(1:MetaException o1)
+  void drop_database(1:string name, 2:bool deleteData) throws(1:NoSuchObjectException o1,
2:InvalidOperationException o2, 3:MetaException o3)
+  list<string> get_databases(1:string pattern) throws(1:MetaException o1)
+  list<string> get_all_databases() throws(1:MetaException o1)
 
   // returns the type with given name (make seperate calls for the dependent types if needed)
-  Type get_type(1:string name)  throws(1:MetaException o2)
+  Type get_type(1:string name)  throws(1:MetaException o1, 2:NoSuchObjectException o2)
   bool create_type(1:Type type) throws(1:AlreadyExistsException o1, 2:InvalidObjectException
o2, 3:MetaException o3)
-  bool drop_type(1:string type) throws(1:MetaException o2)
+  bool drop_type(1:string type) throws(1:MetaException o1, 2:NoSuchObjectException o2)
   map<string, Type> get_type_all(1:string name)
                                 throws(1:MetaException o2)
 
@@ -180,8 +181,8 @@ service ThriftHiveMetastore extends fb30
   // delete data (including partitions) if deleteData is set to true
   void drop_table(1:string dbname, 2:string name, 3:bool deleteData)
                        throws(1:NoSuchObjectException o1, 2:MetaException o3)
-  list<string> get_tables(1: string db_name, 2: string pattern)
-                       throws (1: MetaException o1)
+  list<string> get_tables(1: string db_name, 2: string pattern) throws (1: MetaException
o1)
+  list<string> get_all_tables(1: string db_name) throws (1: MetaException o1)
 
   Table get_table(1:string dbname, 2:string tbl_name)
                        throws (1:MetaException o1, 2:NoSuchObjectException o2)



Mime
View raw message