private static String replaceColumnNameWithAlias(String columnName,Map<String,String> tableAlias){
  int indexOfDot=columnName.lastIndexOf(".");
  if (indexOfDot > 0) {
    String partitionTableName=columnName.substring(0,indexOfDot);
    if (tableAlias != null && tableAlias.containsKey(partitionTableName))     columnName=tableAlias.get(partitionTableName) + columnName.substring(indexOfDot);
  }
  return columnName;
}

private static String replaceColumnNameWithAlias ( String columnName , Map < String , String > tableAlias ) { int indexOfDot = columnName . lastIndexOf ( "." ) ; if ( indexOfDot > 0 ) { String partitionTableName = columnName . substring ( 0 , indexOfDot ) ; if ( tableAlias != null && tableAlias . containsKey ( partitionTableName ) ) columnName = tableAlias . get ( partitionTableName ) + columnName . substring ( indexOfDot ) ; } return columnName ; }
convert to use table alias
