Function to return indexes for a table
Merge remote-tracking branch 'origin/CDB-782' into release/2.6.0