[ 
https://issues.apache.org/jira/browse/HIVE-23806?focusedWorklogId=457999&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-457999
 ]

ASF GitHub Bot logged work on HIVE-23806:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 13/Jul/20 11:47
            Start Date: 13/Jul/20 11:47
    Worklog Time Spent: 10m 
      Work Description: kgyrtkirk commented on a change in pull request #1215:
URL: https://github.com/apache/hive/pull/1215#discussion_r453592530



##########
File path: 
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/utils/MetaStoreServerUtils.java
##########
@@ -501,6 +502,28 @@ public static boolean areSameColumns(List<FieldSchema> 
oldCols, List<FieldSchema
     return ListUtils.isEqualList(oldCols, newCols);
   }
 
+  /**
+   * Returns true if p is a prefix of s.
+   */
+  public static boolean arePrefixColumns(List<FieldSchema> p, 
List<FieldSchema> s) {
+    if (p == s) {
+      return true;
+    }
+    if (p.size() > s.size()) {
+      return false;
+    }
+    Iterator itP = p.iterator();

Review comment:
       of course! :)




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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 457999)
    Time Spent: 40m  (was: 0.5h)

> Avoid clearing column stat states in all partition in case schema is extended
> -----------------------------------------------------------------------------
>
>                 Key: HIVE-23806
>                 URL: https://issues.apache.org/jira/browse/HIVE-23806
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Zoltan Haindrich
>            Assignee: Zoltan Haindrich
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> in case there are many partitions; adding a new column without cascade may 
> take a while - because we want to make sure in schema evolution cases that we 
> don't reuse stats later-on by mistake...
> however this is not neccessary in case the schema is extended



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to