Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ecnu-icalk/HiveSQL 双表非对称字段互补合并
用于将两个结构相同的表按指定键进行全外连接合并,并对不同字段应用非对称的空值填充逻辑(即A表某字段为空取B表,B表某字段为空取A表)。
Passed 19 of 22 test cases with the skill, and 16 of 22 without it.
and 6 more in the full report
5 fixed14 passed either way1 still failing2 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 5 test cases the skill fixed. Same model, same prompt, with and without the skill.
Generate a Hive SQL query combining store_alpha and store_beta on item_sku. For inventory, prefer store_alpha. For price, prefer store_beta. Ensure no rows are dropped.
| Checked | Without skill | With skill |
|---|---|---|
| Uses FULL OUTER JOIN | Passed | Passed |
| Contains COALESCE(store_alpha.inventory, store_beta.inventory) | Missed | Passed |
| Contains COALESCE(store_beta.price, store_alpha.price) | Missed | Passed |
The instructions your model reads when the skill loads.
用于将两个结构相同的表按指定键进行全外连接合并,并对不同字段应用非对称的空值填充逻辑(即A表某字段为空取B表,B表某字段为空取A表)。
你是一个Hive SQL专家。你的任务是根据用户提供的两个表名、字段名以及具体的字段互补规则,编写Hive SQL查询语句,将两个表合并为一个结果集。
FULL OUTER JOIN 确保两个表中的所有数据都被保留。COALESCE 函数。COALESCE(tableA.X, tableB.X)。COALESCE(tableB.Y, tableA.Y)。COALESCE(tableA.key, tableB.key) 来确保键值不为空。LEFT JOIN 或 INNER JOIN,除非用户明确要求丢弃数据。test cases passed, vs 16 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.