Skip to content

Commit

Permalink
Spotless Apply
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzm0809 authored and github-actions[bot] committed Sep 25, 2024
1 parent c985d9a commit de8fb39
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,19 +278,19 @@ public int partition(String key, int numPartitions) {
mapOperator.name("PartitionByPrimarykey");
}

protected void executeCatalogStatement(CustomTableEnvironment customTableEnvironment) {};
protected void executeCatalogStatement(CustomTableEnvironment customTableEnvironment) {}
;

/**
* replace view name middle to under line for flink use view name
* @param viewName view name
* @return view name
*/
public static String replaceViewNameMiddleLineToUnderLine( String viewName) {
if (!viewName.isEmpty() & viewName.contains("-")){
public static String replaceViewNameMiddleLineToUnderLine(String viewName) {
if (!viewName.isEmpty() & viewName.contains("-")) {
logger.warn("the view name [{}] contains '-', replace '-' to '_' for flink use view name", viewName);
return viewName.replaceAll("-", "_");
}
return viewName;
}

}

0 comments on commit de8fb39

Please sign in to comment.