EricJoy2048 commented on code in PR #6960:
URL: https://github.com/apache/seatunnel/pull/6960#discussion_r1634219198
##########
docs/en/transform-v2/filter.md:
##########
@@ -43,6 +48,21 @@ transform {
}
```
+Or we can delete the field named `age` by adding a `Filter` Transform with the
mode field set to `DELETE` like below:
+
+```
+transform {
+ Filter {
+ source_table_name = "fake"
+ result_table_name = "fake1"
+ fields = [age]
+ mode = "DELETE"
+ }
Review Comment:
> If we rename the original field named `fields` to `include_fields`, this
PR will cause Seatunnel to lose backward compatibility. All users will be
required to update the already existing config files; otherwise, the original
config file won't work properly. I guess it's not acceptable? @hailin0
If we update the config option name and want to be compatible with old
option names, we can use `withFallbackKeys` . Here is a example in class
`MongodbConfig`:
```
public static final Option<String> MATCH_QUERY =
Options.key("match.query")
.stringType()
.noDefaultValue()
.withDescription("Mongodb's query syntax.")
.withFallbackKeys("matchQuery");
```
--
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]