Skip to content
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

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

Ceng23333
Copy link
Contributor

@Ceng23333 Ceng23333 commented Nov 8, 2024

Versions

  • dev
  • 3.0
  • 2.1
  • 2.0

Languages

  • Chinese
  • English

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)
Copy link
Contributor

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'
);```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
);```
);

);```

```
LakeSoul 表 lakesoul.tpch.customer 已加载到 Doris 中。在 Doris 中查询数据。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
LakeSoul 表 lakesoul.tpch.customer 已加载到 Doris 中。在 Doris 中查询数据。
LakeSoul 表 `lakesoul.tpch.customer` 已加载到 Doris 中。在 Doris 中查询数据。


如下所示,在 Doris 集群中已经创建了一个名为 lakesoul 的 Catalog(可使用 SHOW CATALOGS 查看)。以下是该 Catalog 的创建语句:

```sql
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
```sql
```sql

```
LakeSoul 表 lakesoul.tpch.customer 已加载到 Doris 中。在 Doris 中查询数据。

- 查询数据
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

无序标题后的部分,需要四个空格缩进

```

- 分区裁剪
Doris 可以对 LakeSoul 执行分区裁剪,并通过原生读取加速查询过程。我们可以通过 `explain verbose` 来检查这一点。
Copy link
Contributor

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;
Copy link
Contributor

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>
@KassieZ KassieZ merged commit 4d8c7c5 into apache:master Nov 19, 2024
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants