Skip to content

Commit ec5412e

Browse files
committed
fix
1 parent 421ca59 commit ec5412e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/content/program-api/cpp-api.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Cpp API"
3-
weight: 5
3+
weight: 6
44
type: docs
55
aliases:
66
- /api/cpp-api.html
@@ -75,7 +75,7 @@ PAIMON_RETURN_NOT_OK(catalog->CreateDatabase('database_name', options, /*ignore_
7575

7676
## Create Table
7777

78-
Table schema contains fields definition, partition keys, primary keys, table options
78+
Table schema contains fields definition, partition keys, primary keys, table options.
7979
The field definition is described by `Arrow::Schema`. All arguments except fields definition are optional.
8080

8181
for example:
@@ -203,7 +203,7 @@ You can also pushdown projection by `ReadContextBuilder`:
203203
204204
```c++
205205
# select f3 and f2 columns
206-
read_context_builder.SetReadSchema({"f3", "f2"});
206+
read_context_builder.SetReadSchema({"f3", "f1", "f2"});
207207
```
208208

209209
### Generate Splits
@@ -221,7 +221,7 @@ PAIMON_ASSIGN_OR_RAISE(std::shared_ptr<paimon::Plan> plan, scanner->CreatePlan()
221221
auto splits = plan->Splits();
222222
```
223223
224-
Finally, you can read data from the `splits` to various data format.
224+
Finally, you can read data from the `splits` to arrow format.
225225
226226
### Read Apache Arrow
227227

0 commit comments

Comments
 (0)