Support altering index table state and honor it during query optimization
Merge branch 'master' of github.com:forcedotcom/phoenix