Skip to content

Commit 30f27bd

Browse files
uchenilyYour Name
authored andcommitted
[chore](typo)Fix typos in thrift (#57267)
In Thrift, fields are distinguished by IDs rather than names, so modifying field names does not break compatibility.
1 parent 21a9e98 commit 30f27bd

File tree

9 files changed

+19
-19
lines changed

9 files changed

+19
-19
lines changed

be/src/pipeline/exec/result_sink_operator.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ Status ResultSinkLocalState::init(RuntimeState* state, LocalSinkStateInfo& info)
5656
_sender = _parent->cast<ResultSinkOperatorX>()._sender;
5757
} else {
5858
std::shared_ptr<arrow::Schema> arrow_schema;
59-
if (p._sink_type == TResultSinkType::ARROW_FLIGHT_PROTOCAL) {
59+
if (p._sink_type == TResultSinkType::ARROW_FLIGHT_PROTOCOL) {
6060
RETURN_IF_ERROR(get_arrow_schema_from_expr_ctxs(_output_vexpr_ctxs, &arrow_schema,
6161
state->timezone()));
6262
}
6363
VLOG_DEBUG << "create sender in INIT with instance id " << fragment_instance_id;
6464
RETURN_IF_ERROR(state->exec_env()->result_mgr()->create_sender(
6565
fragment_instance_id, p._result_sink_buffer_size_rows, &_sender, state,
66-
p._sink_type == TResultSinkType::ARROW_FLIGHT_PROTOCAL, arrow_schema));
66+
p._sink_type == TResultSinkType::ARROW_FLIGHT_PROTOCOL, arrow_schema));
6767
}
6868
_sender->set_dependency(fragment_instance_id, _dependency->shared_from_this());
6969
return Status::OK();
@@ -76,7 +76,7 @@ Status ResultSinkLocalState::open(RuntimeState* state) {
7676
auto& p = _parent->cast<ResultSinkOperatorX>();
7777
// create writer based on sink type
7878
switch (p._sink_type) {
79-
case TResultSinkType::MYSQL_PROTOCAL: {
79+
case TResultSinkType::MYSQL_PROTOCOL: {
8080
if (state->mysql_row_binary_format()) {
8181
_writer.reset(new (std::nothrow) vectorized::VMysqlResultWriter<true>(
8282
_sender, _output_vexpr_ctxs, custom_profile()));
@@ -86,7 +86,7 @@ Status ResultSinkLocalState::open(RuntimeState* state) {
8686
}
8787
break;
8888
}
89-
case TResultSinkType::ARROW_FLIGHT_PROTOCAL: {
89+
case TResultSinkType::ARROW_FLIGHT_PROTOCOL: {
9090
_writer.reset(new (std::nothrow) vectorized::VArrowFlightResultWriter(
9191
_sender, _output_vexpr_ctxs, custom_profile()));
9292
break;
@@ -104,10 +104,10 @@ ResultSinkOperatorX::ResultSinkOperatorX(int operator_id, const RowDescriptor& r
104104
const TResultSink& sink)
105105
: DataSinkOperatorX(operator_id, std::numeric_limits<int>::max(),
106106
std::numeric_limits<int>::max()),
107-
_sink_type(!sink.__isset.type || sink.type == TResultSinkType::MYSQL_PROTOCAL
108-
? TResultSinkType::MYSQL_PROTOCAL
107+
_sink_type(!sink.__isset.type || sink.type == TResultSinkType::MYSQL_PROTOCOL
108+
? TResultSinkType::MYSQL_PROTOCOL
109109
: sink.type),
110-
_result_sink_buffer_size_rows(_sink_type == TResultSinkType::ARROW_FLIGHT_PROTOCAL
110+
_result_sink_buffer_size_rows(_sink_type == TResultSinkType::ARROW_FLIGHT_PROTOCOL
111111
? config::arrow_flight_result_sink_buffer_size_rows
112112
: RESULT_SINK_BUFFER_SIZE),
113113
_row_desc(row_desc),
@@ -132,14 +132,14 @@ Status ResultSinkOperatorX::prepare(RuntimeState* state) {
132132

133133
if (state->query_options().enable_parallel_result_sink) {
134134
std::shared_ptr<arrow::Schema> arrow_schema;
135-
if (_sink_type == TResultSinkType::ARROW_FLIGHT_PROTOCAL) {
135+
if (_sink_type == TResultSinkType::ARROW_FLIGHT_PROTOCOL) {
136136
RETURN_IF_ERROR(get_arrow_schema_from_expr_ctxs(_output_vexpr_ctxs, &arrow_schema,
137137
state->timezone()));
138138
}
139139
VLOG_DEBUG << "create sender in prepare with query id " << state->query_id();
140140
RETURN_IF_ERROR(state->exec_env()->result_mgr()->create_sender(
141141
state->query_id(), _result_sink_buffer_size_rows, &_sender, state,
142-
_sink_type == TResultSinkType::ARROW_FLIGHT_PROTOCAL, arrow_schema));
142+
_sink_type == TResultSinkType::ARROW_FLIGHT_PROTOCOL, arrow_schema));
143143
}
144144
return vectorized::VExpr::open(_output_vexpr_ctxs, state);
145145
}

fe/fe-core/src/main/java/org/apache/doris/mysql/MysqlChannel.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public MysqlChannel(StreamConnection connection, ConnectContext context) {
114114
this.remoteIp = "";
115115
this.conn = connection;
116116

117-
// if proxy protocal is enabled, the remote address will be got from proxy protocal header
117+
// if proxy protocol is enabled, the remote address will be got from proxy protocol header
118118
// and overwrite the original remote address.
119119
if (connection.getPeerAddress() instanceof InetSocketAddress) {
120120
InetSocketAddress address = (InetSocketAddress) connection.getPeerAddress();
@@ -638,7 +638,7 @@ private boolean handleUnwrapResult(SSLEngineResult sslEngineResult) {
638638
}
639639
}
640640

641-
// for proxy protocal only
641+
// for proxy protocol only
642642
public void setRemoteAddr(String ip, int port) {
643643
this.remoteIp = ip;
644644
this.remoteHostPortString = NetUtils.getHostPortInAccessibleFormat(ip, port);

fe/fe-core/src/main/java/org/apache/doris/planner/PlanFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public class PlanFragment extends TreeNode<PlanFragment> {
157157
protected boolean hasColocatePlanNode = false;
158158
protected final Supplier<Boolean> hasBucketShuffleJoin;
159159

160-
private TResultSinkType resultSinkType = TResultSinkType.MYSQL_PROTOCAL;
160+
private TResultSinkType resultSinkType = TResultSinkType.MYSQL_PROTOCOL;
161161

162162
public Optional<NereidsSpecifyInstances<ScanSource>> specifyInstances = Optional.empty();
163163

fe/fe-core/src/main/java/org/apache/doris/planner/ResultSink.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class ResultSink extends DataSink {
3434
// Two phase fetch option
3535
private TFetchOption fetchOption;
3636

37-
private TResultSinkType resultSinkType = TResultSinkType.MYSQL_PROTOCAL;
37+
private TResultSinkType resultSinkType = TResultSinkType.MYSQL_PROTOCOL;
3838

3939
public ResultSink(PlanNodeId exchNodeId) {
4040
this.exchNodeId = exchNodeId;

fe/fe-core/src/main/java/org/apache/doris/qe/ConnectContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public enum ConnectType {
240240
private String workloadGroupName = "";
241241
private boolean isGroupCommit;
242242

243-
private TResultSinkType resultSinkType = TResultSinkType.MYSQL_PROTOCAL;
243+
private TResultSinkType resultSinkType = TResultSinkType.MYSQL_PROTOCOL;
244244

245245
private Map<String, Set<String>> dbToTempTableNamesMap = new HashMap<>();
246246

fe/fe-core/src/main/java/org/apache/doris/service/arrowflight/sessions/FlightSqlConnectContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public FlightSqlConnectContext(String peerIdentity) {
4141
this.peerIdentity = peerIdentity;
4242
mysqlChannel = null; // Use of MysqlChannel is not expected
4343
flightSqlChannel = new FlightSqlChannel();
44-
setResultSinkType(TResultSinkType.ARROW_FLIGHT_PROTOCAL);
44+
setResultSinkType(TResultSinkType.ARROW_FLIGHT_PROTOCOL);
4545
init();
4646
}
4747

gensrc/thrift/DataSinks.thrift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ enum TDataSinkType {
4444
}
4545

4646
enum TResultSinkType {
47-
MYSQL_PROTOCAL = 0,
48-
ARROW_FLIGHT_PROTOCAL = 1,
47+
MYSQL_PROTOCOL = 0,
48+
ARROW_FLIGHT_PROTOCOL = 1,
4949
FILE = 2, // deprecated, should not be used any more. FileResultSink is covered by TRESULT_FILE_SINK for concurrent purpose.
5050
}
5151

regression-test/suites/nereids_tpch_p0/tpch/push_topn_to_agg.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ suite("push_topn_to_agg") {
124124
| HAS_COLO_PLAN_NODE: false |
125125
| |
126126
| VRESULT SINK |
127-
| MYSQL_PROTOCAL |
127+
| MYSQL_PROTOCOL |
128128
| |
129129
| 4:VEXCHANGE |
130130
| offset: 0 |

samples/datalake/lakesoul/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ mysql> explain verbose select * from customer_from_spark where c_nationkey < 3;
101101
| HAS_COLO_PLAN_NODE: false |
102102
| |
103103
| VRESULT SINK |
104-
| MYSQL_PROTOCAL |
104+
| MYSQL_PROTOCOL |
105105
| |
106106
| 1:VEXCHANGE |
107107
| offset: 0 |

0 commit comments

Comments
 (0)