convert in-memory table