ggjh-159 commented on code in PR #13690: URL: https://github.com/apache/gluten/pull/13690#discussion_r4677446223
########## gluten-flink/ut/src/test/java/org/apache/gluten/rexnode/WindowUtilsTest.java: ########## @@ -0,0 +1,99 @@ +/* + * 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.rexnode; + +import org.apache.flink.api.java.tuple.Tuple5; +import org.apache.flink.table.planner.plan.logical.CumulativeWindowSpec; +import org.apache.flink.table.planner.plan.logical.HoppingWindowSpec; +import org.apache.flink.table.planner.plan.logical.SessionWindowSpec; +import org.apache.flink.table.planner.plan.logical.TimeAttributeWindowingStrategy; +import org.apache.flink.table.planner.plan.logical.TumblingWindowSpec; +import org.apache.flink.table.planner.plan.logical.WindowingStrategy; +import org.apache.flink.table.types.logical.TimestampKind; +import org.apache.flink.table.types.logical.TimestampType; + +import org.junit.Test; + +import java.time.Duration; + +import static org.junit.Assert.assertEquals; + +/** Extracts the window parameters of every TVF window spec into the velox node fields. */ +public class WindowUtilsTest { Review Comment: The three translated ExecNodes and the runtime changes have no SQL-level test at all - the repo carries no window TVF aggregation UT besides the 4 WindowUtilsTest cases, while gluten is the only layer that can verify planner translation -> velox4j serde -> velox operator -> output layout end to end, and the output column positions, the two-stage partial row layout, the keyless wrap, the FILTER mask and the translation-time rejection are all translation logic introduced here. Please add GlutenStreamingTestBase-style SQL tests: single-stage event-time TUMBLE (watermark firing + late drop), HOP merge and chain continuation, SESSION merge, proc-time TUMBLE firing on the tick, two-stage local -> global (event-time TUMBLE/HOP), keyless windows, FILTER, and the update-stream (needRetraction) rejection at translation. ########## gluten-flink/velox4j-ref.txt: ########## @@ -1 +1 @@ -301ddb5849e6a6fb95d6b4f016ddda804c0a1876 +cb5ca6c Review Comment: velox4j-ref.txt pins cb5ca6c, a commit that no longer exists on the velox4j PR branch (its head is now 0ecee593ff8735a90373ac0728a2d02ad6296892 after a force-push), so the flink-test job fails at `git reset --hard cb5ca6c` (exit 128) before running any UT. Please pin the current velox4j PR head as a full sha with the file's trailing newline (pointing the flink.yml clone at the PR branch during development, as #13670 does), and move it to the merged commit once velox4j#81 lands. -- 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]
