[
https://issues.apache.org/jira/browse/TAJO-1548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14491085#comment-14491085
]
ASF GitHub Bot commented on TAJO-1548:
--------------------------------------
GitHub user charsyam opened a pull request:
https://github.com/apache/tajo/pull/531
TAJO-1548 Refactoring condition code for CHAR into CatalogUtil
Currently Schema's addColumn is this
```java
public synchronized Schema addColumn(String name, Type type) {
if (type == Type.CHAR)
{ return addColumn(name, CatalogUtil.newDataTypeWithLen(type, 1)); }
return addColumn(name, CatalogUtil.newSimpleDataType(type));
}
```
I think it is better condition code into CatalogUtil.newSimpleDataType.
because some testcode make columns just using CatalogUtil.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/charsyam/tajo feature/TAJO-1548
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/tajo/pull/531.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #531
----
commit 61ab939db276000f09d613635ab06f54a3be1963
Author: clark.kang <[email protected]>
Date: 2015-04-11T16:00:12Z
TAJO-1548
----
> Refactoring condition code for CHAR into CatalogUtil
> ----------------------------------------------------
>
> Key: TAJO-1548
> URL: https://issues.apache.org/jira/browse/TAJO-1548
> Project: Tajo
> Issue Type: Improvement
> Reporter: DaeMyung Kang
> Assignee: DaeMyung Kang
> Priority: Minor
>
> Currently Schema's addColumn is this
> ```java
> public synchronized Schema addColumn(String name, Type type) {
> if (type == Type.CHAR) {
> return addColumn(name, CatalogUtil.newDataTypeWithLen(type, 1));
> }
> return addColumn(name, CatalogUtil.newSimpleDataType(type));
> }
> ```
> I think it is better condition code into CatalogUtil.newSimpleDataType.
> because some testcode make columns just using CatalogUtil.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)