Commit bfc914ec bfc914ec8f5b08b14e51c69e932a1b76950baa6e by zhanghao

commit

1 parent e0b7e9d3
...@@ -2,6 +2,5 @@ use testdb; ...@@ -2,6 +2,5 @@ use testdb;
2 2
3 INSERT OVERWRITE TABLE biz_data_count_debug 3 INSERT OVERWRITE TABLE biz_data_count_debug
4 select method,biz_data,count(1) as count,max(timestamp) as timestamp 4 select method,biz_data,count(1) as count,max(timestamp) as timestamp
5 from qa_log_debug 5 from (select * from qa_log_debug where method is not null and method!='N/A' and timestamp>${hivevar:maxTimestamp}) my_debug
6 where method is not null and method!='N/A' and timestamp>${hivevar:maxTimestamp}
7 group by method,biz_data; 6 group by method,biz_data;
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -2,4 +2,4 @@ use testdb; ...@@ -2,4 +2,4 @@ use testdb;
2 2
3 select max(timestamp) as timestamp 3 select max(timestamp) as timestamp
4 from qa_log_debug 4 from qa_log_debug
5 where method is not null and method!='N/A'
...\ No newline at end of file ...\ No newline at end of file
5 where method is not null and method!='N/A';
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -2,6 +2,5 @@ use testdb; ...@@ -2,6 +2,5 @@ use testdb;
2 2
3 INSERT OVERWRITE TABLE method_count_debug 3 INSERT OVERWRITE TABLE method_count_debug
4 select method,count(1) as count,max(timestamp) as timestamp 4 select method,count(1) as count,max(timestamp) as timestamp
5 from qa_log_debug 5 from (select * from qa_log_debug where method is not null and method!='N/A' and timestamp>${hivevar:maxTimestamp}) my_debug
6 where method is not null and method!='N/A' and timestamp>${hivevar:maxTimestamp}
7 group by method; 6 group by method;
...\ No newline at end of file ...\ No newline at end of file
......