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

docs: update the Release Notes and Downloads #1237

Merged
merged 3 commits into from
Jan 17, 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
7 changes: 4 additions & 3 deletions Docs/05-SQL-reference/data-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ sidebar_position: 6.2
---

# Data Types

The following table lists the data types supported by StoneDB.

| **Category** | **Data type** |
Expand All @@ -27,9 +28,9 @@ The following table provides the value range of each integer data type.
| MEDIUMINT | 3 | Yes | -8388608 | 8388607 |
| | | No | 0 | 8388607 |
| INT | 4 | Yes | -2147483647 | 2147483647 |
| | | unsigned | 0 | 2147483647 |
| BIGINT | 8 | Yes | -9223372036854775808 | 9223372036854775807 |
| | | unsigned | 0 | 18446744073709551615 |
| | | No | 0 | 2147483647 |
| BIGINT | 8 | Yes | -9223372036854775806 | 9223372036854775807 |
| | | No | 0 | 9223372036854775807 |

On StoneDB, the precision for DECIMAL numbers cannot be higher than 18. For example, if you specify **decimal(19)** in your code, an error will be reported. **DECIMAL(6, 2)** indicates that up to 6 places are supported at the left of the decimal and up to 2 at the right, and thus the value range is [-9999.99, 9999.99].
# String data types
Expand Down
7 changes: 4 additions & 3 deletions Docs/download.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ sidebar_position: 100

Click here to download the latest installation package of StoneDB.

