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

0.10.2->0.10.3 #213

Merged
merged 2 commits into from
Dec 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/MatrixOne-Cloud/Migrate-Data/Load-Local-Data.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
Load Data Local 命令是常用的数据导入方式,MatrixOne 实例支持使用 Load Data Local 命令从客户端所在的本地文件系统批量导入 csv 文件或 jsonline 文件。若需使用本地文件导入命令,需要在数据文件所在的服务器上启动客户端连接 MatrixOne Cloud 实例,示例如下:

```sql
mysql -h moc.cluster.matrixonecloud.cn -P 6001 -u a123456b_78cd_9e12_fg34_abcd5d6789ef:admin:accountadmin -p
mysql -h <host> -P 6001 -u <user_name> -p --local-infile
```

**注意**:如果需要使用本地文件导入,需要在连接 MatrixOne 实例时加上后缀 --local-infile

### 导入 csv 文件

**语法结构**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# **LOCATE()**

## **函数说明**

`LOCATE()` 函数是用于在字符串中查找子字符串所在位置的函数。它返回子字符串在字符串中的位置,如果未找到,则返回 0。

由于 `LOCATE()` 函数返回的是一个整数值,所以它可以嵌套在其他函数里面使用,比如可以用 substring 函数截取字符串。

关于大小写,`LOCATE()` 函数不区分大小写。

## **函数语法**

```
> LOCATE(subtr,str,pos)
```

## **参数释义**

| 参数 | 说明 |
| ---- | ---- |
| substr | 必要参数。`substring` 是你正在查找的字符串。|
| str | 必要参数。`string` 是要在其中搜索的字符串。|
| pos | 非必要参数。`position` 是表示开始查询的位置。|

## **示例**

- 示例 1

```sql
mysql> SELECT LOCATE('bar', 'footbarbar');
+-------------------------+
| locate(bar, footbarbar) |
+-------------------------+
| 5 |
+-------------------------+
1 row in set (0.00 sec)
```

- 示例 2

```sql
mysql>SELECT LOCATE('bar', 'footbarbar',6);
+----------------------------+
| locate(bar, footbarbar, 6) |
+----------------------------+
| 8 |
+----------------------------+
1 row in set (0.00 sec)
```

- 示例 3

```sql
mysql>SELECT SUBSTRING('hello world',LOCATE('o','hello world'),5);
+---------------------------------------------------+
| substring(hello world, locate(o, hello world), 5) |
+---------------------------------------------------+
| o wor |
+---------------------------------------------------+
1 row in set (0.00 sec)
```

- 示例 4

```sql
mysql>select locate('a','ABC');
+----------------+
| locate(a, ABC) |
+----------------+
| 1 |
+----------------+
1 row in set (0.00 sec)
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# **UPPER()**

## **函数说明**

`LOWER()` 用于将给定的字符串转换为小写形式。

## **函数语法**

```
> LOWER(str)
```

## **参数释义**

| 参数 | 说明 |
| ---- | ---- |
| str | 必要参数,字母字符。|

## **示例**

```sql
mysql> select lower('HELLO');
+--------------+
| lower(HELLO) |
+--------------+
| hello |
+--------------+
1 row in set (0.02 sec)

mysql> select lower('A'),lower('B'),lower('C');
+----------+----------+----------+
| lower(A) | lower(B) | lower(C) |
+----------+----------+----------+
| a | b | c |
+----------+----------+----------+
1 row in set (0.03 sec)
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# **UPPER()**

## **函数说明**

`UPPER()` 用于将给定的字符串转换为大写形式。

## **函数语法**

```
> UPPER(str)
```

## **参数释义**

| 参数 | 说明 |
| ---- | ---- |
| str | 必要参数,字母字符。|

## **示例**

```sql
mysql> select upper('hello');
+--------------+
| upper(hello) |
+--------------+
| HELLO |
+--------------+
1 row in set (0.03 sec)

mysql> select upper('a'),upper('b'),upper('c');
+----------+----------+----------+
| upper(a) | upper(b) | upper(c) |
+----------+----------+----------+
| A | B | C |
+----------+----------+----------+
1 row in set (0.03 sec)
```
32 changes: 26 additions & 6 deletions docs/MatrixOne-Cloud/Release-Notes/2023.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# **MatrixOne Cloud 2023 发布报告**

## 2023 年 12 月 23 日

**MatrixOne 内核版本更新**

