[ https://issues.apache.org/jira/browse/HIVE-25981?focusedWorklogId=732983&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-732983 ]
ASF GitHub Bot logged work on HIVE-25981: ----------------------------------------- Author: ASF GitHub Bot Created on: 25/Feb/22 10:00 Start Date: 25/Feb/22 10:00 Worklog Time Spent: 10m Work Description: rbalamohan commented on a change in pull request #3052: URL: https://github.com/apache/hive/pull/3052#discussion_r814632395 ########## File path: ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java ########## @@ -13131,7 +13131,8 @@ public void validate() throws SemanticException { LOG.debug("validated " + usedp.getName()); LOG.debug(usedp.getTable().getTableName()); WriteEntity.WriteType writeType = writeEntity.getWriteType(); - if (writeType != WriteType.UPDATE && writeType != WriteType.DELETE) { + if (writeType != WriteType.UPDATE && writeType != WriteType.DELETE && writeType != WriteType.DDL_NO_LOCK Review comment: I am fine with removing this completely for "transactionalInQuery", given this is never used. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 732983) Time Spent: 40m (was: 0.5h) > Avoid checking for archived parts in analyze table > -------------------------------------------------- > > Key: HIVE-25981 > URL: https://issues.apache.org/jira/browse/HIVE-25981 > Project: Hive > Issue Type: Improvement > Components: HiveServer2 > Reporter: Rajesh Balamohan > Priority: Major > Labels: pull-request-available > Time Spent: 40m > Remaining Estimate: 0h > > Analyze table on large partitioned table is expensive due to unwanted checks > on archived data. > > {noformat} > at > org.apache.hadoop.hive.metastore.HiveMetaStoreClient$SynchronizedHandler.invoke(HiveMetaStoreClient.java:3908) > - locked <0x00000003d4c4c070> (a > org.apache.hadoop.hive.metastore.HiveMetaStoreClient$SynchronizedHandler) > at com.sun.proxy.$Proxy56.listPartitionsWithAuthInfo(Unknown Source) > at org.apache.hadoop.hive.ql.metadata.Hive.getPartitions(Hive.java:3845) > at > org.apache.hadoop.hive.ql.exec.ArchiveUtils.conflictingArchiveNameOrNull(ArchiveUtils.java:299) > at > org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.validate(SemanticAnalyzer.java:13579) > at org.apache.hadoop.hive.ql.Compiler.analyze(Compiler.java:241) > at org.apache.hadoop.hive.ql.Compiler.compile(Compiler.java:104) > at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:196) > at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:615) > at org.apache.hadoop.hive.ql.Driver.compileAndRespond(Driver.java:561) > at org.apache.hadoop.hive.ql.Driver.compileAndRespond(Driver.java:555) > at > org.apache.hadoop.hive.ql.reexec.ReExecDriver.compileAndRespond(ReExecDriver.java:127) > at > org.apache.hive.service.cli.operation.SQLOperation.prepare(SQLOperation.java:204) > at > org.apache.hive.service.cli.operation.SQLOperation.runInternal(SQLOperation.java:265) > at > org.apache.hive.service.cli.operation.Operation.run(Operation.java:285) > {noformat} -- This message was sent by Atlassian Jira (v8.20.1#820001)