You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "davidradl (via GitHub)" <gi...@apache.org> on 2024/12/05 14:18:23 UTC
Re: [PR] [FLINK-36675][table-planner] Always serialize dynamic options to exec json plan [flink]
davidradl commented on code in PR #25626:
URL: https://github.com/apache/flink/pull/25626#discussion_r1871467566
##########
flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/spec/DynamicTableSinkSpec.java:
##########
@@ -59,18 +58,14 @@ public class DynamicTableSinkSpec extends DynamicTableSpecBase {
@JsonCreator
public DynamicTableSinkSpec(
@JsonProperty(FIELD_NAME_CATALOG_TABLE) ContextResolvedTable contextResolvedTable,
+ @Nullable @JsonProperty(FIELD_NAME_DYNAMIC_OPTIONS) Map<String, String> dynamicOptions,
@Nullable @JsonProperty(FIELD_NAME_SINK_ABILITIES) List<SinkAbilitySpec> sinkAbilities,
@Nullable @JsonProperty(FIELD_NAME_TARGET_COLUMNS) int[][] targetColumns) {
- this.contextResolvedTable = contextResolvedTable;
+ super(contextResolvedTable, dynamicOptions);
this.sinkAbilities = sinkAbilities;
this.targetColumns = targetColumns;
}
- @JsonGetter(FIELD_NAME_CATALOG_TABLE)
Review Comment:
I am curious why are we removing this getter, when we still have @JsonGetter(FIELD_NAME_SINK_ABILITIES).
Do non-nullable fields automatically have a getter?
--
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: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org