public SQLResponse query(SQLRequest sqlRequest) throws Exception { try { badQueryDetector.queryStart(Thread.currentThread(), sqlRequest); return queryWithSqlMassage(sqlRequest); } finally { badQueryDetector.queryEnd(Thread.currentThread()); } }
public QueryService() { String metadataUrl = KylinConfig.getInstanceFromEnv().getMetadataUrl(); // split TABLE@HBASE_URL int cut = metadataUrl.indexOf('@'); tableNameBase = cut < 0 ? DEFAULT_TABLE_PREFIX : metadataUrl.substring(0, cut); hbaseUrl = cut < 0 ? metadataUrl : metadataUrl.substring(cut + 1); userTableName = tableNameBase + USER_TABLE_NAME; badQueryDetector.start(); }