impl analyzer logic in SqlAnalyzer.