Skip to content

Commit

Permalink
A litte code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
wgzhao committed Dec 1, 2020
1 parent 0042f90 commit 457d768
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import com.alibaba.datax.common.element.DateColumn;
import com.alibaba.datax.common.element.DoubleColumn;
import com.alibaba.datax.common.element.LongColumn;
import com.alibaba.datax.common.element.Record;
import com.alibaba.datax.common.element.StringColumn;
import com.alibaba.datax.common.exception.DataXException;
import com.alibaba.datax.common.plugin.RecordSender;
Expand Down Expand Up @@ -372,11 +373,11 @@ public static com.alibaba.datax.common.element.Record transportOneRecord(RecordS
return transportOneRecord(recordSender, column, sourceLine, nullFormat, taskPluginCollector);
}

public static com.alibaba.datax.common.element.Record transportOneRecord(RecordSender recordSender,
public static Record transportOneRecord(RecordSender recordSender,
List<ColumnEntry> columnConfigs, String[] sourceLine,
String nullFormat, TaskPluginCollector taskPluginCollector)
{
com.alibaba.datax.common.element.Record record = recordSender.createRecord();
Record record = recordSender.createRecord();
Column columnGenerated;

// 创建都为String类型column的record
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,6 @@ private Column buildOneColumn(Configuration eachColumnConfig)
return new DateColumn(new Date(RandomUtils.nextLong(param1Int, param2Int + 1)));
}
else {
System.out.println(format.parse(columnValue));
return new DateColumn(format.parse(columnValue));
}
case BOOL:
Expand Down

0 comments on commit 457d768

Please sign in to comment.