Search and extract core information from PIG official documentation. Helps developers and users find answers to PIG-related questions quickly.
$ npx skills add https://github.com/lltx/skills --skill pigdocPIG 文档搜索技能帮助开发者和用户快速查询 PIG 官方文档中的信息。该技能支持文档搜索和核心信息提取,使用户能够有效地解决与 PIG 相关的问题。无需手动翻阅冗长文档,该技能提供精准的搜索和智能信息提取,适合需要频繁查阅 PIG 文档的开发者。通过集成到 AI 代理中,该技能可以加速问题排查和开发效率。
通过用户问题触发搜索,该技能根据关键词进行搜索和总结。
用户需要查找关于PIG Cloud的配置文档
用户询问如何解决OAuth2登录失败问题
用户寻找关于网关路由错误的解决方案
$ npx skills add https://github.com/lltx/skills --skill pigdocgit clone https://github.com/lltx/skillsCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Search the official Apache PIG documentation and extract the most relevant information about [TOPIC]. Focus on [SPECIFIC_ASPECT], such as syntax, examples, or best practices. Provide clear, concise answers with citations from the documentation. If the topic is broad, break it into subtopics and prioritize [COMPANY]/[INDUSTRY] use cases where applicable.
# PIG Documentation Search Results: GROUP ALL Operator ## Overview The `GROUP ALL` operator in Apache PIG aggregates all tuples in a relation into a single tuple. This is useful for operations like counting total records or calculating global statistics. ## Syntax ``` grouped_data = GROUP all_data ALL; ``` ## Key Features - **Single Output Tuple**: All input tuples are combined into one. - **Use Cases**: - Computing global aggregates (e.g., `SUM`, `COUNT`). - Filtering or transforming entire datasets uniformly. - **Performance**: Efficient for small datasets but may strain memory for large ones. ## Example (from PIG 0.17 Docs) ```pig -- Load data raw_logs = LOAD 'web_logs' AS (user, url, timestamp); -- Count total records log_count = FOREACH (GROUP all_data ALL) GENERATE COUNT($1); DUMP log_count; -- Output: (15000) ``` ## Best Practices 1. **Avoid on Large Data**: Use `GROUP` with `BY` for partitioned aggregation. 2. **Combine with `FOREACH`**: Apply transformations post-grouping. *Source: Apache PIG 0.17 Documentation, [GROUP Operator](https://pig.apache.org/docs/r0.17.0/basic.html#GROUP)*
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan