[ https://issues.apache.org/jira/browse/HIVE-27405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Butao Zhang resolved HIVE-27405. -------------------------------- Fix Version/s: 4.1.0 Resolution: Fixed Fix has been merged into master branch. Thanks [~tarak271] for the contribution! Thanks [~okumin] for the review! > Throw out the detail error Invalid partition name to the clients > ---------------------------------------------------------------- > > Key: HIVE-27405 > URL: https://issues.apache.org/jira/browse/HIVE-27405 > Project: Hive > Issue Type: Improvement > Components: HiveServer2 > Reporter: Taraka Rama Rao Lethavadla > Assignee: Taraka Rama Rao Lethavadla > Priority: Major > Labels: pull-request-available > Fix For: 4.1.0 > > > When try to MSCK TABLE, if there is a directory that doesn't match the > partition format, the query fails. However, it doesn't thrown out the detail > error information to the client. > > {noformat} > > MSCK table db_1.table_1; > Error: Error while compiling statement: FAILED: Execution Error, return code > 1 from org.apache.hadoop.hive.ql.ddl.DDLTask (state=08S01,code=1){noformat} > From the logs, we are able to see the detailed error which helps the customer > to fix the incorrect partition name withour rasing a case. > {noformat} > 2023-04-11 12:42:18,012 WARN org.apache.hadoop.hive.metastore.Msck: > [6fd73a49-32eb-48e3-907e-00a1a71979e8 HiveServer2-Handler-Pool: > Thread-30852428]: Failed to run metacheck: > org.apache.hadoop.hive.metastore.utils.MetastoreException: Invalid partition > name hdfs://warehouse/db_1.db/table_1/part{noformat} > This error has to be printed out to the client side, so that users can fix it > by themselves before checking logs. -- This message was sent by Atlassian Jira (v8.20.10#820010)