Vertica: clean code