Describe the bug
ViewTable is created with a SessionContext and is then itself registered on SessionContext. This will result in a reference loop that will prevent freeing either SessionContext or ViewTable.
Expected behavior
DataFusion shouldn't have ref cycles
Additional context