[
https://issues.apache.org/jira/browse/CARBONDATA-3960?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Akash R Nilugal resolved CARBONDATA-3960.
-----------------------------------------
Fix Version/s: 2.1.0
Resolution: Fixed
> Column comment should be null by default when adding column
> -----------------------------------------------------------
>
> Key: CARBONDATA-3960
> URL:
https://issues.apache.org/jira/browse/CARBONDATA-3960> Project: CarbonData
> Issue Type: Improvement
> Reporter: David Cai
> Priority: Minor
> Fix For: 2.1.0
>
> Time Spent: 2.5h
> Remaining Estimate: 0h
>
> 1. create table
> create table test_add_column_with_comment(
> col1 string comment 'col1 comment',
> col2 int,
> col3 string)
> stored as carbondata
> 2 . alter table
> alter table test_add_column_with_comment add columns(
> col4 string comment "col4 comment",
> col5 int,
> col6 string comment "")
> 3. describe table
> describe test_add_column_with_comment
> +--------+---------+------------+
> |col_name|data_type|comment |
> +--------+---------+------------+
> |col1 |string |col1 comment|
> |col2 |int |null |
> |col3 |string |null |
> |col4 |string |col4 comment|
> |col5 |int | |
> |col6 |string | |
> +--------+---------+------------+
> the comment of col5 is "" by default
--
This message was sent by Atlassian Jira
(v8.3.4#803005)