You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Delete Partition — DELETE ddl/database/:db/table/:table/partition/:partition

Description

Delete (drop) a partition in an HCatalog table.

URL

http://www.myserver.com/templeton/v1/ddl/database/:db/table/:table/partition/:partition

Parameters

Name

Description

Required?

Default

:db

The database name

Required

None

:table

The table name

Required

None

:partition

The partition name, col_name='value' list. Be careful to properly encode the quote for http, for example, country=%27algeria%27.

Required

None

ifExists

Hive returns an error if the partition specified does not exist, unless ifExists is set to true.

Optional

false

group

The user group to use

Optional

None

permissions

The permissions string to use. The format is "rwxrw-r-x".

Optional

None

The standard parameters are also supported.

Results

Name

Description

partition

The partition name

table

The table name

database

The database name

Example

Curl Command

% curl -s -X DELETE \
       'http://localhost:50111/templeton/v1/ddl/database/default/table/test_table/partition/country=%27algeria%27?user.name=ctdean'

JSON Output

{
 "partition": "country='algeria'",
 "table": "test_table",
 "database": "default"
}


  • No labels