Skip to content

Commit

Permalink
[fix](doc) example case fixed in best practices (apache#28156)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitin-Kashyap authored Dec 27, 2023
1 parent 522e48c commit c1303e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/en/docs/data-table/best-practice.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,10 @@ Database Session
session -u data (visitorid, sessionid, visittime, city, province, ip, browser, url)
```

In addition to visitorid analysis, there are Brower and province analysis cases, Rollup can be established separately.
In addition to visitorid analysis, there are browser and province analysis cases, Rollup can be established separately.

```
ALTER TABLE session_data ADD ROLLUP rollup_brower(brower,province,ip,url) DUPLICATE KEY(brower,province);
ALTER TABLE session_data ADD ROLLUP rollup_browser(browser,province,ip,url) DUPLICATE KEY(browser,province);
```

## Schema Change
Expand Down
6 changes: 3 additions & 3 deletions docs/zh-CN/docs/data-table/best-practice.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,13 @@ ALTER TABLE site_visit ADD ROLLUP rollup_city(city, pv);
如对于 session_data 表:

```text
session_data(visitorid, sessionid, visittime, city, province, ip, brower, url)
session_data(visitorid, sessionid, visittime, city, province, ip, browser, url)
```

如果除了通过 visitorid 分析访问情况外,还有通过 brower, province 分析的情形,可以单独建立 Rollup。
如果除了通过 visitorid 分析访问情况外,还有通过 browser, province 分析的情形,可以单独建立 Rollup。

```sql
ALTER TABLE session_data ADD ROLLUP rollup_brower(brower,province,ip,url) DUPLICATE KEY(brower,province);
ALTER TABLE session_data ADD ROLLUP rollup_browser(browser,province,ip,url) DUPLICATE KEY(browser,province);
```

## Schema Change
Expand Down

0 comments on commit c1303e9

Please sign in to comment.