Skip to content

Commit

Permalink
Removes utility functions that are no longer used due to ClickHouse's…
Browse files Browse the repository at this point in the history
… nativeTest refactoring
  • Loading branch information
linghengqian committed Aug 18, 2024
1 parent 23831e3 commit cdb3629
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public void deleteDataInClickHouse(final Collection<Long> orderIds) throws SQLEx
public void deleteDataInHive() throws SQLException {
long count = 1L;
for (int i = 1; i <= 10; i++) {
addressRepository.deleteInHive(count++);
addressRepository.delete(count++);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,22 +152,6 @@ public void delete(final Long id) throws SQLException {
}
}

/**
* delete by id.
*
* @param id id
* @throws SQLException SQL exception
*/
public void deleteInHive(final Long id) throws SQLException {
String sql = "DELETE FROM t_address WHERE address_id=?";
try (
Connection connection = dataSource.getConnection();
PreparedStatement preparedStatement = connection.prepareStatement(sql)) {
preparedStatement.setLong(1, id);
preparedStatement.executeUpdate();
}
}

/**
* delete by id in ClickHouse.
*
Expand Down

0 comments on commit cdb3629

Please sign in to comment.