Skip to content

Commit

Permalink
[DAE-122] Release 1.0.5 (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe Miquelim authored Feb 24, 2021
1 parent 36c945e commit 04a1fcc
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,19 @@ All notable changes to this project will be documented in this file.

Preferably use **Added**, **Changed**, **Removed** and **Fixed** topics in each release or unreleased log for a better organization.

## [1.0.5](https://github.com/quintoandar/hive-metastore-client/releases/tag/1.0.5)
### Added
* Added bulk_drop_partitions method ([#49](https://github.com/quintoandar/hive-metastore-client/pull/49))
* Added get_partition_values_from_table method ([#50](https://github.com/quintoandar/hive-metastore-client/pull/50))
### Changed
* Changed max_parts parameter from get_partitions method to int32 ([#45](https://github.com/quintoandar/hive-metastore-client/pull/45))

## [1.0.4](https://github.com/quintoandar/hive-metastore-client/releases/tag/1.0.4)
### Added
* Added create_external_table method ([#42](https://github.com/quintoandar/hive-metastore-client/pull/42))
* Added get_partition_keys_objects and get_partition_keys_names methods ([#43](https://github.com/quintoandar/hive-metastore-client/pull/43))
### Fixed
* Enforcing type as EXTERNAL when creating external tables ([#41](https://github.com/quintoandar/hive-metastore-client/issues/41))
* Enforced type as EXTERNAL when creating external tables ([#41](https://github.com/quintoandar/hive-metastore-client/issues/41))

## [1.0.3](https://github.com/quintoandar/hive-metastore-client/releases/tag/1.0.3)
### Changed
Expand Down
18 changes: 18 additions & 0 deletions examples/drop_partition.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from hive_metastore_client.builders import PartitionBuilder
from hive_metastore_client import HiveMetastoreClient

HIVE_HOST = "<ADD_HIVE_HOST_HERE>"
HIVE_PORT = 9083

DATABASE_NAME = "database_name"
TABLE_NAME = "table_name"

# Partitions should be provided as list
# Values should be passed in the same hierarchical order of the partitions
partition_values = ["2020", "12", "13"]

with HiveMetastoreClient(HIVE_HOST, HIVE_PORT) as hive_client:
# Dropping respective partition from metastore but keeping its data
hive_client.drop_partition(
DATABASE_NAME, TABLE_NAME, partition_values, deleteData=False
)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import find_packages, setup

__package_name__ = "hive_metastore_client"
__version__ = "1.0.4"
__version__ = "1.0.5"
__repository_url__ = "https://github.com/quintoandar/hive-metastore-client"

with open("requirements.txt") as f:
Expand Down

0 comments on commit 04a1fcc

Please sign in to comment.