You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2022/02/10 01:55:38 UTC

[GitHub] [hive] baifachuan commented on pull request #3009: HIVE-25912: Drop external table throw NPE if the location set to ROOT…

baifachuan commented on pull request #3009:
URL: https://github.com/apache/hive/pull/3009#issuecomment-1034406701


   The other PR for Hive 3.1.2: https://github.com/apache/hive/pull/2987
   
   I fixed the bug with check the hive storage path, if it is a ROOT path throw an exception, broken the create table behavior.
   
   ```
   DEBUG : Shutting down query CREATE EXTERNAL TABLE `fcbai1`(
   `inv_item_sk` int,
   `inv_warehouse_sk` int,
   `inv_quantity_on_hand` int)
   PARTITIONED BY (
   `inv_date_sk` int) STORED AS ORC
   LOCATION
   'hdfs://127.0.0.1:8020/'
   Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. InvalidObjectException(message:fcbai1 location must not be root path) (state=08S01,code=1)
   ```
   
   Ensure that creating tables and dropping tables behave the same.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org