add partition condition checker in SemanticAnalyzerHook