-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[doc] add datalake tutorial of lakesoul #1320
Conversation
Signed-off-by: zenghua <441651826@qq.com>
|
||
## 使用指南 | ||
|
||
本文涉及所有脚本和代码可以从该地址获取:[https://github.com/apache/doris/tree/master/samples/datalake/lakesoul](https://github.com/Ceng23333/doris/tree/lakesoul_doc/samples/datalake/lakesoul) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
link is error
'minio.endpoint'='http://minio:9000', | ||
'minio.access_key'='admin', | ||
'minio.secret_key'='password' | ||
);``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
);``` | |
); |
);``` | ||
|
||
``` | ||
LakeSoul 表 lakesoul.tpch.customer 已加载到 Doris 中。在 Doris 中查询数据。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LakeSoul 表 lakesoul.tpch.customer 已加载到 Doris 中。在 Doris 中查询数据。 | |
LakeSoul 表 `lakesoul.tpch.customer` 已加载到 Doris 中。在 Doris 中查询数据。 |
|
||
如下所示,在 Doris 集群中已经创建了一个名为 lakesoul 的 Catalog(可使用 SHOW CATALOGS 查看)。以下是该 Catalog 的创建语句: | ||
|
||
```sql |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
```sql | |
```sql |
``` | ||
LakeSoul 表 lakesoul.tpch.customer 已加载到 Doris 中。在 Doris 中查询数据。 | ||
|
||
- 查询数据 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
无序标题后的部分,需要四个空格缩进
``` | ||
|
||
- 分区裁剪 | ||
Doris 可以对 LakeSoul 执行分区裁剪,并通过原生读取加速查询过程。我们可以通过 `explain verbose` 来检查这一点。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
缩进,同上
|
||
|
||
```sql | ||
mysql> delete from customer where c_custkey = 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里很难分清楚是操作的doris 还是 lakesoul,可以这样:
mysql -h 127.0.0.1 -P 9033 -uroot -A --prompt="Doris> "
mysql -h 127.0.0.1 -P 9033 -uroot -A --prompt="LakeSoul> "
这样命令行会显示指定的前缀。可以修改下 start_xx_client 脚本
Signed-off-by: zenghua <441651826@qq.com>
Versions
Languages