nice




------------------ Original ------------------
From: 陈明雨 <morning...@163.com&gt;
Date: Mon,May 30,2022 1:00 PM
To: dev <dev@doris.apache.org&gt;
Subject: Re: Re:Re: Re: [Discuss][DSIP] Support Multi Catalog



Actually, in my design, after user creating an external datasource, he can 
access the external databases and tables directly, and no need to create the 
metadata mapping manuelly.




--

此致!Best Regards
陈明雨 Mingyu Chen

Email:
chenmin...@apache.org





在 2022-05-30 12:52:49,"张家峰" <zhang...@gmail.com&gt; 写道:
&gt;how to create an exterior:
&gt;
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; When using external tables in this 
management method, it is best not
&gt;to manually create the mapping of each table, so that users can use it
&gt;without perception, especially the field mapping of the external table,
&gt;which can be simplified to the point where the user only needs to create an
&gt;external data source. resource , and then create a foreign table. You don't
&gt;need to specify the order of fields. You only need to specify the resource
&gt;and attributes corresponding to this table (which table corresponds to the
&gt;data source). If you can create an external data source in Doris, you can
&gt;create database by specifying the external data source. attribute, and then
&gt;the user can view the best appearance through the show tables method under
&gt;this database;
&gt;
&gt;
&gt;
&gt;jiafeng.Zhang
&gt;
&gt;
&gt;陈明雨 <morning...@163.com&gt; 于2022年5月30日周一 12:39写道:
&gt;
&gt;&gt; 1. Permission
&gt;&gt;
&gt;&gt;
&gt;&gt; In my design, the permission system of the external data source is
&gt;&gt; decoupled from Doris' own permission system.
&gt;&gt; First, when creating an external data source, the user will specify an
&gt;&gt; account of the external data source to connect to (named ”proxy 
account”),
&gt;&gt; and the permissions of this account to the external data source are 
managed
&gt;&gt; by the external data source itself.
&gt;&gt; Inside Doris, we still use the current permission management mechanism 
to
&gt;&gt; manage the read and write permissions of the database or table in the
&gt;&gt; external data source.
&gt;&gt;
&gt;&gt;
&gt;&gt; For example, if I grant read permission to table A on the Doris side, 
but
&gt;&gt; the proxy account does not have read permission to table A, an error 
will
&gt;&gt; be reported when the actual access is made. These are two logics that 
do
&gt;&gt; not affect each other.
&gt;&gt;
&gt;&gt;
&gt;&gt; 2. Direction
&gt;&gt;
&gt;&gt;
&gt;&gt; Many users' data is stored in external data sources, but they hopes to
&gt;&gt; have a unified data access portal for offline and online analysis,
&gt;&gt; federated query and other operations. The purpose of this function is 
to
&gt;&gt; give Doris the ability to "unify SQL entry".
&gt;&gt; At this stage, we need to solve the problem of metadata mapping and 
data
&gt;&gt; access unification for external data sources such as hive, iceberg, and
&gt;&gt; hudi.
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; --
&gt;&gt;
&gt;&gt; 此致!Best Regards
&gt;&gt; 陈明雨 Mingyu Chen
&gt;&gt;
&gt;&gt; Email:
&gt;&gt; chenmin...@apache.org
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; At 2022-05-30 10:54:08, "ling miao" <lingm...@apache.org&gt; wrote:
&gt;&gt; &gt;Regarding permissions, there is currently a difference between 
Doris's
&gt;&gt; &gt;permission system and the external permission system. For external 
data
&gt;&gt; &gt;sources, still use Doris's permissions, or use the permissions of 
external
&gt;&gt; &gt;data sources?
&gt;&gt; &gt;
&gt;&gt; &gt;As far as the current architecture is concerned, Doris is still a 
system
&gt;&gt; &gt;based on querying its own table and has made many optimizations on 
this
&gt;&gt; &gt;basis.
&gt;&gt; &gt;Supporting such functions at this stage, what *direction* do you 
hope
&gt;&gt; Doris
&gt;&gt; &gt;will develop in the future? What *other features* are planned 
besides
&gt;&gt; this?
&gt;&gt; &gt;
&gt;&gt; &gt;
&gt;&gt; &gt;
&gt;&gt; &gt;陈明雨 <morning...@163.com&gt; 于2022年5月27日周五 18:10写道:
&gt;&gt; &gt;
&gt;&gt; &gt;&gt; Hi all,
&gt;&gt; &gt;&gt; I plan to support multi catalog in Doris to manager all 
external
&gt;&gt; &gt;&gt; datasource such as hive, iceberg, hudi, es, odbc, etc.
&gt;&gt; &gt;&gt; I have created a DSIP[1] for this.
&gt;&gt; &gt;&gt; And here is the first PR to add some new interface and 
class[2]
&gt;&gt; &gt;&gt;
&gt;&gt; &gt;&gt;
&gt;&gt; &gt;&gt; Please feel free to discuss.
&gt;&gt; &gt;&gt;
&gt;&gt; &gt;&gt;
&gt;&gt; &gt;&gt;
&gt;&gt; &gt;&gt;
&gt;&gt; &gt;&gt; [1]
&gt;&gt; &gt;&gt;
&gt;&gt; 
https://cwiki.apache.org/confluence/display/DORIS/DSIP-014%3A+Multi+Catalog+Support
&gt;&gt; &gt;&gt;
&gt;&gt; &gt;&gt; [2] https://github.com/apache/incubator-doris/pull/9812
&gt;&gt; &gt;&gt;
&gt;&gt; &gt;&gt;
&gt;&gt; &gt;&gt;
&gt;&gt; &gt;&gt;
&gt;&gt; &gt;&gt; --
&gt;&gt; &gt;&gt;
&gt;&gt; &gt;&gt; 此致!Best Regards
&gt;&gt; &gt;&gt; 陈明雨 Mingyu Chen
&gt;&gt; &gt;&gt;
&gt;&gt; &gt;&gt; Email:
&gt;&gt; &gt;&gt; chenmin...@apache.org
&gt;&gt; &gt;
&gt;&gt; &gt;
&gt;&gt; &gt;
&gt;&gt; &gt;--
&gt;&gt; &gt;Ling Miao | Apache Doris
&gt;&gt;
&gt;
&gt;
&gt;-- 
&gt;张家峰

Reply via email to