diff --git a/docs/documentation/cn/getting-started/basic-usage.md b/docs/documentation/cn/getting-started/basic-usage.md index de83c4b07e..8bb175460f 100644 --- a/docs/documentation/cn/getting-started/basic-usage.md +++ b/docs/documentation/cn/getting-started/basic-usage.md @@ -228,6 +228,7 @@ 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 59c0c0d797..01750c75c0 100644 --- a/docs/documentation/en/getting-started/basic-usage_EN.md +++ b/docs/documentation/en/getting-started/basic-usage_EN.md @@ -229,6 +229,7 @@ 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 @@ -371,4 +372,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 f1f8a415dc..9ba9caae85 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 = false; + RESULT = true; :} | KW_NULL {: