forked from apache/doris
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
151 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
// Licensed to the Apache Software Foundation (ASF) under one | ||
// or more contributor license agreements. See the NOTICE file | ||
// distributed with this work for additional information | ||
// regarding copyright ownership. The ASF licenses this file | ||
// to you under the Apache License, Version 2.0 (the | ||
// "License"); you may not use this file except in compliance | ||
// with the License. You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, | ||
// software distributed under the License is distributed on an | ||
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
// KIND, either express or implied. See the License for the | ||
// specific language governing permissions and limitations | ||
// under the License. | ||
|
||
namespace java org.apache.doris.thrift | ||
|
||
include "Exprs.thrift" | ||
include "Types.thrift" | ||
include "Opcodes.thrift" | ||
include "Descriptors.thrift" | ||
include "Partitions.thrift" | ||
include "PlanNodes.thrift" | ||
|
||
struct TNormalizedOlapScanNode { | ||
1: optional i64 table_id | ||
2: optional i64 index_id | ||
3: optional bool is_preaggregation | ||
4: optional list<string> key_column_names | ||
5: optional list<Types.TPrimitiveType> key_column_types | ||
6: optional string rollup_name | ||
7: optional string sort_column | ||
8: optional list<string> select_columns | ||
9: optional list<Exprs.TExpr> projection | ||
} | ||
|
||
struct TNormalizedAggregateNode { | ||
1: optional list<Exprs.TExpr> grouping_exprs | ||
2: optional list<Exprs.TExpr> aggregate_functions | ||
3: optional Types.TTupleId intermediate_tuple_id | ||
4: optional Types.TTupleId output_tuple_id | ||
5: optional bool is_finalize | ||
6: optional bool use_streaming_preaggregation | ||
} | ||
|
||
struct TNormalizedPlanNode { | ||
1: optional Types.TPlanNodeId node_id | ||
2: optional PlanNodes.TPlanNodeType node_type | ||
3: optional i32 num_children | ||
5: optional set<Types.TTupleId> tuple_ids | ||
6: optional set<Types.TTupleId> nullable_tuples | ||
7: optional list<Exprs.TExpr> conjuncts | ||
8: optional list<Exprs.TExpr> projects | ||
9: optional i64 limit | ||
|
||
10: optional TNormalizedOlapScanNode olap_scan_node | ||
11: optional TNormalizedAggregateNode aggregation_node | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// Licensed to the Apache Software Foundation (ASF) under one | ||
// or more contributor license agreements. See the NOTICE file | ||
// distributed with this work for additional information | ||
// regarding copyright ownership. The ASF licenses this file | ||
// to you under the Apache License, Version 2.0 (the | ||
// "License"); you may not use this file except in compliance | ||
// with the License. You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, | ||
// software distributed under the License is distributed on an | ||
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
// KIND, either express or implied. See the License for the | ||
// specific language governing permissions and limitations | ||
// under the License. | ||
|
||
namespace cpp doris | ||
namespace java org.apache.doris.thrift | ||
|
||
struct TQueryCacheParam { | ||
1: required i32 node_id | ||
|
||
2: required binary digest | ||
|
||
// the query slots order can different to the query cache slots order, | ||
// so we should mapping cache slot id to current slot id | ||
3: required map<i32, i32> output_slot_mapping | ||
|
||
// mapping partition id to tablet id, | ||
// if the table is non-partition table, the partition id is -1 | ||
4: required map<i64, set<i64>> partition_to_tablets | ||
|
||
// mapping partition id to filter range, | ||
// if the table is non-partition table, the partition id is -1. | ||
// BE will use <digest, tablet id, filter range> as the key to search query cache. | ||
// note that, BE not care what the filter range content is, just use as the part of the key. | ||
5: required map<i64, string> partition_filter_key | ||
|
||
6: optional bool force_refresh_query_cache | ||
|
||
7: optional i64 entry_max_bytes | ||
|
||
8: optional i64 entry_max_rows | ||
} |