gustavodemorais commented on code in PR #30016:
URL: https://github.com/apache/flink/pull/30016#discussion_r4641829706


##########
flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/inference/SystemTypeInference.java:
##########
@@ -403,12 +404,19 @@ public Optional<DataType> inferType(CallContext 
callContext) {
                                 // - Flink SESSION windows add pass-through 
columns at the beginning
                                 // - Oracle adds pass-through columns for all 
ROW semantics args, so
                                 // this whole topic is kind of vendor specific 
already
+                                final List<Field> rowtimeFields =
+                                        disableSystemArgs
+                                                ? List.of()
+                                                : 
deriveRowtimeField(callContext, resolvedArgs);
+                                // The on_time rowtime replaces any forwarded 
time attribute

Review Comment:
   Tried to think about some e2e examples to understand what makes sense.
   
   - Windows work fine and you can pick either
   - However, two rowtime attributes break INSERT INTO and toDataStream ("more 
than one rowtime attribute column")
   
   So I'd keep only rowtime when on_time is set to keep it standard for now and 
we don't have to think about sink 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]

Reply via email to