Github user jackylk commented on the issue:
https://github.com/apache/carbondata/pull/1546
I think pre-agg table should not use segment query feature for loading
property.
Pre-agg can create LoadTableCommand directly and pass the segment ID to
read, instead of using sparkSession.sql() to do loading---
