File size: 1,232 Bytes
e8c001c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
id: offline-compute_HiveSQL_hivesql_012
name: From input table internal_platform_db.t_ed_socialbook_qq_high_v2_ta
category: offline-compute/HiveSQL
timeout_seconds: 600
modality: pure-text
engine: hivesql
---
## Prompt
Task Objective
Filter out specified `tag_id` values from the tag incremental table and write the results to the target table.

Input
- `internal_platform_db.t_ed_socialbook_qq_high_v2_tag_guid_incr_query_engine_100`

Processing Rules
1. Filter condition: `ds = 20260608` AND `tag_id NOT IN (10212021124, 10606061135, 10606061136, 10808011103)`
2. No joins, single-table processing
3. Field order: `guid`, `tag_id`, `tag_value`, `redis_sub_key`, `val_type`, `splitter1`, `splitter2`, `limit_size`, `tag_status`

Output Requirements
- Output table: `internal_platform_db.t_ed_socialbook_qq_high_v2_tag_guid_incr_filter_cand_query_engine_100`
- Output fields (9 in total, fixed order): `guid`, `tag_id`, `tag_value`, `redis_sub_key`, `val_type`, `splitter1`, `splitter2`, `limit_size`, `tag_status`
- Partition column: `ds` (BIGINT type)

Write Requirements
- Write strategy: `INSERT OVERWRITE`
- Partition value: `ds=20260608`
- Write format: ORC

Please write the final HiveSQL to `result.sql` and execute it.