This is an automated email from the ASF dual-hosted git repository.
w41ter pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push:
new fab89c199e5 branch-2.1: [chore](binlog) Add table type to getMeta
method #45942 (#45972)
fab89c199e5 is described below
commit fab89c199e5475b4f9722e21214573852d2ae35f
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Dec 27 20:03:53 2024 +0800
branch-2.1: [chore](binlog) Add table type to getMeta method #45942 (#45972)
Cherry-picked from #45942
Co-authored-by: walter <[email protected]>
---
fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java | 1 +
gensrc/thrift/FrontendService.thrift | 1 +
2 files changed, 2 insertions(+)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java
b/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java
index 0bbe662ec6e..3e3de2e6676 100755
--- a/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java
@@ -6159,6 +6159,7 @@ public class Env {
try {
tableMeta.setId(olapTable.getId());
tableMeta.setName(olapTable.getName());
+ tableMeta.setType(olapTable.getType().name());
PartitionInfo tblPartitionInfo = olapTable.getPartitionInfo();
diff --git a/gensrc/thrift/FrontendService.thrift
b/gensrc/thrift/FrontendService.thrift
index 4853d3a474f..2b753a45ac1 100644
--- a/gensrc/thrift/FrontendService.thrift
+++ b/gensrc/thrift/FrontendService.thrift
@@ -1557,6 +1557,7 @@ struct TGetMetaTableMeta {
2: optional string name
3: optional bool in_trash
4: optional list<TGetMetaPartitionMeta> partitions
+ 5: optional string type
}
struct TGetMetaDBMeta {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]