Skip to content

Commit

Permalink
[Bug] [Seatunnel-web] No configuration setting found for key 'where_c…
Browse files Browse the repository at this point in the history
……ondition' (#240)
  • Loading branch information
arshadmohammad authored Nov 11, 2024
1 parent 53b5de8 commit d11f6c5
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,12 @@ public Config mergeDatasourceConfig(
List<String> tableFields = selectTableFields.getTableFields();

String sql = tableFieldsToSql(tableFields, databaseName, tableName);

String where_condition = connectorConfig.getString(WHERE_CONDITION);

if (where_condition != null && !where_condition.isEmpty()) {
sql = sql + " " + where_condition;
connectorConfig = connectorConfig.withoutPath(WHERE_CONDITION);
if (connectorConfig.hasPath(WHERE_CONDITION)) {
String where_condition = connectorConfig.getString(WHERE_CONDITION);
if (where_condition != null && !where_condition.isEmpty()) {
sql = sql + " " + where_condition;
connectorConfig = connectorConfig.withoutPath(WHERE_CONDITION);
}
}

connectorConfig =
Expand Down

0 comments on commit d11f6c5

Please sign in to comment.