Describe the bug
The execute function of SessionContext creates a new TaskContext with an empty runtime_env which wipes out any ObjectStores among many other things.
To Reproduce
Use the SessionContext the execute on a PhysicalPlan that queries a table in a registered ObjectStore.
Expected behavior
Execute uses existing SessionState from SessionContext.
Describe the bug
The
executefunction ofSessionContextcreates a newTaskContextwith an emptyruntime_envwhich wipes out anyObjectStores among many other things.To Reproduce
Use the
SessionContexttheexecuteon aPhysicalPlanthat queries a table in a registeredObjectStore.Expected behavior
Execute uses existing
SessionStatefromSessionContext.