refactor to be compatible to old segment
Merge branch 'staging' of https://github.com/KylinOLAP/Kylin into staging
refactor
Merge pull request #119 from qhzhou/staging

Staging