morningman commented on code in PR #32615:
URL: https://github.com/apache/doris/pull/32615#discussion_r1542512082
##########
fe/fe-core/src/main/java/org/apache/doris/datasource/trinoconnector/source/TrinoConnectorSplit.java:
##########
@@ -49,4 +61,34 @@ public void setTableFormatType(TableFormatType
tableFormatType) {
this.tableFormatType = tableFormatType;
}
+ private void initSplitInfo() {
+ // set hosts
+ List<HostAddress> addresses = connectorSplit.getAddresses();
+ this.hosts = new String[addresses.size()];
+ for (int i = 0; i < addresses.size(); i++) {
+ hosts[i] = addresses.get(0).getHostText();
+ }
+
+ switch (connectorName.toString()) {
+ case "hive":
+ initHiveSplitInfo();
+ break;
+ default:
+ LOG.warn("Unknow connector name: " + connectorName);
Review Comment:
Change to debug.
Because if user use other connector, there maybe lots of logs
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]