[
https://issues.apache.org/jira/browse/HIVE-26629?focusedWorklogId=819029&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-819029
]
ASF GitHub Bot logged work on HIVE-26629:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 21/Oct/22 07:15
Start Date: 21/Oct/22 07:15
Worklog Time Spent: 10m
Work Description: sonarcloud[bot] commented on PR #3693:
URL: https://github.com/apache/hive/pull/3693#issuecomment-1286555886
Kudos, SonarCloud Quality Gate passed! [](https://sonarcloud.io/dashboard?id=apache_hive&pullRequest=3693)
[](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3693&resolved=false&types=BUG)
[](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3693&resolved=false&types=BUG)
[0
Bugs](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3693&resolved=false&types=BUG)
[](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3693&resolved=false&types=VULNERABILITY)
[](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3693&resolved=false&types=VULNERABILITY)
[0
Vulnerabilities](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3693&resolved=false&types=VULNERABILITY)
[](https://sonarcloud.io/project/security_hotspots?id=apache_hive&pullRequest=3693&resolved=false&types=SECURITY_HOTSPOT)
[](https://sonarcloud.io/project/security_hotspots?id=apache_hive&pullRequest=3693&resolved=false&types=SECURITY_HOTSPOT)
[0 Security
Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_hive&pullRequest=3693&resolved=false&types=SECURITY_HOTSPOT)
[](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3693&resolved=false&types=CODE_SMELL)
[](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3693&resolved=false&types=CODE_SMELL)
[0 Code
Smells](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=3693&resolved=false&types=CODE_SMELL)
[](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=3693&metric=coverage&view=list)
No Coverage information
[](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=3693&metric=duplicated_lines_density&view=list)
No Duplication information
Issue Time Tracking
-------------------
Worklog Id: (was: 819029)
Time Spent: 0.5h (was: 20m)
> Misleading error message with hive.metastore.limit.partition.request
> ---------------------------------------------------------------------
>
> Key: HIVE-26629
> URL: https://issues.apache.org/jira/browse/HIVE-26629
> Project: Hive
> Issue Type: Bug
> Components: HiveServer2, Metastore
> Reporter: Miklos Szurap
> Priority: Major
> Labels: pull-request-available
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Dropping partitions from a table fails with a misleading error message saying
> that "partition not found":
> {code}
> 0: jdbc:hive2://nightly-71x-zx-1.nightly-71x-> alter table t1p drop partition
> (p1>0);
> Error: Error while compiling statement: FAILED: SemanticException [Error
> 10006]: Partition not found (p1 > 0) (state=42000,code=10006)
> {code}
> however the partitions exist, the real error message is visible in the
> HiveServer2 logs:
> {code}
> Caused by: MetaException(message:Number of partitions scanned (=2) on table
> 't1p' exceeds limit (=1). This is controlled on the metastore server by
> hive.metastore.limit.partition.request.)
> at
> org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$get_partitions_by_expr_result$get_partitions_by_expr_resultStandardScheme.read(ThriftHiveMetastore.java)
>
> ...
> {code}
> Hive should surface the real error message to the user, that the
> "hive.metastore.limit.partition.request" limit has been reached.
> This happens only when "hive.metastore.limit.partition.request" is set.
> Haven't verified other types of queries, potentially other queries fail
> similarly.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
