Skip to content

Commit

Permalink
[Improve] [Clickhouse] Remove check when set allow_experimental_light…
Browse files Browse the repository at this point in the history
…weight_delete false(apache#6727) (apache#6728)
  • Loading branch information
shangeyao authored Apr 18, 2024
1 parent 8a4c01f commit b25e1b1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,11 @@ private Map<Shard, ClickhouseBatchStatement> initStatementMap() {
return result;
}

private static boolean clickhouseServerEnableExperimentalLightweightDelete(
private boolean clickhouseServerEnableExperimentalLightweightDelete(
ClickHouseConnectionImpl clickhouseConnection) {
if (!option.isAllowExperimentalLightweightDelete()) {
return false;
}
String configKey = "allow_experimental_lightweight_delete";
try (Statement stmt = clickhouseConnection.createStatement()) {
ResultSet resultSet = stmt.executeQuery("SHOW SETTINGS ILIKE '%" + configKey + "%'");
Expand Down

0 comments on commit b25e1b1

Please sign in to comment.