The following code in that function doesn't work properly.
e.g.: if we have 5 tables and tableBatchSize is 10, startIndex will be 0 and endIndex will be 4. We only drop 4 tables since sublist(startIndex, endIndex) is inclusive on startIndex and exclusive on endIndex.
If total tables is larger tableBatchSize, we also have similar issues.
This is discovered when I work on