Skip to content

Commit ad86687

Browse files
Paddy0523FlechazoW
authored andcommitted
[hotfix][column]Fix the issue of timestampColumn convert to long error (#1260)
1 parent 53d6928 commit ad86687

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

chunjun-core/src/main/java/com/dtstack/chunjun/element/column/TimestampColumn.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
import com.dtstack.chunjun.element.AbstractBaseColumn;
2121
import com.dtstack.chunjun.throwable.CastException;
2222

23-
import org.apache.commons.net.ntp.TimeStamp;
24-
2523
import java.math.BigDecimal;
2624
import java.sql.Time;
2725
import java.sql.Timestamp;
@@ -140,15 +138,15 @@ public BigDecimal asBigDecimal() {
140138
if (null == data) {
141139
return null;
142140
}
143-
return new BigDecimal(((TimeStamp) data).getTime());
141+
return new BigDecimal(((Timestamp) data).getTime());
144142
}
145143

146144
@Override
147145
public Long asLong() {
148146
if (null == data) {
149147
return null;
150148
}
151-
return ((TimeStamp) data).getTime();
149+
return ((Timestamp) data).getTime();
152150
}
153151

154152
@Override

0 commit comments

Comments
 (0)