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

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

                Author: ASF GitHub Bot
            Created on: 09/May/23 08:05
            Start Date: 09/May/23 08:05
    Worklog Time Spent: 10m 
      Work Description: zhangbutao commented on code in PR #4216:
URL: https://github.com/apache/hive/pull/4216#discussion_r1188281049


##########
ql/src/java/org/apache/hadoop/hive/ql/parse/AlterTableCreateBranchSpec.java:
##########
@@ -0,0 +1,63 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.hadoop.hive.ql.parse;
+
+import com.google.common.base.MoreObjects;
+
+public class AlterTableCreateBranchSpec {

Review Comment:
   Finally, i decide not to reuse codes about `alter table execute` syntax , as 
i think it is more important to make code clear and readable.
    I  used `AlterTableBranchSpec ` which looks like the pattern 
`AlterTableExecuteSpec` , and then define inner `CreateBranchSpec` which type 
is `CREATE_BRANCH`. We can continue to add other brancn operation e.g 
`DROP_BRANCH`, `REPLACE_BRANCH`.
   
   Please take a look again to see if it is make more sense. Thanks.





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

    Worklog Id:     (was: 861138)
    Time Spent: 8h 40m  (was: 8.5h)

> Iceberg:  CREATE BRANCH SQL implementation
> ------------------------------------------
>
>                 Key: HIVE-27234
>                 URL: https://issues.apache.org/jira/browse/HIVE-27234
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Iceberg integration
>            Reporter: zhangbutao
>            Assignee: zhangbutao
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 8h 40m
>  Remaining Estimate: 0h
>
> Maybe we can follow spark sql about branch ddl implementation 
> [https://github.com/apache/iceberg/pull/6617]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to