Skip to content

Commit

Permalink
[Refactor] Add some comments (StarRocks#18313)
Browse files Browse the repository at this point in the history
Signed-off-by: sduzh <zhuming9011@qq.com>
  • Loading branch information
sduzh authored and sduzh committed Mar 1, 2023
1 parent bb9d3de commit 4cfbc04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ protected void toThrift(TPlanNode msg) {
if (!olapTable.hasDelete()) {
msg.lake_scan_node.setUnused_output_column_name(unUsedOutputStringColumns);
}
} else {
} else { // If you find yourself changing this code block, see also the above code block, i.e, if (olapTable.isLakeTable) { ... }.
msg.node_type = TPlanNodeType.OLAP_SCAN_NODE;
msg.olap_scan_node =
new TOlapScanNode(desc.getId().asInt(), keyColumnNames, keyColumnTypes, isPreAggregation);
Expand Down
2 changes: 2 additions & 0 deletions gensrc/thrift/PlanNodes.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ struct TSchemaScanNode {
15: optional i64 txn_id
}

// If you find yourself changing this struct, see also TLakeScanNode
struct TOlapScanNode {
1: required Types.TTupleId tuple_id
2: required list<string> key_column_name
Expand Down Expand Up @@ -451,6 +452,7 @@ struct TJDBCScanNode {
5: optional i64 limit
}

// If you find yourself changing this struct, see also TOlapScanNode
struct TLakeScanNode {
1: required Types.TTupleId tuple_id
2: required list<string> key_column_name
Expand Down

0 comments on commit 4cfbc04

Please sign in to comment.