Indhumathi27 commented on code in PR #5393:
URL: https://github.com/apache/hive/pull/5393#discussion_r1738446147


##########
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/storage/compact/AlterTableCompactAnalyzer.java:
##########
@@ -80,13 +91,30 @@ protected void analyzeCommand(TableName tableName, 
Map<String, String> partition
         case HiveParser.TOK_ORDERBY:
           orderBy = 
this.ctx.getTokenRewriteStream().toOriginalString(node.getTokenStartIndex(), 
node.getTokenStopIndex());
           break;
+        case HiveParser.TOK_WHERE:
+          RowResolver rwsch = new RowResolver();
+          Map<String, String> colTypes = new HashMap<>();
+          try {
+            for (FieldSchema fs : getDb().getTable(tableName).getCols()) {
+              TypeInfo columnType = 
TypeInfoUtils.getTypeInfoFromTypeString(fs.getType());
+              rwsch.put(getDb().getTable(tableName).getTableName(), 
fs.getName(), 

Review Comment:
   why are we getting tableName here from 
getDb().getTable(tableName).getTableName(), even though tableName variable 
itself is present?



-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org
For additional commands, e-mail: gitbox-h...@hive.apache.org

Reply via email to