由 v1.0.1 升级至 v1.0.2 版本,详情请参考[《MatrixOne v1.0.2 发布报告》](https://docs.matrixorigin.cn/1.0.2/MatrixOne/Release-Notes/v1.0.2/)

**改进**

- 优化了查询历史的实现机制,大幅提升了该功能的响应速度。
- 优化了执行 sql 失败时错误信息的展示,当执行 SQL 出错时,界面将展示更具体的报错信息,方便用户分析排错。
- 优化了监控刻度线的展示,纵坐标刻度线固定为 6 条,每条刻度线取值取决于与高位区间联系,为数据监控提供一种更优雅的展现方案。
- 优化了云平台整体的资源分配,使得整个云平台的性能得到提高。

**错误修复**

- 修复了实例版本查询错误的问题
- 修复了错误告警的问题
- 修复了查看单条 sql 详情响应慢的问题
- 修复了在查询编辑器中长时间无操作未跳出到登录页面的问题
- 修复了某些场景下查询编辑器中数据库切换不成功的问题
- 修复了某些情况下查询编辑器中正在执行的 sql 一直处于执行中状态的问题
- 修复了某些情况下查询编辑器执行 sql 失败的问题

## 2023 年 12 月 16 日

**MatrixOne 内核版本更新**
Expand All @@ -8,12 +31,9 @@

**改进**

- 优化 MO Cloud 公测注册流程
将试用注册申请和注册页合并,用户只需要填写一次信息即可,但公测期间仍然需要等待 MO Cloud 团队的审批,请耐心等待。
- 优化了表存储大小的计算逻辑
我们这次优化了表存储大小的统计逻辑,剔除了数据落盘对象存储过程中的中间数据,仅包含最终数据及其元数据压缩之后的大小。
- 优化了 CU 的展示单位
根据中英文的阅读习惯、实例及 SQL 的 CU 展示精度,我们分配对其进行了不同 CU 数目下的展示优化,方便用户阅读。
- 优化 MO Cloud 公测注册流程,将试用注册申请和注册页合并,用户只需要填写一次信息即可,但公测期间仍然需要等待 MO Cloud 团队的审批,请耐心等待。
- 优化了表存储大小的计算逻辑,我们这次优化了表存储大小的统计逻辑,剔除了数据落盘对象存储过程中的中间数据,仅包含最终数据及其元数据压缩之后的大小。
- 优化了 CU 的展示单位,根据中英文的阅读习惯、实例及 SQL 的 CU 展示精度,我们分配对其进行了不同 CU 数目下的展示优化,方便用户阅读。
- 提升了 AI 智能助手的回复准确性

**错误修复**
Expand Down
4 changes: 4 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,8 @@ nav:
- INSTR(): MatrixOne-Cloud/Reference/Functions-and-Operators/String/instr.md
- LEFT(): MatrixOne-Cloud/Reference/Functions-and-Operators/String/left.md
- LENGTH(): MatrixOne-Cloud/Reference/Functions-and-Operators/String/length.md
- LOCATE(): MatrixOne-Cloud/Reference/Functions-and-Operators/String/locate.md
- LOWER(): MatrixOne-Cloud/Reference/Functions-and-Operators/String/lower.md
- LPAD(): MatrixOne-Cloud/Reference/Functions-and-Operators/String/lpad.md
- LTRIM(): MatrixOne-Cloud/Reference/Functions-and-Operators/String/ltrim.md
- OCT(): MatrixOne-Cloud/Reference/Functions-and-Operators/String/oct.md
Expand All @@ -407,6 +409,8 @@ nav:
- SUBSTRING(): MatrixOne-Cloud/Reference/Functions-and-Operators/String/substring.md
- SUBSTRING_INDEX(): MatrixOne-Cloud/Reference/Functions-and-Operators/String/substring-index.md
- TRIM(): MatrixOne-Cloud/Reference/Functions-and-Operators/String/trim.md
- LPAD(): MatrixOne-Cloud/Reference/Functions-and-Operators/String/lpad.md
- UPPER(): MatrixOne-Cloud/Reference/Functions-and-Operators/String/upper.md
- 正则表达式:
- 正则表达式概述: MatrixOne-Cloud/Reference/Functions-and-Operators/String/Regular-Expressions/Regular-Expression-Functions-Overview.md
- NOT REGEXP: MatrixOne-Cloud/Reference/Functions-and-Operators/String/Regular-Expressions/not-regexp.md
Expand Down