rename same column names in a query result to not cause error at CREATE TABLE
ignores invalid session state