<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tagomoris</author_name>
  <author_url>https://blog.hatena.ne.jp/tagomoris/</author_url>
  <blog_title>たごもりすメモ</blog_title>
  <blog_url>https://tagomoris.hatenablog.com/</blog_url>
  <categories>
    <anon>Hive</anon>
  </categories>
  <description>馬鹿でかいデータを2回なめたくないでござる！ という話。SQLなら WITH ROLLUP で一発なんだけどHiveでは現状サポートされていない。(hive 0.9.x or before) select x,sum(y) group by x と select sum(y) を出すのに同じデータセットを2回舐めたくない、だれか神のごとき救いの手を2012-11-22 12:31:00 via YoruFukurou @tagomoris x が null にならないなら、SELECT xn, SUM(y) FROM t LATERAL VIEW explode(array(x,null)) …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftagomoris.hatenablog.com%2Fentry%2F20121122%2F1353558064&quot; title=&quot;個別集計と全体集計を1回のHiveクエリで実行する - たごもりすメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://a0.twimg.com/profile_images/1824733408/profile2012_normal.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-11-22 13:21:04</published>
  <title>個別集計と全体集計を1回のHiveクエリで実行する</title>
  <type>rich</type>
  <url>https://tagomoris.hatenablog.com/entry/20121122/1353558064</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
