|
@@ -117,11 +117,12 @@ public abstract class AbstractTagHandler implements ITagHandler{
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
protected String buildTableSql(String tableName, String orderBy) {
|
|
protected String buildTableSql(String tableName, String orderBy) {
|
|
- boolean isExists = dynamicExecuteService.checkTableExistsOfClickhouse(tableName);
|
|
|
|
- if(isExists) {
|
|
|
|
- return String.format("insert into %s", tableName);
|
|
|
|
- }else {
|
|
|
|
- return String.format("create table %s ENGINE = MergeTree ORDER BY %s as", tableName, orderBy);
|
|
|
|
- }
|
|
|
|
|
|
+ return buildTableSql(tableName, null, orderBy);
|
|
|
|
+// boolean isExists = dynamicExecuteService.checkTableExistsOfClickhouse(tableName);
|
|
|
|
+// if(isExists) {
|
|
|
|
+// return String.format("insert into %s", tableName);
|
|
|
|
+// }else {
|
|
|
|
+// return String.format("create table %s ENGINE = MergeTree ORDER BY %s as", tableName, orderBy);
|
|
|
|
+// }
|
|
}
|
|
}
|
|
}
|
|
}
|