VasShabu commented on code in PR #30182:
URL: https://github.com/apache/flink/pull/30182#discussion_r4740943967


##########
flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/ptf/DeduplicateCurrentRowFunction.java:
##########
@@ -54,56 +41,20 @@
  * {@code kept} state.
  */
 @Internal
-public class DeduplicateCurrentRowFunction extends DeduplicateFunctionBase {
+public class DeduplicateCurrentRowFunction extends DeduplicateRowFunctionBase {
 
     private static final long serialVersionUID = 1L;
 
     private static final String CURRENT_STATE = "kept";
 
     private final Keep keepMode;
 
-    private final LogicalType[] inputTypes;
-
-    private final boolean isUpdateBeforeEmitted;
-
     private final @Nullable SequenceComparator sequenceComparator;
 
-    private transient RowDataSerializer inputSerializer;
-
-    private transient ProjectedRowData projectedCandidate;
-
-    private transient ProjectedRowData projectedCurrent;
-
-    private transient JoinedRowData retraction;
-
-    private transient RowData emptyRow;
-
     DeduplicateCurrentRowFunction(final SpecializedContext context) {
-        super(
-                context,
-                valueState(
-                        context,
-                        CURRENT_STATE,
-                        DataTypes.ROW(
-                                DataType.getFields(
-                                        
CallContextUtils.getTableSemanticsOrThrow(
-                                                        
context.getCallContext(), ARG_INPUT)
-                                                .dataType())),
-                        ARG_STATE_TTL));
+        super(context, valueState(context, CURRENT_STATE, 
inputRowType(context), ARG_STATE_TTL));

Review Comment:
   or even `currentRow`
   



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

Reply via email to