This is an automated email from the ASF dual-hosted git repository.
diwu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-flink-connector.git
The following commit(s) were added to refs/heads/master by this push:
new 1ad69a2 fix query schema change (#132)
1ad69a2 is described below
commit 1ad69a2eeb1e29b171750e990ad77442a6d4a876
Author: gnehil <[email protected]>
AuthorDate: Thu Apr 20 19:26:36 2023 +0800
fix query schema change (#132)
---
.../apache/doris/flink/sink/writer/JsonDebeziumSchemaSerializer.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/flink-doris-connector/src/main/java/org/apache/doris/flink/sink/writer/JsonDebeziumSchemaSerializer.java
b/flink-doris-connector/src/main/java/org/apache/doris/flink/sink/writer/JsonDebeziumSchemaSerializer.java
index 83b4f5e..8458091 100644
---
a/flink-doris-connector/src/main/java/org/apache/doris/flink/sink/writer/JsonDebeziumSchemaSerializer.java
+++
b/flink-doris-connector/src/main/java/org/apache/doris/flink/sink/writer/JsonDebeziumSchemaSerializer.java
@@ -185,10 +185,10 @@ public class JsonDebeziumSchemaSerializer implements
DorisRecordSerializer<Strin
return params;
}
- private boolean execSchemaChange(String ddl) throws IOException {
+ private boolean execSchemaChange(String ddl) throws IOException,
IllegalArgumentException {
Map<String, String> param = new HashMap<>();
param.put("stmt", ddl);
- String requestUrl = String.format(SCHEMA_CHANGE_API,
dorisOptions.getFenodes(), database);
+ String requestUrl = String.format(SCHEMA_CHANGE_API,
RestService.randomEndpoint(dorisOptions.getFenodes(), LOG), database);
HttpPost httpPost = new HttpPost(requestUrl);
httpPost.setHeader(HttpHeaders.AUTHORIZATION, authHeader());
httpPost.setHeader(HttpHeaders.CONTENT_TYPE, "application/json");
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]