Skip to content

Commit

Permalink
[hotfix][column]Fix the issue of timestampColumn convert to long error (
Browse files Browse the repository at this point in the history
  • Loading branch information
Paddy0523 authored and FlechazoW committed Sep 18, 2022
1 parent 53d6928 commit ad86687
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
import com.dtstack.chunjun.element.AbstractBaseColumn;
import com.dtstack.chunjun.throwable.CastException;

import org.apache.commons.net.ntp.TimeStamp;

import java.math.BigDecimal;
import java.sql.Time;
import java.sql.Timestamp;
Expand Down Expand Up @@ -140,15 +138,15 @@ public BigDecimal asBigDecimal() {
if (null == data) {
return null;
}
return new BigDecimal(((TimeStamp) data).getTime());
return new BigDecimal(((Timestamp) data).getTime());
}

@Override
public Long asLong() {
if (null == data) {
return null;
}
return ((TimeStamp) data).getTime();
return ((Timestamp) data).getTime();
}

@Override
Expand Down

0 comments on commit ad86687

Please sign in to comment.