[
https://issues.apache.org/jira/browse/HIVE-2090?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13020103#comment-13020103
]
[email protected] commented on HIVE-2090:
-----------------------------------------------------
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/551/#review462
-----------------------------------------------------------
trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java
<https://reviews.apache.org/r/551/#comment886>
Doesn't look like this list is referenced anywhere. Please remove.
trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/Hive.g
<https://reviews.apache.org/r/551/#comment887>
The message should be "restrict or cascade clause", not "if force clause".
You may also want to consider splitting this into two different rules so that
we can output either "restrict clause" or "cascade clause".
trunk/ql/src/java/org/apache/hadoop/hive/ql/plan/DropDatabaseDesc.java
<https://reviews.apache.org/r/551/#comment888>
Please replace instances of "force" with "cascade" in this file and
everywhere else so that the code is aligned with the HQL grammar.
trunk/ql/src/test/queries/clientpositive/database.q
<https://reviews.apache.org/r/551/#comment889>
Please add a brief comment for each block explaining what you are testing
(see earlier examples in this same test).
trunk/ql/src/test/queries/clientpositive/database.q
<https://reviews.apache.org/r/551/#comment890>
Please add a negative test case that attempts to drop a non-empty DB with
the RESTRICT clause set. You can probably copy the HQL code in
database_drop_not_empty.q
- Carl
On 2011-04-14 00:17:09, Carl Steinbach wrote:
bq.
bq. -----------------------------------------------------------
bq. This is an automatically generated e-mail. To reply, visit:
bq. https://reviews.apache.org/r/551/
bq. -----------------------------------------------------------
bq.
bq. (Updated 2011-04-14 00:17:09)
bq.
bq.
bq. Review request for hive.
bq.
bq.
bq. Summary
bq. -------
bq.
bq. https://issues.apache.org/jira/secure/attachment/12476199/HIVE-2090.5.patch
bq.
bq.
bq. This addresses bug HIVE-2090.
bq. https://issues.apache.org/jira/browse/HIVE-2090
bq.
bq.
bq. Diffs
bq. -----
bq.
bq. trunk/metastore/if/hive_metastore.thrift 1091617
bq. trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h 1091617
bq. trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp 1091617
bq.
trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp
1091617
bq.
trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java
1091617
bq.
trunk/metastore/src/gen/thrift/gen-php/hive_metastore/ThriftHiveMetastore.php
1091617
bq.
trunk/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote
1091617
bq.
trunk/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py
1091617
bq. trunk/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb 1091617
bq.
trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java
1091617
bq.
trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java
1091617
bq.
trunk/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java
1091617
bq. trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java 1091617
bq. trunk/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java 1091617
bq.
trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java
1091617
bq. trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/Hive.g 1091617
bq. trunk/ql/src/java/org/apache/hadoop/hive/ql/plan/DropDatabaseDesc.java
1091617
bq. trunk/ql/src/test/queries/clientpositive/database.q 1091617
bq. trunk/ql/src/test/results/clientpositive/database.q.out 1091617
bq.
bq. Diff: https://reviews.apache.org/r/551/diff
bq.
bq.
bq. Testing
bq. -------
bq.
bq.
bq. Thanks,
bq.
bq. Carl
bq.
bq.
> Add "DROP DATABASE ... FORCE"
> -----------------------------
>
> Key: HIVE-2090
> URL: https://issues.apache.org/jira/browse/HIVE-2090
> Project: Hive
> Issue Type: New Feature
> Components: Metastore
> Reporter: Siying Dong
> Assignee: Siying Dong
> Priority: Minor
> Attachments: HIVE-2090.1.patch, HIVE-2090.2.patch, HIVE-2090.3.patch,
> HIVE-2090.4.patch, HIVE-2090.5.patch
>
>
> A "DROP DATABASE ... FORCE" will be useful, when we use a database for
> isolation when doing some tests. Being able to force cleaning up the database
> will make test cleaning up easier.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira