You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by zh...@apache.org on 2019/11/29 06:45:52 UTC
[incubator-doris] 01/01: Revert "Create table with nullable column
for default (#2256)"
This is an automated email from the ASF dual-hosted git repository.
zhaoc pushed a commit to branch revert-2256-nullable-default
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
commit 3e2d52d773a09c614c208eb5e2ab3dcd84d66062
Author: ZHAO Chun <bu...@gmail.com>
AuthorDate: Fri Nov 29 14:45:43 2019 +0800
Revert "Create table with nullable column for default (#2256)"
This reverts commit 8bf00afa250d07b00d31bb88876712beaadb1801.
---
docs/documentation/cn/getting-started/basic-usage.md | 1 -
docs/documentation/en/getting-started/basic-usage_EN.md | 3 +--
fe/src/main/cup/sql_parser.cup | 2 +-
3 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/docs/documentation/cn/getting-started/basic-usage.md b/docs/documentation/cn/getting-started/basic-usage.md
index 8bb1754..de83c4b 100644
--- a/docs/documentation/cn/getting-started/basic-usage.md
+++ b/docs/documentation/cn/getting-started/basic-usage.md
@@ -228,7 +228,6 @@ MySQL> DESC table2;
> 3. 数据导入可以导入指定的 Partition。详见 `HELP LOAD`。
> 4. 可以动态修改表的 Schema。
> 5. 可以对 Table 增加上卷表(Rollup)以提高查询性能,这部分可以参见高级使用指南关于 Rollup 的描述。
-> 6. 表的列的Null属性默认为true,会对查询性能有一定的影响。
### 2.4 导入数据
diff --git a/docs/documentation/en/getting-started/basic-usage_EN.md b/docs/documentation/en/getting-started/basic-usage_EN.md
index 01750c7..59c0c0d 100644
--- a/docs/documentation/en/getting-started/basic-usage_EN.md
+++ b/docs/documentation/en/getting-started/basic-usage_EN.md
@@ -229,7 +229,6 @@ MySQL> DESC table2;
> 3. Data import can import the specified Partition. See `HELP LOAD'.
> 4. Schema of table can be dynamically modified.
> 5. Rollup can be added to Table to improve query performance. This section can be referred to the description of Rollup in Advanced Usage Guide.
-> 6. The default value of Null property for column is true, which may result in poor scan performance.
### 2.4 Import data
@@ -372,4 +371,4 @@ MySQL> SELECT SUM(pv) FROM table2 WHERE siteid IN (SELECT siteid FROM table1 WHE
| 8 |
+-----------+
1 row in set (0.13 sec)
-```
+```
\ No newline at end of file
diff --git a/fe/src/main/cup/sql_parser.cup b/fe/src/main/cup/sql_parser.cup
index 9ba9caa..f1f8a41 100644
--- a/fe/src/main/cup/sql_parser.cup
+++ b/fe/src/main/cup/sql_parser.cup
@@ -1702,7 +1702,7 @@ column_definition ::=
opt_is_allow_null ::=
{:
- RESULT = true;
+ RESULT = false;
:}
| KW_NULL
{:
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org