PHILO-HE commented on code in PR #9446: URL: https://github.com/apache/incubator-gluten/pull/9446#discussion_r2076698499
########## gluten-flink/runtime/src/main/java/org/apache/gluten/util/PlanNodeIdGenerator.java: ########## @@ -0,0 +1,28 @@ +/* + * 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.gluten.util; + +import java.util.concurrent.atomic.AtomicInteger; + +/** Generate a unique id for each velox PlanNode */ +public class PlanNodeIdGenerator { + private static final AtomicInteger ID_COUNTER = new AtomicInteger(0); + + public static String newId() { + return String.valueOf(ID_COUNTER.incrementAndGet()); Review Comment: Nit: getAndIncrement ########## gluten-flink/planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/stream/StreamExecCalc.java: ########## @@ -112,41 +111,40 @@ public Transformation<RowData> translateToPlanInternal( final Transformation<RowData> inputTransform = (Transformation<RowData>) inputEdge.translateToPlan(planner); - Type inputType = LogicalTypeConverter.toVLType(inputEdge.getOutputType()); + /// These codes are changed for gluten Review Comment: Nit: Recommend to use the below comments to improve readability and visually separate the section. // --- Begin Gluten-specific code changes --- // --- End Gluten-specific code changes --- -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
