Skip to content

Commit

Permalink
ARGO-212125: handling select where clause
Browse files Browse the repository at this point in the history
  • Loading branch information
Mallik Ankati committed Mar 5, 2020
1 parent 135e732 commit 4619fcd
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,16 @@ private String checkBlacklistedColumns(TableId tableId){
if (blackListColumnStr != null && blackListColumnStr.trim().length() > 0
&& blackListColumnStr.contains(tableId.table())) {
Table table = sqlServerDatabaseSchema.tableFor(tableId);
modifiedColumns = table.retrieveColumnNames().stream().collect(Collectors.joining(","));
modifiedColumns = table.retrieveColumnNames().stream()
.map(s->{
StringBuilder sb = new StringBuilder();
if (!s.contains(tableId.table())){
sb.append(tableId.table()).append(".").append(s);
} else {
sb.append(s);
}
return sb.toString();
}).collect(Collectors.joining(","));
}
return modifiedColumns;
}
Expand Down

0 comments on commit 4619fcd

Please sign in to comment.