Commit 0bacb687 0bacb6874b9ee3ac253d20dda699d7daf9443640 by 张浩

commit

1 parent 7e69f494
use testdb;
INSERT INTO TABLE biz_data_count
INSERT OVERWRITE TABLE biz_data_count
select method,biz_data,count(1) as count,max(timestamp) as timestamp
from qa_log
where method='com.ai.handler.plan.detail.index.info'
......
use testdb;
INSERT INTO TABLE biz_data_response
INSERT OVERWRITE TABLE biz_data_response
select method,biz_data,uid,timestamp,response
from qa_log
where method='com.ai.handler.plan.detail.index.info';
\ No newline at end of file
......
use testdb;
truncate table qa_log;
truncate table method_count;
truncate table biz_data_count;
truncate table biz_data_response;
LOAD DATA INPATH 'hdfs://localhost:8020/input/etl' OVERWRITE INTO TABLE qa_log;
\ No newline at end of file
......
use testdb;
INSERT INTO TABLE method_count
INSERT OVERWRITE TABLE method_count
select method,count(1) as count,max(timestamp) as timestamp
from qa_log
group by method;
\ No newline at end of file
......