test query_optimizer: always show error log