Buggy code:
public class BasicSelectSpec extends BaseSpec { LogicalWorkflow lw ; ClusterName targetCluster ; Map < String , Session > sessions ; ConnectorUtils con_utils = new ConnectorUtils ( ) ; ResultSet metaResult ; Map < String , String > typesMap ; public BasicSelectSpec ( Common spec ) { } @ Given ( "^a<seq2seq4repair_space>collection<seq2seq4repair_space>of<seq2seq4repair_space>columns<seq2seq4repair_space>build<seq2seq4repair_space>up<seq2seq4repair_space>a<seq2seq4repair_space>basic<seq2seq4repair_space>workflow:$" ) public void setLogicalWorkflowForBasicSelect ( DataTable table ) { } @ Given ( "^a<seq2seq4repair_space>collection<seq2seq4repair_space>of<seq2seq4repair_space>columns<seq2seq4repair_space>build<seq2seq4repair_space>up<seq2seq4repair_space>a<seq2seq4repair_space>basic<seq2seq4repair_space>workflow<seq2seq4repair_space>with<seq2seq4repair_space>a<seq2seq4repair_space>orderby<seq2seq4repair_space>step<seq2seq4repair_space>'(.*?)'<seq2seq4repair_space>over<seq2seq4repair_space>column<seq2seq4repair_space>'(.*?)':$" ) public void setLogicalWorkflowForBasicSelectOrderBy ( String columnName , String order , DataTable table ) { commonspec . getLogger ( ) . info ( "Starting<seq2seq4repair_space>to<seq2seq4repair_space>build<seq2seq4repair_space>the<seq2seq4repair_space>LogicalWorkFlow" ) ; commonspec . getExceptions ( ) . clear ( ) ; targetCluster = null ; commonspec . getLogger ( ) . info ( "Initializing<seq2seq4repair_space>the<seq2seq4repair_space>cluster<seq2seq4repair_space>and<seq2seq4repair_space>session" ) ; targetCluster = new ClusterName ( ThreadProperty . get ( "cluster_name" ) ) ; ArrayList < ColumnName > columns = new ArrayList < ColumnName > ( ) ; ArrayList < String > outPutNames = new ArrayList < String > ( ) ; Map < String , String > typesMap = new HashMap < > ( ) ; for ( int i = 1 ; i < ( table . raw ( ) . size ( ) ) ; i ++ ) { List < String > col_info = table . raw ( ) . get ( i ) ; columns . add ( new ColumnName ( col_info . get ( 0 ) , col_info . get ( 1 ) , col_info . get ( 2 ) ) ) ; if ( ! ( col_info . get ( 3 ) . equals ( "NULL" ) ) ) { outPutNames . add ( col_info . get ( 3 ) ) ; } typesMap . put ( col_info . get ( 3 ) , col_info . get ( 4 ) ) ; } String [ ] outPut = new String [ outPutNames . size ( ) ] ; ColumnName [ ] cols = new ColumnName [ columns . size ( ) ] ; outPut = outPutNames . toArray ( outPut ) ; cols = columns . toArray ( cols ) ; LogicalStep project = con_utils . getProject ( targetCluster , cols ) ; Select select ; if ( ( outPut . length ) > 0 ) { select = con_utils . getSelect ( SELECT_OPERATOR , outPut , typesMap , cols ) ; } else { select = con_utils . getSelectWithOutAlias ( SELECT_OPERATOR , typesMap , cols ) ; } <START_BUG> String [ ] column = columnName . split ( "." ) ; <END_BUG> OrderByClause orderbyClause = null ; Selector col_name = new com . stratio . crossdata . common . statements . structures . ColumnSelector ( new ColumnName ( column [ 0 ] , column [ 1 ] , column [ 2 ] ) ) ; if ( order . equals ( "ASC" ) ) { orderbyClause = new OrderByClause ( OrderDirection . ASC , col_name ) ; } else { orderbyClause = new OrderByClause ( OrderDirection . DESC , col_name ) ; } List < OrderByClause > list = new ArrayList < OrderByClause > ( ) ; list . add ( orderbyClause ) ; OrderBy orderBy = new OrderBy ( Operations . SELECT_ORDER_BY , list ) ; project . setNextStep ( orderBy ) ; orderBy . setNextStep ( select ) ; orderBy . setPrevious ( project ) ; select . setPrevious ( orderBy ) ; lw = new LogicalWorkflow ( Arrays . asList ( project ) ) ; } @ When ( "^a<seq2seq4repair_space>connector<seq2seq4repair_space>try<seq2seq4repair_space>to<seq2seq4repair_space>execute<seq2seq4repair_space>the<seq2seq4repair_space>workflow$" ) public void executeSelectOperatorLogicalPlan ( ) { } @ Then ( "^the<seq2seq4repair_space>result<seq2seq4repair_space>has<seq2seq4repair_space>to<seq2seq4repair_space>be:$" ) public void assertResultOfCassandraAndConnector ( DataTable tab ) { } @ Then ( "^the<seq2seq4repair_space>result<seq2seq4repair_space>has<seq2seq4repair_space>to<seq2seq4repair_space>be<seq2seq4repair_space>exactily:$" ) public void assertResultSelEquals ( DataTable tab ) { } }

Fix:
String [ ] column = columnName . split ( "\\." ) ;