quintoandar / hive-metastore-client

A client for connecting and running DDLs on hive metastore.
Apache License 2.0
52 stars 15 forks source link

[DAE-63] Handling exception when adding duplicate partitions #37

Closed LucasMMota closed 3 years ago

LucasMMota commented 3 years ago

Why? :open_book:

The server raises an AlreadyExistsException when some partition is added twice. We want the client doesn't raise an error in this case: if some partition already exists then nothing should be done. This will make the code cleaner for libs users that don't need to handle errors on their side.

What? :wrench:

Type of change :file_cabinet:

How everything was tested? :straight_ruler:

Unit tests

Checklist :memo:

sonarcloud[bot] commented 3 years ago

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication