[ 
https://issues.apache.org/jira/browse/TAJO-1485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14392858#comment-14392858
 ] 

DaeMyung Kang commented on TAJO-1485:
-------------------------------------

[~seungunchoe] Do you solve this issue?
I found the reason why this result is weird.
so final result like below. so If you allow, I will make a PR. Thank you.
(I'm sorry to touch your issue.)

default> create table test1 (col1 char(5));
OK
default> insert into test1 select 'a';
(1 rows, 0.129 sec, 6 B inserted)
default> insert into test1 select 'abc';
(1 rows, 0.069 sec, 12 B inserted)
default> insert into test1 select 'abcde';
(1 rows, 0.081 sec, 18 B inserted)
default> select * from test1;
col1
-------------------------------
a
abc
abcde
(3 rows, 0.043 sec, 18 B selected)

> Datum 'Char' returned only 1byte.
> ---------------------------------
>
>                 Key: TAJO-1485
>                 URL: https://issues.apache.org/jira/browse/TAJO-1485
>             Project: Tajo
>          Issue Type: Bug
>            Reporter: Seungun Choe
>            Assignee: Seungun Choe
>            Priority: Minor
>
> Even though table's column have long char data, 'Char Datum' only returns 
> 1byte.
> {quote}
> create table test1 (col1 char(5));
> insert into test1 select 'a';
> insert into test1 select 'abc';
> insert into test1 select 'abcde';
> select * from test1;
> col1
> -------------------------------
> a
> a
> a
> (3 rows, 0.151 sec, 6 B selected)
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to