Buggy code:
public class SOSConnector implements IConnector , Closeable { private static final Logger log = LoggerFactory . getLogger ( SOSConnector . class ) ; public static final Column COMPOSITE_KEY_COL = new SimpleColumn ( "COMPOSITE" , false ) ; public static final Column SOS_SITE_COL = new SimpleColumn ( "SITE_QW_ID" ) ; public static final Column SOS_CONSTITUENT_COL = new SimpleColumn ( "CONSTIT" ) ; public static final Column SOS_MOD_TYPE_COL = new SimpleColumn ( "MODTYPE" ) ; public static final Column SOS_DATE_COL = new SimpleColumn ( "DATE" ) ; private static final String NUMERIC_SUFFIX = "_NUMERIC" ; private SOSClient client ; private ColumnGrouping cg ; private SortedSet < OrderedFilter > filters ; private final Column valueColumn ; private boolean isReady ; public SOSConnector ( SOSClient client , SortedSet < OrderedFilter > filters , String valueColumnName ) { } @ Override public void addInput ( ResultSet in ) { } @ Override public String getStatement ( ) { } @ Override public ResultSet getResultSet ( ) { ResultSet resultSet = null ; if ( ! ( isReady ( ) ) ) { throw new RuntimeException ( "Not<seq2seq4repair_space>ready<seq2seq4repair_space>yet" ) ; } resultSet = new gov . usgs . cida . nar . resultset . SOSResultSet ( this . filters , this . client , this . cg ) ; FilterStage makeNumericColumnsStage = new gov . usgs . cida . nude . filter . FilterStageBuilder ( getExpectedColumns ( ) ) . addTransform ( new SimpleColumn ( ( ( SOSConnector . SOS_SITE_COL . getName ( ) ) + ( SOSConnector . NUMERIC_SUFFIX ) ) , false ) , new ColumnTransform ( ) { @ Override public String transform ( TableRow row ) { String value = row . getValue ( SOSConnector . SOS_SITE_COL ) ; <START_BUG> int orderedVal = ( value . length ( ) ) * ( Integer . parseInt ( value ) ) ; <END_BUG> String stringVal = String . valueOf ( orderedVal ) ; return stringVal ; } } ) . addTransform ( new SimpleColumn ( ( ( SOSConnector . SOS_CONSTITUENT_COL . getName ( ) ) + ( SOSConnector . NUMERIC_SUFFIX ) ) , false ) , new ColumnTransform ( ) { @ Override public String transform ( TableRow row ) { String value = row . getValue ( SOSConnector . SOS_CONSTITUENT_COL ) ; String orderedVal = "" + ( Math . abs ( value . hashCode ( ) ) ) ; return StringUtils . leftPad ( orderedVal . substring ( 0 , 4 ) , 4 , "0" ) ; } } ) . addTransform ( new SimpleColumn ( ( ( SOSConnector . SOS_MOD_TYPE_COL . getName ( ) ) + ( SOSConnector . NUMERIC_SUFFIX ) ) , false ) , new ColumnTransform ( ) { @ Override public String transform ( TableRow row ) { String value = row . getValue ( SOSConnector . SOS_MOD_TYPE_COL ) ; String orderedVal = "" + ( Math . abs ( value . hashCode ( ) ) ) ; return StringUtils . leftPad ( orderedVal . substring ( 0 , 4 ) , 4 , "0" ) ; } } ) . addTransform ( new SimpleColumn ( ( ( SOSConnector . SOS_DATE_COL . getName ( ) ) + ( SOSConnector . NUMERIC_SUFFIX ) ) , false ) , new ColumnTransform ( ) { @ Override public String transform ( TableRow row ) { String value = row . getValue ( SOSConnector . SOS_DATE_COL ) ; DateTime parsed = DateTime . parse ( value ) ; int padTo = String . valueOf ( ( ( DateTime . now ( ) . getMillis ( ) ) // 1000 ) ) . length ( ) ; return StringUtils . leftPad ( String . valueOf ( ( ( parsed . getMillis ( ) ) // 1000 ) ) , padTo , "0" ) ; } } ) . buildFilterStage ( ) ; ResultSet numericColumnResultSet = new gov . usgs . cida . nude . filter . FilteredResultSet ( resultSet , makeNumericColumnsStage ) ; FilterStage makePrimaryKeyStage = new gov . usgs . cida . nude . filter . FilterStageBuilder ( makeNumericColumnsStage . getOutputColumns ( ) ) . addTransform ( SOSConnector . COMPOSITE_KEY_COL , new ColumnTransform ( ) { @ Override public String transform ( TableRow row ) { String siteVal = row . getValue ( new SimpleColumn ( ( ( SOSConnector . SOS_SITE_COL . getName ( ) ) + ( SOSConnector . NUMERIC_SUFFIX ) ) ) ) ; String constituentVal = row . getValue ( new SimpleColumn ( ( ( SOSConnector . SOS_CONSTITUENT_COL . getName ( ) ) + ( SOSConnector . NUMERIC_SUFFIX ) ) ) ) ; String modtypeVal = row . getValue ( new SimpleColumn ( ( ( SOSConnector . SOS_MOD_TYPE_COL . getName ( ) ) + ( SOSConnector . NUMERIC_SUFFIX ) ) ) ) ; String dateVal = row . getValue ( new SimpleColumn ( ( ( SOSConnector . SOS_DATE_COL . getName ( ) ) + ( SOSConnector . NUMERIC_SUFFIX ) ) ) ) ; String compositeVal = ( ( siteVal + constituentVal ) + modtypeVal ) + dateVal ; return compositeVal ; } } ) . buildFilterStage ( ) ; ResultSet numericPrimaryKeyResultSet = new gov . usgs . cida . nude . filter . FilteredResultSet ( numericColumnResultSet , makePrimaryKeyStage ) ; FilterStage fixScientificNotationStage = new gov . usgs . cida . nude . filter . FilterStageBuilder ( makePrimaryKeyStage . getOutputColumns ( ) ) . addTransform ( valueColumn , new gov . usgs . cida . nar . transform . PlainStringNumberTransform ( valueColumn ) ) . buildFilterStage ( ) ; ResultSet fixedScientificNotationResultSet = new gov . usgs . cida . nude . filter . FilteredResultSet ( numericPrimaryKeyResultSet , fixScientificNotationStage ) ; return fixedScientificNotationResultSet ; } @ Override public IParser getParser ( ) { } @ Override public boolean isValidInput ( ) { } @ Override public boolean isReady ( ) { } @ Override public ColumnGrouping getExpectedColumns ( ) { } private static ColumnGrouping makeColumnGrouping ( Column valueColumn ) { } @ Override public void close ( ) { }

Fix:
long orderedVal = ( value . length ( ) ) * ( Long . parseLong ( value ) ) ;