| Version | Release Date | Installation Package | MD5 | TiPs |
| Version | Release Date | Installation Package(tar) | MD5 | TiPs |
| --- | --- | --- | --- | --- |
| [5.6-v1.0.0](https://github.com/stoneatom/stonedb/releases/tag/stonedb-5.6-v1.0.0) | 2022-6-29 | [Download](https://static.stoneatom.com/stonedb-ce-5.6-v1.0.0.el7.x86_64.tar.gz) | 831f5799034fbb388f6ff26675b7951e | \ |
| [5.7-v1.0.0](https://github.com/stoneatom/stonedb/releases/tag/5.7-v1.0.0-GA) | 2022-8-31 | [Download](https://static.stoneatom.com/custom/stonedb-ce-5.7-v1.0.0.el7.x86_64.tar.gz) | e23593b80b50e0118f59627216613a2f | \ |
| [5.7-v1.0.1](https://github.com/stoneatom/stonedb/releases/tag/5.7-v1.0.1-GA) | 2022-10-24 | [Download](https://static.stoneatom.com/custom/stonedb-ce-5.7-v1.0.1.el7.x86_64.tar.gz) | 73911e56ac89af5f568dd7e9de9e9af5 | If you run into a lack of dependencies when compiling the installation, you can go to Github and [**download the related dependency package**](https://github.com/stoneatom/stonedb/releases/download/5.7-v1.0.1-GA/stonedb-lib.tar.gz) |
| [5.7-v1.0.0](https://github.com/stoneatom/stonedb/releases/tag/5.7-v1.0.0-GA) | 2022-8-31 | [Download](https://github.com/stoneatom/stonedb/releases/download/5.7-v1.0.0-GA/stonedb-ce-5.7-v1.0.0.el7.x86_64.tar.gz) | e23593b80b50e0118f59627216613a2f | \ |
| [5.7-v1.0.1](https://github.com/stoneatom/stonedb/releases/tag/5.7-v1.0.1-GA) | 2022-10-24 | [Download](https://github.com/stoneatom/stonedb/releases/download/5.7-v1.0.1-GA/stonedb-ce-5.7-v1.0.1.el7.x86_64.tar.gz) | 73911e56ac89af5f568dd7e9de9e9af5 | You can [download the DEB package](https://github.com/stoneatom/stonedb/releases/download/5.7-v1.0.1-GA/stonedb-ce-5.7-v1.0.1.debain.x86_64.tar.gz);<br/>If you run into a lack of dependencies when compiling the installation, you can go to Github and [download the related dependency package](https://github.com/stoneatom/stonedb/releases/download/5.7-v1.0.1-GA/stonedb-lib.tar.gz) |
| [5.7-v1.0.2](https://github.com/stoneatom/stonedb/releases/tag/5.7-v1.0.2-GA) | 2023-01-15 | [Download](https://github.com/stoneatom/stonedb/releases/download/5.7-v1.0.2-GA/stonedb-ce-5.7-v1.0.2.el7.x86_64.tar.gz) | be54d4ebb74517bf09fbfe1806f6e2ab | 1. You can [download the DEB package](https://github.com/stoneatom/stonedb/releases/download/5.7-v1.0.2-GA/stonedb-ce-5.7_v1.0.2.ubuntu.amd64.deb);<br> 2. You can [download the RPM package](https://github.com/stoneatom/stonedb/releases/download/5.7-v1.0.2-GA/stonedb-ce-5.7-v1.0.2.el7.x86_64.rpm) and experience StoneDB installation in two minutes.;<br/> 3. You can [download the Shell script](https://github.com/stoneatom/stonedb/releases/download/5.7-v1.0.2-GA/shell.for.deploy.stonedb.as.replic.tar.gz)|
| Next Version | Coming soon~ | Coming soon~ | Coming soon~ | \ |

99 changes: 82 additions & 17 deletions Docs/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,51 +4,116 @@ sidebar_position: 11.0
---

# Release Notes
## StoneDB-5.7-V1.0.2
Release date: January 15,2023
### New features

- Supports user-defined functions
- Supports ESCAPE
- Supports Primary key and Supports syntactically index constraints
- Supports modifying the character set of table or field
- Supports BIT data type
- Supports Creation, change and deletion
- Supports logical operation
- Supports replace into statement
- Supports syntactically unsigned and zerofill
- Sql_mode add value 'MANDATORY_TIANMU' for mandatory Tianmu engine in table
- The following statement demonstrates the syntax:
```sql

# Global level
mysql>set global sql_mode='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION,MANDATORY_TIANMU';

# Session level
mysql>set session sql_mode='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION,MANDATORY_TIANMU';

#Set my.cnf parameter file
[mysqld]
sql_mode = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION,MANDATORY_TIANMU'
```

### Accessibility

- Automatic detection and identification of installation package
- Rapid deployment of StoneDB as an analytical database for MySQL
### Stability

- Enhanced the stability as an analytical database
### Bug Fixes
The following bugs are fixed:

- The GROUP_CONCAT() function return result set error [#938](https://github.com/stoneatom/stonedb/issues/938)
- Bugs when use LIKE in WHERE [#1162](https://github.com/stoneatom/stonedb/issues/1162) [#1157](https://github.com/stoneatom/stonedb/issues/1157) [#763](https://github.com/stoneatom/stonedb/issues/763)
- Bugs when use Primary key with AUTO_INCREMENT [#1144](https://github.com/stoneatom/stonedb/pull/1144) [#1142](https://github.com/stoneatom/stonedb/issues/1142)
- ALTER table..ADD numeric column, return error[#1140](https://github.com/stoneatom/stonedb/issues/1140)
- Clang-format execute failed in CI/CD[#973](https://github.com/stoneatom/stonedb/issues/973)
- INSERT INTO table error, but some data can be inserted successfully[#965](https://github.com/stoneatom/stonedb/issues/965)
- Query with UNION ALL return result set error [#854](https://github.com/stoneatom/stonedb/issues/854)
- The EXTRACT() function error [#845](https://github.com/stoneatom/stonedb/issues/845)
- Select...in...An error was reported when the date was included [#829](https://github.com/stoneatom/stonedb/issues/829)
- Update multiple values does not work with WHERE IN clause [#781](https://github.com/stoneatom/stonedb/issues/781)
- The syntax of the exists subquery in the TIANMU layer is compiled after the rule is incorrect, and the semantics is modified [#732](https://github.com/stoneatom/stonedb/issues/732)
- MTR binlog.binlog_unsafe Crash [#341](https://github.com/stoneatom/stonedb/issues/341)
- The other BUG [#682](https://github.com/stoneatom/stonedb/issues/682) [#553](https://github.com/stoneatom/stonedb/issues/553) [#508](https://github.com/stoneatom/stonedb/issues/508)
### Behavior Change
Using the Shell script for rapid deployment of StoneDB as an analytical database for MySQL, parameter sql_mode default add value of MANDATORY_TIANMU to enable the mandatory TIANMU engine

### Platforms

- CentOS 7.6 or obove
- Ubuntu 20

### Others

- Add more MTR test cases


## StoneDB-5.7-V1.0.1
Changes in StoneDB_5.7_v1.0.1 (2022-10-24, General Availability)
● Functionality Added or Changed
● Compilation Notes
● Document Notes
● Bugs Fixed
- Functionality Added or Changed
- Compilation Notes
- Document Notes
- Bugs Fixed


Functionality Added or Changed
Tianmu: From StoneDB_5.7 v1.0.1, you can use delete statement to clear some data you don't need.
- Tianmu: From StoneDB_5.7 v1.0.1, you can use delete statement to clear some data you don't need.
```sql
delete from table1;
delete from table1, table2, ...;
delete from table1 where ...;
delete from table1, table2, ... where ...;
```
Tianmu: From StoneDB_5.7 v1.0.1, you can use alter table statement to modify the table structure as you need.
- Tianmu: From StoneDB_5.7 v1.0.1, you can use alter table statement to modify the table structure as you need.
```sql
alter table tablename
```
Tianmu: Binlog replication supported ROW format;
- Tianmu: Binlog replication supported ROW format;
```shell
binlog_format = ROW
```
Tianmu: Added temporary table function;
- Tianmu: Added temporary table function;
```sql
CREATE TEMPORARY TABLE IF NOT EXISTS tablename
```
Tianmu: From StoneDB_5.7 v1.0.1, you can create a trigger. The trigger is a named database object that is associated with a table, and that activates when a particular event occurs for the table.
- Tianmu: From StoneDB_5.7 v1.0.1, you can create a trigger. The trigger is a named database object that is associated with a table, and that activates when a particular event occurs for the table.
```sql
create trigger triggername
```
Tianmu: Added Create table AS... union... statement;
Tianmu: The Tianmu engine improved the performance of subqueries;
Tianmu: Added gtest module;
Tianmu: Added some mtr test cases;
- Tianmu: Added Create table AS... union... statement;
- Tianmu: The Tianmu engine improved the performance of subqueries;
- Tianmu: Added gtest module;
- Tianmu: Added some mtr test cases;
Compilation Notes
Added cmake parameter configuration for build
- Added cmake parameter configuration for build
```shell
cmake .. -DWITH_MARISA -DWITH_ROCKSDB
```
Document Notes
The manual has been updated as the code was modified. ( [# address](https://stonedb.io/))
- The manual has been updated as the code was modified. ( [# address](https://stonedb.io/))
Bugs Fixed
fix some inherited mtr from MySQL
● fix Tianmu bug: [#282](https://github.com/stoneatom/stonedb/issues/282),[#274](about:blank),[#270](https://github.com/stoneatom/stonedb/issues/270),[#663](https://github.com/stoneatom/stonedb/issues/663),[#669](https://github.com/stoneatom/stonedb/issues/669),[#670](https://github.com/stoneatom/stonedb/issues/670),[#675](https://github.com/stoneatom/stonedb/issues/675),[#678](https://github.com/stoneatom/stonedb/issues/678),[#682](https://github.com/stoneatom/stonedb/issues/682),[#487](https://github.com/stoneatom/stonedb/issues/487),[#426](https://github.com/stoneatom/stonedb/issues/426),[#250](https://github.com/stoneatom/stonedb/issues/250),[#247](https://github.com/stoneatom/stonedb/issues/247),[#569](https://github.com/stoneatom/stonedb/issues/569),[#566](https://github.com/stoneatom/stonedb/issues/566),[#290](https://github.com/stoneatom/stonedb/issues/290),[#736](https://github.com/stoneatom/stonedb/issues/736),[#567](https://github.com/stoneatom/stonedb/issues/567),[#500](https://github.com/stoneatom/stonedb/issues/500),[#300](https://github.com/stoneatom/stonedb/issues/300),[#289](https://github.com/stoneatom/stonedb/issues/289),[#566](https://github.com/stoneatom/stonedb/issues/566),[#279](https://github.com/stoneatom/stonedb/issues/279),[#570](https://github.com/stoneatom/stonedb/issues/570)[,#571](https://github.com/stoneatom/stonedb/issues/571),[#580](https://github.com/stoneatom/stonedb/issues/580),[#581](https://github.com/stoneatom/stonedb/issues/581),[#586](https://github.com/stoneatom/stonedb/issues/586),[#589](https://github.com/stoneatom/stonedb/issues/589),[#674](https://github.com/stoneatom/stonedb/issues/674),[#646](https://github.com/stoneatom/stonedb/issues/646),[#280](https://github.com/stoneatom/stonedb/issues/280),[#301](https://github.com/stoneatom/stonedb/issues/301),[#733](https://github.com/stoneatom/stonedb/issues/733) et. al.
- fix some inherited mtr from MySQL
- fix Tianmu bug: [#282](https://github.com/stoneatom/stonedb/issues/282),[#274](about:blank),[#270](https://github.com/stoneatom/stonedb/issues/270),[#663](https://github.com/stoneatom/stonedb/issues/663),[#669](https://github.com/stoneatom/stonedb/issues/669),[#670](https://github.com/stoneatom/stonedb/issues/670),[#675](https://github.com/stoneatom/stonedb/issues/675),[#678](https://github.com/stoneatom/stonedb/issues/678),[#682](https://github.com/stoneatom/stonedb/issues/682),[#487](https://github.com/stoneatom/stonedb/issues/487),[#426](https://github.com/stoneatom/stonedb/issues/426),[#250](https://github.com/stoneatom/stonedb/issues/250),[#247](https://github.com/stoneatom/stonedb/issues/247),[#569](https://github.com/stoneatom/stonedb/issues/569),[#566](https://github.com/stoneatom/stonedb/issues/566),[#290](https://github.com/stoneatom/stonedb/issues/290),[#736](https://github.com/stoneatom/stonedb/issues/736),[#567](https://github.com/stoneatom/stonedb/issues/567),[#500](https://github.com/stoneatom/stonedb/issues/500),[#300](https://github.com/stoneatom/stonedb/issues/300),[#289](https://github.com/stoneatom/stonedb/issues/289),[#566](https://github.com/stoneatom/stonedb/issues/566),[#279](https://github.com/stoneatom/stonedb/issues/279),[#570](https://github.com/stoneatom/stonedb/issues/570)[,#571](https://github.com/stoneatom/stonedb/issues/571),[#580](https://github.com/stoneatom/stonedb/issues/580),[#581](https://github.com/stoneatom/stonedb/issues/581),[#586](https://github.com/stoneatom/stonedb/issues/586),[#589](https://github.com/stoneatom/stonedb/issues/589),[#674](https://github.com/stoneatom/stonedb/issues/674),[#646](https://github.com/stoneatom/stonedb/issues/646),[#280](https://github.com/stoneatom/stonedb/issues/280),[#301](https://github.com/stoneatom/stonedb/issues/301),[#733](https://github.com/stoneatom/stonedb/issues/733) et. al.


## StoneDB-5.7-V1.0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sidebar_position: 6.2

# 数据类型

StoneDB 支持如下的数据类型
StoneDB 支持如下的数据类型

| 类型 | 成员 |
| --- | --- |
Expand All @@ -16,7 +16,7 @@ StoneDB 支持如下的数据类型。
| 字符串型 | CHAR、VARCHAR、TINYTEXT、TEXT、MEDIUMTEXT、LONGTEXT |
| 二进制字符串型 | BINARY、VARBINARY、TINYBLOB、BLOB、MEDIUMBLOB、LONGBLOB |

各整型的取值范围如下
各整型的取值范围如下

| 类型 | 字节 | 有/无符号 | 最小值 | 最大值 |
| --- | --- | --- | --- | --- |
Expand All @@ -28,8 +28,8 @@ StoneDB 支持如下的数据类型。
| | | 无符号 | 0 | 8388607 |
| INT | 4 | 有符号 | -2147483647 | 2147483647 |
| | | 无符号 | 0 | 2147483647 |
| BIGINT | 8 | 有符号 | -9223372036854775808 | 9223372036854775807 |
| | | 无符号 | 0 | 18446744073709551615 |
| BIGINT | 8 | 有符号 | -9223372036854775806 | 9223372036854775807 |
| | | 无符号 | 0 | 9223372036854775807 |

DECIMAL 精度必须小于或等于18,否则不支持,如 decimal(19) 就会报错。DECIMAL(6, 2) 表示整数部分和小数部分最大有效位数分别为4和2,所以值域为 [-9999.99, 9999.99]。<br />不同的字符集,即使长度相同,但占用的存储空间不同,以下是以字符集为 latin1 的字符串类型的大小范围。

Expand All @@ -42,12 +42,12 @@ DECIMAL 精度必须小于或等于18,否则不支持,如 decimal(19) 就会
| MEDIUMTEXT | [0,16777215] |
| LONGTEXT | [0,4294967295] |

日期类型的日期范围如下
日期类型的日期范围如下

| 类型 | 日期格式 | 最小值 | 最大值 |
| --- | --- | --- | --- |
| YEAR | YYYY | 1901 | 2155 |
| TIME | HH:MM:SS | -838:59:59 | 838:59:59 |
| DATE | YYYY-MM-DD | 0000-00-00 | 9999-12-31 |
| DATETIME | YYYY-MM-DD HH:MM:SS | 0000-00-00 00:00:00 | 9999-12-31 23:59:59 |
| TIMESTAMP | YYYY-MM-DD HH:MM:SS | 1970-01-01 08:00:01 | 2038-01-19 11:14:07 |
| TIMESTAMP | YYYY-MM-DD HH:MM:SS | 1970-01-01 08:00:01 | 2038-01-19 11:14:07 |
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ sidebar_position: 100

在这里您可以下载最新的 StoneDB 安装包:

| 发布版本 | 发布日期 | 安装包 | MD5 |
| --- | --- | --- | --- |
| [5.6-v1.0.0](https://github.com/stoneatom/stonedb/releases/tag/stonedb-5.6-v1.0.0) | 2022-6-29 | [Download](https://static.stoneatom.com/stonedb-ce-5.6-v1.0.0.el7.x86_64.tar.gz) | 831f5799034fbb388f6ff26675b7951e |
| [5.7-v1.0.0](https://github.com/stoneatom/stonedb/releases/tag/5.7-v1.0.0-GA) | 2022-8-31 | [Download](https://static.stoneatom.com/custom/stonedb-ce-5.7-v1.0.0.el7.x86_64.tar.gz) | e23593b80b50e0118f59627216613a2f |
| [5.7-v1.0.1](https://github.com/stoneatom/stonedb/releases/tag/5.7-v1.0.1-GA) | 2022-10-24 | [Download](https://static.stoneatom.com/custom/stonedb-ce-5.7-v1.0.1.el7.x86_64.tar.gz) | 73911e56ac89af5f568dd7e9de9e9af5 |
| Next Version | Coming soon~ | |
| 发布版本 | 发布日期 | 安装包(tar) | MD5 | TiPs |
| --- | --- | --- | --- | ---|
| [5.6-v1.0.0](https://github.com/stoneatom/stonedb/releases/tag/stonedb-5.6-v1.0.0) | 2022-6-29 | [Download](https://static.stoneatom.com/stonedb-ce-5.6-v1.0.0.el7.x86_64.tar.gz) | 831f5799034fbb388f6ff26675b7951e |\|
| [5.7-v1.0.0](https://github.com/stoneatom/stonedb/releases/tag/5.7-v1.0.0-GA) | 2022-8-31 | [Download](https://static.stoneatom.com/custom/stonedb-ce-5.7-v1.0.0.el7.x86_64.tar.gz) | e23593b80b50e0118f59627216613a2f | \ |
| [5.7-v1.0.1](https://github.com/stoneatom/stonedb/releases/tag/5.7-v1.0.1-GA) | 2022-10-24 | [Download](https://static.stoneatom.com/custom/stonedb-ce-5.7-v1.0.1.el7.x86_64.tar.gz) | 73911e56ac89af5f568dd7e9de9e9af5 | 1. 可以[下载DEB包](https://github.com/stoneatom/stonedb/releases/download/5.7-v1.0.1-GA/stonedb-ce-5.7-v1.0.1.debain.x86_64.tar.gz);<br/>2. 如果您在编译的时候提示缺失依赖,您可以前往 Github [**下载相关依赖**](https://github.com/stoneatom/stonedb/releases/download/5.7-v1.0.1-GA/stonedb-lib.tar.gz) |
| [5.7-v1.0.2](https://github.com/stoneatom/stonedb/releases/tag/5.7-v1.0.2-GA) | 2023-01-15 | [Download](https://github.com/stoneatom/stonedb/releases/download/5.7-v1.0.2-GA/stonedb-ce-5.7-v1.0.2.el7.x86_64.tar.gz) | be54d4ebb74517bf09fbfe1806f6e2ab | 1. 可以[下载DEB包](https://github.com/stoneatom/stonedb/releases/download/5.7-v1.0.2-GA/stonedb-ce-5.7_v1.0.2.ubuntu.amd64.deb);<br> 2. 可以[下载RPM包](https://github.com/stoneatom/stonedb/releases/download/5.7-v1.0.2-GA/stonedb-ce-5.7-v1.0.2.el7.x86_64.rpm),体验两分钟极速安装StoneDB;<br/> 3. 可以下载自动化部署StoneDB备库的[Shell脚本](https://github.com/stoneatom/stonedb/releases/download/5.7-v1.0.2-GA/shell.for.deploy.stonedb.as.replic.tar.gz)|
| Next Version | Coming soon~ | Coming soon~ | Coming soon~ | \ |

Loading