Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,7 @@ protected List<ColumnBase> buildColumns() {
column = new DoubleColumn(cd.getName(), cd.isNullable());
break;
case TIMESTAMP:
if (cd.getPrecision() == null) {
column = new TimestampColumn(cd.getName(), cd.isNullable());
} else {
column = new TimestampColumn(cd.getName(), cd.isNullable(), cd.getPrecision());
}
column = new TimestampColumn(cd.getName(), cd.isNullable(), cd.getPrecision());
break;
case VARCHAR:
if (cd.getSize() > Integer.MAX_VALUE) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -532,11 +532,7 @@ protected List<ColumnBase> buildColumns() {
column = new DoubleColumn(cd.getName(), cd.isNullable());
break;
case TIMESTAMP:
if (cd.getPrecision() == null) {
column = new TimestampColumn(cd.getName(), cd.isNullable());
} else {
column = new TimestampColumn(cd.getName(), cd.isNullable(), cd.getPrecision());
}
column = new TimestampColumn(cd.getName(), cd.isNullable(), cd.getPrecision());
break;
case VARCHAR:
if (cd.getSize() > Integer.MAX_VALUE) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public TimestampColumn(String name, boolean nullable) {
this.precision = null;
}

public TimestampColumn(String name, boolean nullable, int precision) {
public TimestampColumn(String name, boolean nullable, Integer precision) {
super(name, nullable);
this.precision = precision;
}
Expand Down