baifachuan commented on pull request #2987: URL: https://github.com/apache/hive/pull/2987#issuecomment-1031046556
I fixed the bug with check the hive storage path, if it is a ROOT path throw an exception, broken the create table. ``` 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
