commit
Showing
3 changed files
with
3 additions
and
5 deletions
| ... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment