CosmosNi commented on code in PR #10201:
URL: https://github.com/apache/seatunnel/pull/10201#discussion_r2638517185


##########
seatunnel-connectors-v2/connector-elasticsearch/src/main/java/org/apache/seatunnel/connectors/seatunnel/elasticsearch/config/ElasticsearchSourceOptions.java:
##########
@@ -109,4 +109,14 @@ public class ElasticsearchSourceOptions extends 
ElasticsearchBaseOptions {
                     .defaultValue(100)
                     .withDescription(
                             "Maximum number of hits to be returned with each 
PIT search request. Similar to scroll_size but for PIT API.");
+
+    public static final Option<List<Map<String, Object>>> RUNTIME_FIELDS =
+            Options.key("runtime_fields")
+                    .type(new TypeReference<List<Map<String, Object>>>() {})

Review Comment:
   The required core fields for runtime_field are indeed name, type, and 
script. They form the minimal valid configuration. However, the current 
implementation also supports optional fields such as script_lang and 
script_params, which are added into the script block. So it’s not limited to 
only those three. 



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