Skip to content

Commit

Permalink
update example ftl after the shadow rule updated (#22200)
Browse files Browse the repository at this point in the history
* Remove the mixed examples and use the automatically generated examples.

* merger master

* Optimize shadow rule configuration for ftl
  • Loading branch information
totalo authored Nov 16, 2022
1 parent 810ac5a commit 0632530
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
return new SQLParserRuleConfiguration(true, new CacheOption(128, 1024L), new CacheOption(2000, 65535L));
}

private Map<String, ShadowTableConfiguration> createShadowTables() {
Map<String, ShadowTableConfiguration> result = new LinkedHashMap<>();
result.put("t_order", new ShadowTableConfiguration(createDataSourceNames(), createShadowAlgorithmNames()));
return result;
private Collection<ShadowDataSourceConfiguration> createShadowDataSources() {
Collection<ShadowDataSourceConfiguration> result = new LinkedList<>();
result.add(new ShadowDataSourceConfiguration("shadow-data-source", "ds_0", "ds_1"));
return result;
}

private Collection<String> createShadowAlgorithmNames() {
Expand Down

0 comments on commit 0632530

Please sign in to comment.