Suspected cause: an empty segment ID collection reaches queryBySegmentIdList and produces an empty IN () predicate. The full generated SQL was not captured, so this SQL shape is an inference from the ...