add summary and category type
use bfs to create join view tree represented by table